'Azure Service Bus Namespace creation is failing with unknown error
When I am trying to create a Service Bus Namespace in Azure. It is failing with the below exception.
Microsoft.Azure.Management.ServiceBus.Models.ErrorResponseException: Operation returned an invalid status code 'NotFound'
Any help on why this error occurs and how to fix this?
Solution 1:[1]
Please check if the below steps help to work around:
I have faced similar kind of issue, but the status is Forbidden when creating the Service Bus topic request like Operation returned an invalid statu code: Forbidden
Resolve by adding role assignment to this service bus resource in the Azure Portal.
Go to your service bus resource > Access Control (IAM)
> Add Role assignment
> Search your service principal name and add it as a role like owner
, Save it.
In your case, I believe
Microsoft.Azure.Management.ServiceBus.Models.ErrorResponseException: Operation returned an invalid status code 'NotFound'
There are some causes regarding to similar error in Azure Service Bus Messaging Class like:
- The Operation you're trying to perform does not exist.
- Or the operation giving null in the request body.
- Entity trying to execute the operation against could not be found.
Some troubleshooting steps and recommendations provided by Microsoft Azure in this documentation.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | HariKrishnaRajoli-MT |