I am attempting to deploy the key vault extension to a VM using an azure Arm template. Based on this link. https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/key-vault-windows.
I get this error when attempting to provision the extension Template deployment returned the following errors: 08:57:27 - 8:57:26 AM - Resource Microsoft.Compute/virtualMachines/extensions 'dcsvm1/test' failed with message '{ 08:57:27 - "status": "Failed", 08:57:27 - "error": { 08:57:27 - "code": "ResourceDeploymentFailure", 08:57:27 - "message": "The resource operation completed with terminal provisioning state 'Failed'.", 08:57:27 - "details": [ 08:57:27 - { 08:57:27 - "code": "VMExtensionProvisioningError", 08:57:27 - "message": "VM has reported a failure when processing extension 'test'. Error message: "Failed to parse the configuration settings with: 'not an array'"\r\n\r\nMore information on troubleshooting is available at https://aka.ms/vmextensionwindowstroubleshoot " 08:57:27 - } 08:57:27 - ]
> here is the arm template json
> type": "Microsoft.Compute/virtualMachines/extensions",
> "name": "dcsvm1/test",
> "apiVersion": "2019-07-01",
> "location": "[parameters('location')]",
> "dependsOn": [
> "[resourceId('Microsoft.Compute/VirtualMachines', parameters('virtualmachinename'))]"
> ],
> "properties": {
> "publisher": "Microsoft.Azure.KeyVault",
> "type": "KeyVaultForWindows",
> "typeHandlerVersion": "1.0",
> "settings": {
> "secretsManagementSettings": {
> "pollingIntervalIns": "3600",
> "certificateStoreName": "MY",
> "linkOnRenewal": "false",
> "certificateStoreLocation": "LocalMachine",
> //"requireInitialSync": "true",
> //"observedCertificates": "https://testkvdsc.vault.azure.net:443/certificates/wildcard/9817edfba5124579b75649f51902ef99",
> "observedCertificates": "https://testkvdsc.vault.azure.net:443/secrets/wildcard"
> }
> }
> }
> },
I have been able get add the extension after the VM is created using powershell but much rather have it installed via the arm template.