PowerTip: How to Upload DSC File to Azure


Summary: Use Azure PowerShell cmdlets to send a Desired State Configuration file to be used later by a virtual machine.

Hey, Scripting Guy! Question How can I use Windows PowerShell to send a DSC file to be used later by a virtual machine?

Hey, Scripting Guy! Answer 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"

Comments (0)

Skip to main content