Azure / Azure/azure-cli

Error create containerapp job with user managed identity

Open
#26,560 2 comments 1 reaction 0 assignees View on GitHub
act-observability-squad bug ContainerApp customer-reported Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

I am using the latest version of the containerapp extension 0.3.32

When I try to create a containerapp job (preview) with a managed identity I get errors. It seems the extension is splitting the resourceid of the managed identity in multiple strings.

I give the following paratemer switch:
--user-assigned '/subscriptions/XXXXXX/resourceGroups/rg-test/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-mi-user'

![image](https://github.com/Azure/azure-cli/assets/1708128/b7527e5e-92b6-4d9c-998d-46deaf49abdf)

### Related command

see description

### Errors

![image](https://github.com/Azure/azure-cli/assets/1708128/b74b054d-2540-4f72-b777-b2814620df93)

### Issue script & Debug output

https://app.screencast.com/3YmGWT7PwERkr

### Expected behavior

no error

### Environment Summary

azure-cli 2.49.0

core 2.49.0
telemetry 1.0.8

Extensions:
containerapp 0.3.32

Dependencies:
msal 1.20.0
azure-mgmt-resource 22.0.0

Python location '/opt/az/bin/python3'
Extensions directory '/home/olandese/.azure/cliextensions'

Python (Linux) 3.10.10 (main, May 19 2023, 08:20:31) [GCC 11.3.0]

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.