Description
Per https://learn.microsoft.com/en-us/azure/templates/microsoft.resources/2024-11-01/resourcegroups?pivots=deployment-language-arm-template there are newer versions available, but calling ((Get-AzResourceProvider -ProviderNamespace Microsoft.Resources).ResourceTypes | Where-Object ResourceTypeName -eq resourceGroups).ApiVersions is returning 2023-07-01 as the newest version (actual newest per the website is 2025-04-01).
I spot checked some other resource versions they all seemed to be correct, so this appears to only be a problem with resource groups.
This occurred running locally and on GitHub build agents.
Issue script & Debug output
PS C:\GitHub\automation\scripts> ((Get-AzResourceProvider -ProviderNamespace Microsoft.Resources).ResourceTypes | Where-Object ResourceTypeName -eq resourceGroups).ApiVersions
2023-07-01-preview
2023-07-01
2023-03-01-preview
2022-12-01
2022-11-01-preview
2022-09-01
2022-06-01
2022-05-01
2022-03-01-preview
2022-01-01
2021-04-01
2021-01-01
2020-10-01
2020-09-01
2020-08-01
2020-07-01
2020-06-01
Environment data
PS C:\GitHub\automation\scripts> $PSVersionTable
Name Value
---- -----
PSVersion 7.4.17
PSEdition Core
GitCommitId 7.4.17
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Module versions
PS C:\GitHub\automation\scripts> Get-Module Az*
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 5.3.4 Az.Accounts {Add-AzEnvironment, Clear-AzConfig, Clear-AzConte…
Script 6.8.0 Az.Resources {Export-AzResourceGroup, Export-AzTemplateSpec, G…
Error output
Description
Per https://learn.microsoft.com/en-us/azure/templates/microsoft.resources/2024-11-01/resourcegroups?pivots=deployment-language-arm-template there are newer versions available, but calling ((Get-AzResourceProvider -ProviderNamespace Microsoft.Resources).ResourceTypes | Where-Object ResourceTypeName -eq resourceGroups).ApiVersions is returning 2023-07-01 as the newest version (actual newest per the website is 2025-04-01).
I spot checked some other resource versions they all seemed to be correct, so this appears to only be a problem with resource groups.
This occurred running locally and on GitHub build agents.
Issue script & Debug output
Environment data
Module versions
Error output