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
611 stars 517 forks source link

Missing schema for Microsoft.Compute/disks, apiVersion 2022-03-02? #3130

Open mcdonamw opened 3 months ago

mcdonamw commented 3 months ago

VScode with ARM Tools v0.15.11 having issues with a template I just generated with the Azure portal on a number of resources. One such resource is Microsoft.Compute/disks. I don't fully understand the warning. Note: this is my first foray into 1) ARM and 2) VScode.

From the template.json

            "type": "Microsoft.Compute/disks",
            "apiVersion": "2022-03-02",

Warning:

For full schema validation, consider updating the value to one of the following: "2016-04-30-preview", "2017-03-30", "2018-04-01", "2018-06-01", "2019-07-01". It is possible that the current resource version is valid but that a schema has not been generated. For more information see https://aka.ms/arm-tools-apiversion.

When I go to that site, it ultimately redirects me to https://github.com/Azure/azure-resource-manager-schemas/blob/main/generator/resources.json, which lists API versions for this resource type all the way up through 2023-10-02. So I'm not understanding why I'm being instructed to go back as far as 2019.