Summary: Use Azure PowerShell cmdlets to send a Desired State Configuration file to be used later by a virtual machine.
How can I use Windows PowerShell to send a DSC file to be used later by a virtual machine?
Use the Publish-AzureVMDscConfiguration cmdlet and specify the path to your DSC script.
The following example targets the DSC script called FileServer.ps1:
Publish-AzureVMDscConfiguration -ConfigurationPath ".\FileServer.ps1"