Skip to content

[Feature]: Update API-versions referenced retrieved with Get-AzResourceProvider #17142

Open
@Manbearpiet

Description

@Manbearpiet

Description of the new feature

Get-AzResourceProvider returns old API-versions of resources, but not newer resources.
Same with az provider list.

i.e. resource group:

((Get-AzResourceProvider -ListAvailable | Where-Object { $_.ProviderNameSpace -EQ 'Microsoft.Resources' }).ResourceTypes | Where-Object ResourceTypeName -EQ 'resourceGroups').ApiVersions
2019-05-01
2019-04-01
2019-03-01
2018-11-01
2018-09-01
2018-08-01
2018-07-01
2018-05-01
2018-02-01
2018-01-01
2017-08-01
2017-06-01
2017-05-10
2017-05-01
2017-03-01
2016-09-01
2016-07-01
2016-06-01
2016-02-01
2015-11-01
2015-01-01
2014-04-01-preview

With this output, the latest Resource API-version seems to be 2019-05-01
While the reference has at least 10 new versions (previews not included):

image

Proposed implementation details (optional)

Update the resource-API references similar to the approach the Azure Bicep VSCode Extension, to make sure all the latest versions are included.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ARMService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions