0
我想通過Powershell更改VMSS(服務Fabric羣集節點)的密碼。 VMSS的chnage密碼進程出現以下錯誤。 錯誤後前來密碼更改,但VMSS狀態顯示失敗,Update-AzureRmVmss:長時間運行的操作失敗,狀態爲'失敗'。 ErrorCode:VMExtensionProvisioningError
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
我已經成功地改變了VMSS規模設置的密碼,但這個錯誤出現。 我的VMSS狀態顯示失敗,但仍然運行我的服務結構羣集。
以下是我用來更改VMSS密碼的命令。
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
VMSS實例OS是Linux還是windows? –
windows ....... –
我無法重現您的錯誤消息,請您再次運行此腳本嗎?您的VMSS中有多少個實例,是否啓用了自動縮放? –