microsoft / vscode-azurecontainerapps

Azure Container Apps extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurecontainerapps
MIT License
33 stars 13 forks source link

Fail to deploy an image to container app after signing in with China account #679

Open v-xinda opened 5 months ago

v-xinda commented 5 months ago

OS: All Build Version: 20240426.1 Regression: Not a regression

Repro Steps:

  1. Sign in with China account.
  2. Create a container app.
  3. Create a registry -> Push an image to it -> Right click the image -> Deploy Image to Azure Container Apps... -> Select the above container app -> Select "Skip for now".
  4. Check whether succeeds to deploy an image to container app.

Expect: Succeed to deploy an image to container app.

Actual: Fail to deploy an image to container app. image

More Info: This issue also reproduces after adding the "App Compliance Automation Administrator" role to the registry. image

bwateratmsft commented 5 months ago

Looks like this happens in the ACA extension's part of the flow, I'll move this to the ACA repo.

nturinski commented 5 months ago

@v-xinda Could you verify that the account permissions are the same between the test US Azure account and the China account? We want to see if this is an issue with how the account's permissions are configured or if this is an issue with the Container Apps service.

v-xinda commented 5 months ago

@nturinski The permissions of the Azure account are "Role assignment: Owner" and "Classic administrator: Co-Administrator". The permission of the China account is "Classic administrator: Service Administrator".