December 29th, 2015

PowerTip: Get Status of a DSC File in Azure

Doctor Scripto
Scripter

Summary: Use the Azure cmdlets to get the current status of a Desired State Configuration file on a virtual machine.

Hey, Scripting Guy! Question How can I use Windows PowerShell to determine if a Desired State Configuration (DSC) file that I applied to an
           Azure virtual machine is successful?

Hey, Scripting Guy! Answer Get the Azure virtual machine and pipe the object to Get-AzureVMDscExtensionStatus. The following example
           checks the status on the virtual machine called Hitchy01 on the service called AzureVMNetwork:

Get-AzureVM –service ‘AzureVMNetwork’ –name ‘Hitchy01’ | Get-AzureVMDscExtensionStatus

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.