Summary: Use the Azure cmdlets to get the current status of a Desired State Configuration file on a virtual machine.
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?
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