BTW, deploy successfully with exact same json after couple of times...not sure what was happening.
Can't deploy successfully Key Vault virtual machine extension for Windows using VM Template
I am using the Key Vault virtual machine extension for Windows Json template to install the extension in my VMs. But I am getting this error:
2022-10-14T14:30:27.2846292Z Status Message: VM has reported a failure when processing extension 'KeyVaultForWindows'. Error message: "Failed to
2022-10-14T14:30:27.2847190Z parse the configuration settings with: 'not an array'"
Portion of my template:
{
"type": "extensions",
"name": "KeyVaultForWindows",
"apiVersion": "2019-07-01",
"location": "[parameters('location')]",
"dependsOn": [
"[if(less(copyindex(), 10), concat(parameters('rdshNamePrefix'), '00', copyIndex()), if(less(copyIndex(), 100), concat(parameters('rdshNamePrefix'), '0', copyIndex()), concat(parameters('rdshNamePrefix'), copyIndex())))]"
],
"properties": {
"publisher": "Microsoft.Azure.KeyVault",
"type": "KeyVaultForWindows",
"typeHandlerVersion": "1.0",
"autoUpgradeMinorVersion": true,
"settings": {
"secretsManagementSettings": {
"pollingIntervalInS": "3600",
"certificateStoreName": "MY",
"certificateStoreLocation": "LocalMachine",
"observedCertificates": "mycert",
}
}
}
}
2 answers
Sort by: Most helpful
-
-
Cristian SPIRIDON 4,481 Reputation points
2022-10-16T12:27:22.843+00:00 Hi,
From the error looks like there is a syntax error with the json.
Can you validate the json syntax against an online validator (https://jsonlint.com/ or similar)?
Hope this helps!