2017-04-03 43 views
0

当在Azure上创建了一个带有模板的新服务织物,它使用JSON的这个片段 -更新服务织物/ VMSS存储帐户键

"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中任何会交流,让我改变

这是可能的?

回答

0

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

+0

这只是改变设置所需的一块模板 - 它是增量模式,所以它不应该试图改变SF。 –

+0

我发现ARM模板系统非常简单。尝试使用应用的更改推送原始模板。 – Mardoxx