Azure / Azure/azure-cli

az eventhubs georecovery-alias create command remove the UserAssigned identity from primary namespace

Open
#28,233 4 comments 0 reactions 0 assignees View on GitHub
act-codegen-extensibility-squad Auto-Assign bug customer-reported customer-response-expected Event Hubs 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 trying to create a georecovery alias using the az cli for eventhubs. for this I have created a Primary namespace and secondary namespace, for that I have added the UserAssigned identity to the both namespace and that's working fine.

After that I am using the az eventhubs georecovery-alias create command to create georecovery alias and that ultimately trigger the change to my primary namespace and it removes the UserAssigned identity from my namespace.

Also tried the same thing using the terraform and facing the same issue.

### Related command

`az eventhubs georecovery-alias create --alias --namespace-name --partner-namespace --resource-group `

### Errors

Command is not failing with any error but it's behaviour is not expected.

### Issue script & Debug output

`az eventhubs georecovery-alias create --alias --namespace-name --partner-namespace --resource-group `

### Expected behavior

When we run this command it should just create georecovery-alias using the primary namespace and secondary namespace. it should not trigger any of the change in any namespace.

### Environment Summary

azure-cli 2.56.0

core 2.56.0
telemetry 1.1.0

Dependencies:
msal 1.24.0b2
azure-mgmt-resource 23.1.0b2

Python location '/usr/bin/python3.9'
Extensions directory '/root/.azure/cliextensions'

Python (Linux) 3.9.14 (main, Oct 12 2023, 19:48:32)
[GCC 11.2.0]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

### 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.