PowerTip: Get Status of a DSC File in Azure

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