PowerTip: How to Upload DSC File to Azure

Doctor Scripto

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”

0 comments

Discussion is closed.

Feedback usabilla icon