I'm looking for a solution to mount an Azure Fileshare on to my Azure Virtual Machine (Windows 10) when the virtual machine is created. There is this guide for manually map the Azure Fileshare to an existing (virtual) machine, and that works fine, but I want that to be done when the virtual machine is created.
Basically, once the virtual machine is ready and me or some other user logs in, the Fileshare is available as a mapped drive.
How would that work? Do I need to set a Powershell command that will be executed during the creation of the virtual machine or is this done with an ARM template, and how?