【问题标题】:Updating Service Fabric / VMSS storage account keys更新 Service Fabric / VMSS 存储帐户密钥
【发布时间】:2017-08-28 21:37:00
【问题描述】:

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

"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 中找不到任何可以连接并让我改变它的东西

这可能吗?

【问题讨论】:

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


    【解决方案1】:

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

    【讨论】:

    • 这只是更改该设置所需的模板片段 - 它是增量模式,因此根本不应该尝试更改 SF。
    • 我发现 ARM 模板系统非常精细。尝试推送应用了更改的原始模板。
    猜你喜欢
    • 2018-02-27
    • 2019-12-16
    • 1970-01-01
    • 2019-09-17
    • 2017-09-30
    • 2021-12-08
    • 2017-05-01
    • 1970-01-01
    • 2018-10-09
    相关资源
    最近更新 更多