Several fixes for PublishAzureVMDscConfiguration cmdlet