An Azure service that is used to provision Windows and Linux virtual machines.
Just as a side node: Despite the intellisense errors, I can deploy the template without any problems.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am using Visual Studio Code with the ARM Tools extension.
When I write an ARM template for the resource type Microsoft.Compute/virtualMachines/extensions, I get an intellisense error Missing required property "protectedSettings". Why is that? I do not want to use any protected settings. Also, if I just add empty protected settings like "protectedSettings": { }, I get even more errors.
What's wrong here? Why are protectedSettings mandatory in the schema?
Code snippet:
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(variables('vmName'),'/setupdnsfirewall')]",
"apiVersion": "2021-03-01",
"location": "Germany West Central",
"dependsOn": [
"[resourceId('Microsoft.Compute/virtualMachines/', variables('vmName'))]"
],
"properties": {
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": [
"[variables('scriptUrl')]"
],
"commandToExecute": "sh myscript.sh"
}
}
}
An Azure service that is used to provision Windows and Linux virtual machines.
Just as a side node: Despite the intellisense errors, I can deploy the template without any problems.