更新Service Fabric / VMSS存储帐户密钥

时间:2017-04-03 21:19:23

标签: azure azure-service-fabric azure-vm-scale-set

在Azure上使用模板创建新的Service Fabric时,它使用json的这个片段 -

"name": "[concat('VMDiagnosticsVmExt', '_', variables('vmNodeType0Name'))]",
"properties": {
  "type": "IaaSDiagnostics",
  "autoUpgradeMinorVersion": true,
  "protectedSettings": {
    "storageAccountName": "[parameters('SupportStorageAccountName')]",
    "storageAccountKey": "[parameters('SupportprotectedAccountKey1')]",
    "storageAccountEndPoint": "https://core.windows.net/"

我想更新storageAccountKey作为我们安全程序的一部分,但我无法弄清楚如何更改它们。

我尝试通过模板应用更改,但是我收到了错误

"code": "OperationNotAllowed",
"message": "VM Scale Set extensions of handler 
'Microsoft.Azure.ServiceFabric.ServiceFabricNode' 
can be deleted only at the time of VM Scale Set deletion."

我在PowerShell中找不到任何可以连接的内容,让我更改

这可能吗?

1 个答案:

答案 0 :(得分:0)

您是否使用了与最初用于部署Service Fabric的模板相同的模板?错误消息听起来只是在模板中指定了比例集,而Service Fabric正在阻止它,因为在模板中不包括服务结构扩展会从比例集中删除服务结构。

相关问题