Azure / azure-cli

Azure Command-Line Interface
MIT License
4.02k stars 2.99k forks source link

While creating / updaing system Topic No effect of --identity systemassigned or --mi-system-assigned #28064

Open mnadeem opened 10 months ago

mnadeem commented 10 months ago

Describe the bug

While creating system topic no effect of --identity systemassigned or --mi-system-assigned

Object (principal) ID is not getting created.

Related command

az eventgrid system-topic create --resource-group some-rg --location centralus --name some-topic --topic-type Microsoft.Storage.StorageAccounts --source /subscriptions/id/resourceGroups/some-rg/providers/Microsoft.Storage/storageAccounts/somesa --identity systemassigned

az eventgrid system-topic update --resource-group some-rg --name some-topic --identity systemassigned

az eventgrid system-topic update --resource-group some-rg --name some-topic --mi-system-assigned

Errors

No Errors and at the same time Object (principal) ID is not getting created

Issue script & Debug output

No Errors and at the same time Object (principal) ID is not getting created

Expected behavior

Object (principal) ID should be created

Environment Summary

az --version azure-cli 2.45.0 *

core 2.45.0 telemetry 1.0.8

Extensions: application-insights 0.1.19 containerapp 0.3.37

Dependencies: msal 1.20.0 azure-mgmt-resource 21.1.0b1

Additional context

N/A

azure-client-tools-bot-prd[bot] commented 10 months ago

Hi @mnadeem,

2.45.0 is not the latest Azure CLI(2.55.0).

If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.

yonzhan commented 10 months ago

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

microsoft-github-policy-service[bot] commented 10 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jfggdl.

mnadeem commented 10 months ago

The issue persists even in latest version 2.55