Powershell 更新AzureRMVMS:长时间运行的操作失败,状态为';失败';。错误代码:VMExtensionProvisioningError

Powershell 更新AzureRMVMS:长时间运行的操作失败,状态为';失败';。错误代码:VMExtensionProvisioningError,powershell,azure,azure-vm-scale-set,Powershell,Azure,Azure Vm Scale Set,我正在尝试通过Powershell更改VM(服务结构群集节点)的密码。 VMS的密码更改过程中出现以下错误。 错误发生后,密码更改,但VMS状态显示失败 Update-AzureRmVmss : Long running operation failed with status 'Failed'. ErrorCode: VMExtensionProvisioningError ErrorMessage: VM has reported a failure when processing exte

我正在尝试通过Powershell更改VM(服务结构群集节点)的密码。 VMS的密码更改过程中出现以下错误。 错误发生后,密码更改,但VMS状态显示失败

Update-AzureRmVmss : Long running operation failed with status 'Failed'.
ErrorCode: VMExtensionProvisioningError
ErrorMessage: VM has reported a failure when processing extension 'ServiceProfilerAgent'. Error message: "Failed to launch diagnostic agent. The agent output: $Unpacking resources...
Executing Service Profiler Agent version 1.0.41004.1 with arguments: --mode AzureVMExtension --vmextsettings 1.settings
Welcome to Service Profiler - to exit the program press 'Ctrl+C'.
Initializing agent...
Loading settings from cloud storage. Settings name: default
The settings file 'default-settings.json' was not found in storage.
Account name: appperformance
Container name: sp-agent-settings
Blob name: default-settings.json
There was a problem loading the settings. Failed to load settings from cloud storage.
".
StartTime: 6/4/2017 10:58:11 AM
EndTime: 6/4/2017 10:58:16 AM
OperationID: a0bfeb48-2da0-4dea-8e73-9137d11b0351
Status: Failed
At line:1 char:1
+ Update-AzureRmVmss -ResourceGroupName $vmssResourceGroup -Name $vmssName -Virtua ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Update-AzureRmVmss], ComputeCloudException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.Compute.Common.ComputeCloudException,Microsoft.Azure.Commands.Compute.Automation.UpdateAzureRmVmss  
我已成功更改VMS缩放集的密码,但出现此错误。 我的VMS状态显示失败,但我的服务结构群集仍在运行

下面是我用来更改虚拟机密码的命令

Login-AzureRmAccount
$vmssName = "node"
$vmssResourceGroup = "RG"
publicConfig = @{"UserName" = "username"}
$privateConfig = @{"Password" = "Password"}
$extName = "VMAccessAgent"
$publisher = "Microsoft.Compute"
$vmss = Get-AzureRmVmss -ResourceGroupName $vmssResourceGroup -VMScaleSetName $vmssName
$vmss = Add-AzureRmVmssExtension -VirtualMachineScaleSet $vmss -Name $extName -Publisher $publisher -Setting $publicConfig -ProtectedSetting $privateConfig -Type $extName -TypeHandlerVersion "2.0" -AutoUpgradeMinorVersion $true
Update-AzureRmVmss -ResourceGroupName $vmssResourceGroup -Name $vmssName -VirtualMachineScaleSet $vmss

探查器代理似乎无法连接到存储帐户以下载设置文件

能否检查存储帐户是否仍然存在或存储连接是否已更改

如果有任何更改,您可以在中更新存储帐户,并使用更新的存储帐户重新运行部署脚本

如果决定停止分析,还可以删除Microsoft.VisualStudio.ServiceProfiler/ServiceProfilerAgent扩展


希望这有帮助!:)

VMS实例操作系统是Linux还是windows?windows……。我无法重现您的错误消息,请重新运行此脚本好吗?您的虚拟机中有多少实例启用了自动缩放?