-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az containerapp create --yaml: issue with userAssignedIdentities #27272
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botContainerAppService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-observability-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botContainerAppService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-observability-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Describe the bug
az containerapp create --yamldoes mess up the resource group and user assigned identities if they contain-or_.The id
/subscriptions/my-subscription-id/resourcegroups/my_resource_group_dev/providers/Microsoft.Managedidentity/Userassignedidentities/my-user-assigned-identitysomehow gets changed to
/subscriptions/my-subscription-id/resourcegroups/myResourceGroupDev/providers/Microsoft.Managedidentity/Userassignedidentities/My-User-Assigned-Identityon is then now found
Related command
az containerapp createErrors
ERROR: (FailedIdentityOperation) Identity operation for resource
'/subscriptions/my-subscription-id/resourceGroups/my_resource_group/providers/Microsoft.App/containerApps/my-container-app'failed with error 'Failed to perform resource identity operation. Status: 'BadRequest'. Response:'{"error":{"code":"BadRequest","message":"Resource '/subscriptions/my-subscription-id/resourcegroups/myResourceGroup/providers/Microsoft.Managedidentity/Userassignedidentities/My-User-Assigned-Identity' was not found."}}'.'.Issue script & Debug output
az containerapp create -g my_resource_group -n my-container-app --yaml template.jsonwith template.json containing:
debug.log
Expected behavior
The container app is created with user assigned identity
Environment Summary
azure-cli 2.51.0core 2.51.0telemetry 1.1.0Extensions:
containerapp 0.3.37Dependencies:
msal 1.24.0b1azure-mgmt-resource 23.1.0b2Can be reproduces on WSL/Ubuntu and container image
mcr.microsoft.com/azure-cliAdditional context
No response