Azure / azure-cli

Azure Command-Line Interface
MIT License
4.01k stars 2.98k forks source link

Error create containerapp job with user managed identity #26560

Open olandese opened 1 year ago

olandese commented 1 year ago

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

Related command

see description

Errors

image

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

yonzhan commented 1 year ago

Thank you for opening this issue, we will look into it.

ghost commented 1 year ago

Thank you for your feedback. This has been routed to the support team for assistance.