az sig image-version report error when used in azure china cloud
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.0.62
**Describe the bug**
use az sig image-version command to create image version, error as followed:
AADSTS500011: The resource principal named https://management.azure.com was not found in the tenant named b6a14a3e-71a0-46ed-9b88-42bb3f2ce295. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant.
Trace ID: a17928a5-e2ad-436b-a365-0e6235e51d00
Correlation ID: 188ddaa2-fe60-49ec-83b5-17c690dbb0c3
Timestamp: 2021-03-04 13:53:19Z
I have executed "az cloud set --name azurechinacloud", and az sig image-version --list execute success, but az sig image-version create execute error
**To Reproduce**
1.az cloud set --name azurechinacloud
2. az sig image-version create --no-wait --subscription "2bb58ee1-efc4-4cd8-83b4-c1b75e8042ac" --location "china east 2" --resource-group "myPackerGroup" --gallery-name "myPackerSIG" --gallery-image-definition "myPackerImage" --gallery-image-version "1.0.0" --managed-image "/subscriptions/2bb58ee1-efc4-4cd8-83b4-c1b75e8042ac/resourceGroups/myPackerGroup/providers/Microsoft.Compute/images/myPackerImage"
**Expected behavior**
Create should success
**Environment summary**
**Additional context**
Contributor guide
Assessment
This issue has not been assessed yet.