-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Container App - Registry.Identity can't find identity #20675
Comments
I think this issue is a bug as I don't have an issue when I run the equivalent call in powershell: az containerapp registry set -n ca-test-dev-sprint -g pm-rg-development-pjl --server my-company.azurecr.io --identity /subscriptions/xxxxxxxxxxx/resourceGroups/rg-development-pjl/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cae-development-pjl-registry-identity |
A look at the Azure Portal seems to suggest that a UserAssigned identity needs to be added to the Container's identities first and then referenced again in the Registry.Identity field. Changing the resource.Identity field to: identity { Works. But I need SystemAssigned identity as well. Therefore, I'm reliant on fix for: #20437 Please can the docs for the Registry.Identity be updated to reflect that the Identity must be declared elsewhere and this is just a reference/lookup. |
Hey @penfold, I am currently having the same issue with the container app being unable to find the managed identity, but your fix unfortunately does not work. I add the user assigned identity to the container app, but it still is unable to use the identity towards the registry, it seems. |
@Peder2911 check out this issue microsoft/azure-container-apps#1233 (comment) |
Is there an existing issue for this?
Community Note
Terraform Version
1.3.9
AzureRM Provider Version
3.45
Affected Resource(s)/Data Source(s)
azurerm_container_app
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The container registry should be setup to access via the identity.
Actual Behaviour
It is unable to find the user assigned identity that was just created.
Steps to Reproduce
No response
Important Factoids
No response
References
#20466
The text was updated successfully, but these errors were encountered: