Azure / Azure/azure-powershell

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

Open
#17,142 8 comments 1 reaction 0 assignees View on GitHub
act-identity-squad ARM bug customer-reported question Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### 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:

```powershell
((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](https://user-images.githubusercontent.com/43993129/154238098-0ad3e410-4705-4e56-95bc-e150bd19090f.png)

### 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.