fix a bug for setting vm extensions
fix #2262 Get-AzureVM | Add-AzureProvisioningConfig | Update-AzureVM generates Duplicate input endpoint exception.