Azure / azure-resource-manager-schemas

Schemas used to author and validate Resource Manager Templates. These schemas power the intellisense and syntax completion in our ARM Tools VSCode extension, as well as the Export Template API
MIT License
610 stars 517 forks source link

Schema Error showing in Type for Extensions for Domain Join #1149

Open StephenWeatherford opened 4 years ago

StephenWeatherford commented 4 years ago

Ported from https://github.com/microsoft/vscode-azurearmtools/issues/929

@jrmurray86:

VSCode is showing that there is a Type error when using the 'JsonADDomainExtension'

The documentation for the Extension is here: https://docs.microsoft.com/en-us/azure/active-directory-domain-services/join-windows-vm-template#azure-resource-manager-template-overview

image

image

I'm using the latest Schema: "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#"

The template itself actually works and it does what it needs to do but its just annoying that it shows this error, I've copied the code in below from the template to make it easier to reproduce.

{ "condition":"[equals(variables('Domain')[parameters('dominToJoin').domainJoin],'1')]", "apiVersion": "2015-06-15", "type": "Microsoft.Compute/virtualMachines/extensions", "name": "[concat(parameters('virtualMachineName'),'/joindomain')]", "location": "[resourceGroup().location]", "dependsOn": [ "[concat('Microsoft.Compute/virtualMachines/', parameters('virtualMachineName'))]" ], "properties": { "publisher": "Microsoft.Compute", "type": "JsonADDomainExtension", "typeHandlerVersion": "1.3", "autoUpgradeMinorVersion": true, "settings": { "Name": "[variables('Domain')[parameters('dominToJoin').domainFqdn]]", "OUPath": "[variables('Domain')[parameters('dominToJoin').ou]]", "User": "[parameters('domainJoinUser')]", "Restart": "true" }, "protectedSettings": { "Password": "[parameters('domainJoinPassword')]" } } }

nielsvdc commented 3 years ago

I confirm this issue still exists.

image