Azure / Azure/azure-powershell
[Feature]: Update API-versions referenced retrieved with Get-AzResourceProvider
- 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):

### 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
Assessment
This issue has not been assessed yet.