Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: How to Upload DSC File to Azure

$
0
0

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"


Viewing all articles
Browse latest Browse all 3333

Trending Articles