Azure / azure-service-bus

☁️ Azure Service Bus service issue tracking and samples
https://azure.microsoft.com/services/service-bus
MIT License
580 stars 775 forks source link

Receiving 403 when accessing Service Bus REST API with incorrect Subscription / Resource Group #695

Open Kaegun opened 4 months ago

Kaegun commented 4 months ago

Description

When calling the Service Bus REST API (https://learn.microsoft.com/en-us/rest/api/servicebus/) with an incorrect SubscriptionId or ResourceGroup parameter, I receive a 403 error back. I spent far too much time chasing authentication failures before realizing the misconfigured SubscriptionId/ResourceGroup.

Actual Behavior

  1. Call Service Bus REST operation - POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}/ListKeys?api-version=2021-11-01
  2. Use an incorrect value for subscription or resource group.
  3. Receive 403 response.

Expected Behavior

  1. Call REST operation - POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}/ListKeys?api-version=2021-11-01
  2. Use an incorrect value for subscription or resource group
  3. Receive 404 response
EldertGrootenboer commented 4 months ago

Thank you for your feedback. We have opened an investigation task for this in our backlog, and will update this issue when we have more information.

EldertGrootenboer commented 2 months ago

This item in our backlog, however we currently don't have an ETA on when development might start on this. For now, to help us give this the right priority, it would be helpful to see others vote and support this item.