December 28th, 2015

PowerTip: How to Upload DSC File to Azure

Doctor Scripto
Scripter

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"

Category
Scripting

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.