microsoft / vscode-azurearmtools

Azure Resource Manager Tools for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=msazurermtools.azurerm-vscode-tools
MIT License
136 stars 81 forks source link

Microsoft.Network/xxx schemas are missing 2021 versions #1420

Open StephenWeatherford opened 2 years ago

StephenWeatherford commented 2 years ago

I know this happens for at least:

From example template noted by @molotch in quickstarts (see https://github.com/microsoft/vscode-azurearmtools/issues/1344): https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.compute/vm-simple-windows/azuredeploy.json

image

https://docs.microsoft.com/en-us/azure/templates/microsoft.network/virtualNetworks?tabs=bicep image

Bicep: image

StephenWeatherford commented 2 years ago

Indeed, inspecting the top-level 2019 schema, I see that nothing exists for Microsoft.network past 2020-11-01:

% cat 2019-04-01-deploymentTemplate.json | fgrep "Microsoft.Network"
                                    "$ref": "https://schema.management.azure.com/schemas/2015-11-01/Microsoft.Network.json#/resourceDefinitions/trafficManagerProfiles"
                                    "$ref": "https://schema.management.azure.com/schemas/2017-03-01/Microsoft.Network.json#/resourceDefinitions/trafficManagerProfiles"
                                    "$ref": "https://schema.management.azure.com/schemas/2017-05-01/Microsoft.Network.json#/resourceDefinitions/trafficManagerProfiles"
                                    "$ref": "https://schema.management.azure.com/schemas/2018-04-01/Microsoft.Network.json#/resourceDefinitions/trafficManagerProfiles"
                                    "$ref": "https://schema.management.azure.com/schemas/2015-05-04-preview/Microsoft.Network.json#/resourceDefinitions/dnszones"
                                    "$ref": "https://schema.management.azure.com/schemas/2015-05-04-preview/Microsoft.Network.json#/resourceDefinitions/dnszones_A"
                                    "$ref": "https://schema.management.azure.com/schemas/2015-05-04-preview/Microsoft.Network.json#/resourceDefinitions/dnszones_AAAA"
                                    "$ref": "https://schema.management.azure.com/schemas/2015-05-04-preview/Microsoft.Network.json#/resourceDefinitions/dnszones_CNAME"
...
                                    "$ref": "https://schema.management.azure.com/schemas/2020-11-01/Microsoft.Network.json#/resourceDefinitions/virtualNetworkGateways"
                                    "$ref": "https://schema.management.azure.com/schemas/2020-11-01/Microsoft.Network.json#/resourceDefinitions/virtualNetworks"
                                    "$ref": "https://schema.management.azure.com/schemas/2020-11-01/Microsoft.Network.json#/resourceDefinitions/virtualNetworks_subnets"
                                    "$ref": "https://schema.management.azure.com/schemas/2020-11-01/Microsoft.Network.json#/resourceDefinitions/virtualNetworks_virtualNetworkPeerings"
                                    "$ref": "https://schema.management.azure.com/schemas/2020-11-01/Microsoft.Network.json#/resourceDefinitions/virtualNetworkTaps"
                                    "$ref": "https://schema.management.azure.com/schemas/2020-11-01/Microsoft.Network.json#/resourceDefinitions/virtualRouters"
                                    "$ref": "https://schema.management.azure.com/schemas/2020-11-01/Microsoft.Network.json#/resourceDefinitions/virtualRouters_peerings"
                                    "$ref": "https://schema.management.azure.com/schemas/2020-11-01/Microsoft.Network.json#/resourceDefinitions/virtualWans"
                                    "$ref": "https://schema.management.azure.com/schemas/2020-11-01/Microsoft.Network.json#/resourceDefinitions/vpnGateways"
                                    "$ref": "https://schema.management.azure.com/schemas/2020-11-01/Microsoft.Network.json#/resourceDefinitions/vpnGateways_natRules"
                                    "$ref": "https://schema.management.azure.com/schemas/2020-11-01/Microsoft.Network.json#/resourceDefinitions/vpnGateways_vpnConnections"
                                    "$ref": "https://schema.management.azure.com/schemas/2020-11-01/Microsoft.Network.json#/resourceDefinitions/vpnServerConfigurations"
                                    "$ref": "https://schema.management.azure.com/schemas/2020-11-01/Microsoft.Network.json#/resourceDefinitions/vpnSites"
StephenWeatherford commented 2 years ago

Ported here: https://github.com/Azure/azure-resource-manager-schemas/issues/1785

robinmalik commented 2 years ago

I'm having this problem too.

StephenWeatherford commented 2 years ago

Unfortunately these are still missing. https://github.com/Azure/azure-resource-manager-schemas/issues/1785

SSBajwa commented 1 year ago

did this get resolved i still dont see the latest schema api version for Microsoft.Network

image

StephenWeatherford commented 1 year ago

Still not fixed. Feel free to add comments to https://github.com/Azure/azure-resource-manager-schemas/issues/1785 if you want this fixed...