Azure / arm-ttk

Azure Resource Manager Template Toolkit
https://aka.ms/arm-ttk
MIT License
446 stars 190 forks source link

Incorrect Flagging of apiVersion for Resource Group #732

Closed dvdmtw98 closed 1 year ago

dvdmtw98 commented 1 year ago

Description

arm-ttk is flagging the API version field of Resource Group as invalid/ not found even though its the latest version as mentioned in the documentation

Output

RG Validation

ARM Template Definition

{
    "name": "[parameters('resourceGroupName')]",
    "type": "Microsoft.Resources/resourceGroups",
    "apiVersion": "2022-09-01",
    "location": "[parameters('location')]",
    "tags": "[parameters('resourceGroupTags')]"
}

Resource Group Definition (Documentation)

Link to Documentation: Resource Group Schema Definitation

Documentation

mariesetnes commented 1 year ago

I am experiencing similar problems with the following apis:

The apiVersion 2023-01-01 was not found for the resource type: Microsoft.RecoveryServices/vaults The apiVersion 2023-01-01 was not found for the resource type: Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems The apiVersion 2022-09-01 was not found for the resource type: Microsoft.Resources/deployments

vidapour commented 1 year ago

These changes have been merged. Thank you!