In sovereign clouds, azure-cli version 2.67.0 fails when listing container instances (AzureUSGovernment)
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
### Describe the bug
When using the azure-cli version 2.67.0, az container list fails with InvalidResourceType errors.
This appears similar to the following issue that appeared on a prior azure-cli version: https://github.com/Azure/azure-cli/issues/25791
### Related command
az cloud set -n AzureUSGovernment
az container list
### Errors
(InvalidResourceType) The resource type 'containerGroups' could not be found in the namespace 'Microsoft.ContainerInstance' for api version '2024-05-01-preview'. The supported api-versions are '2017-08-01-preview,2017-10-01-preview,2017-12-01-preview,2018-02-01-preview,2018-04-01,2018-06-01,2018-07-01,2018-09-01,2018-10-01,2019-12-01,2020-11-01,2021-03-01,2021-07-01,2021-09-01,2021-10-01,2022-04-01-preview,2022-09-01,2022-10-01-preview,2023-02-01-preview,2023-05-01'.
Code: InvalidResourceType
Message: The resource type 'containerGroups' could not be found in the namespace 'Microsoft.ContainerInstance' for api version '2024-05-01-preview'. The supported api-versions are '2017-08-01-preview,2017-10-01-preview,2017-12-01-preview,2018-02-01-preview,2018-04-01,2018-06-01,2018-07-01,2018-09-01,2018-10-01,2019-12-01,2020-11-01,2021-03-01,2021-07-01,2021-09-01,2021-10-01,2022-04-01-preview,2022-09-01,2022-10-01-preview,2023-02-01-preview,2023-05-01'.
### Issue script & Debug output
(InvalidResourceType) The resource type 'containerGroups' could not be found in the namespace 'Microsoft.ContainerInstance' for api version '2024-05-01-preview'. The supported api-versions are '2017-08-01-preview,2017-10-01-preview,2017-12-01-preview,2018-02-01-preview,2018-04-01,2018-06-01,2018-07-01,2018-09-01,2018-10-01,2019-12-01,2020-11-01,2021-03-01,2021-07-01,2021-09-01,2021-10-01,2022-04-01-preview,2022-09-01,2022-10-01-preview,2023-02-01-preview,2023-05-01'.
Code: InvalidResourceType
Message: The resource type 'containerGroups' could not be found in the namespace 'Microsoft.ContainerInstance' for api version '2024-05-01-preview'. The supported api-versions are '2017-08-01-preview,2017-10-01-preview,2017-12-01-preview,2018-02-01-preview,2018-04-01,2018-06-01,2018-07-01,2018-09-01,2018-10-01,2019-12-01,2020-11-01,2021-03-01,2021-07-01,2021-09-01,2021-10-01,2022-04-01-preview,2022-09-01,2022-10-01-preview,2023-02-01-preview,2023-05-01'.
### Expected behavior
The command should return the details of the container instances.
### Environment Summary
{
"azure-cli": "2.67.0",
"azure-cli-core": "2.67.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {
"bastion": "0.3.0",
"containerapp": "0.3.23",
"log-analytics-solution": "0.1.1"
}
}
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.