When a new Service Fabric is created on Azure with a template, it uses this snippet of json -
"name": "[concat('VMDiagnosticsVmExt', '_', variables('vmNodeType0Name'))]",
"properties": {
"type": "IaaSDiagnostics",
"autoUpgradeMinorVersion": true,
"protectedSettings": {
"storageAccountName": "[parameters('SupportStorageAccountName')]",
"storageAccountKey": "[parameters('SupportprotectedAccountKey1')]",
"storageAccountEndPoint": "https://core.windows.net/"
I want to update the storageAccountKey as part of our security procedures, but I can't work out how to change them.
I've tried applying the change via a template but I get the error
"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."
And I can't find anything in PowerShell that will connect and let me change that
Is this possible?