2 bug fixes in Publish-AzureVmDscExtension cmdlet