Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In sovereign clouds, azure-cli version 2.67.0 fails when listing container instances (AzureUSGovernment) #30530

Open
hdev003 opened this issue Dec 17, 2024 · 3 comments
Labels
Auto-Assign Auto assign by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. Container Instances az container customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention This issue is responsible by Azure service team. Similar-Issue

Comments

@hdev003
Copy link

hdev003 commented Dec 17, 2024

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

@hdev003 hdev003 added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Dec 17, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot labels Dec 17, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Dec 17, 2024

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added Container Instances az container Service Attention This issue is responsible by Azure service team. labels Dec 17, 2024
Copy link

Here are some similar issues that might help you. Please check if they can solve your problem.

Copy link
Contributor

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @dkkapur.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. Container Instances az container customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention This issue is responsible by Azure service team. Similar-Issue
Projects
None yet
Development

No branches or pull requests

2 participants