Skip to content

[BUG] EventHub Geo-DR authorizationRules returns incorrect resource ID without disasterRecoveryConfigs hierarchy #39290

@v-huizhu2

Description

@v-huizhu2

Service is returning weird response for disasterRecoveryConfig authorization rule:
url: http://localhost:5000/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/javacsmrg88637/providers/Microsoft.EventHub/namespaces/ns89955b7a/disasterRecoveryConfigs/geodr4035639/authorizationRules?api-version=2024-01-01

response body:

{
  "value" : [ {
    "id" : "/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/javacsmrg88637/providers/Microsoft.EventHub/namespaces/ns89955b7a/authorizationrules/RootManageSharedAccessKey",
    "name" : "RootManageSharedAccessKey",
    "type" : "Microsoft.EventHub/Namespaces/AuthorizationRules",
    "location" : "southcentralus",
    "properties" : {
      "rights" : [ "Listen", "Manage", "Send" ]
    }
  } ]
}

the rule id should be something like
/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/javacsmrg88637/providers/Microsoft.EventHub/namespaces/ns89955b7a/disasterRecoveryConfigs/geodr4035639/authorizationRules/rule1
(with two ancestors, instead of 1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Event HubsService AttentionWorkflow: This issue is responsible by Azure service team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions