Azure Service Bus Namespace creation is failing with unknown error - azure

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?

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.

Related

Azure terraform storage account permission

I want to learn more about azure open vpn configurations and how it work. So looking around I found a open source project on GitHub, at the following link:
https://github.com/terraform-azurerm-examples/example-hub.git (Thank you for your code)
I set all the variable I wanted, and removed the version from azure provider.
but when I run terraform apply, I got an error on azure Storage account.
the error is this one:
Error: reading queue properties for AzureRM Storage Account "examplehubw6sr1wyncn": queues.Client#GetServiceProperties: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="AuthorizationPermissionMismatch" Message="This request is not authorized to perform this operation using this permission.\nRequestId:cce5a313-b003-005c-2bb2-9d8a2f000000\nTime:2021-08-30T15:19:07.9036073Z"
As far as I understand, the error is due to setting secret permissions, which I did updated giving Get, List and Set but the error keeps showing up.
I am using terraform version 0.14.5
and my azurerm version is 2.74.0
I never had this type of error, on my subscription I have administrator role.
Did anyone get this error and know how to solve it, I would really appreciate you help
The error is probably because your user does not have data plane permissions on your storage account - which is where Terraform wants to put the statefile. Give your user Storage Blob Data Contributor role: https://learn.microsoft.com/en-us/azure/storage/blobs/assign-azure-role-data-access?tabs=portal

How to create a Webhook subscription for Azure Event-Grid

I wanted to prototype a service using azure event-grid and used the following resources to create a custom event-grid topic. I'm trying to add a webbook subscription but there is a mandatory field (system topic name) on the Azure Portal that's not explained in the docs, and cli fails with the error below.
CLI Error:
Deployment failed. Correlation ID: 9e13c3c8-4255-4a0c-b5b5-0a9419a385dd. The operation failed due to an internal server error. The initial state of the impacted resources (if any) are restored. Please try again in few minutes. If error still persists, report 698c81db-22a9-4e4a-91cf-55408b2b1486:6/2/2020 8:23:10 AM (UTC) to our forums for assistance or raise a support ticket .
Portal Error:
Creation of System Topic has failed with error: System topic creation is not enabled for topic type Microsoft.EventGrid.Topics
Resources:
https://learn.microsoft.com/en-us/azure/event-grid/scripts/event-grid-cli-create-custom-topic
https://learn.microsoft.com/en-us/azure/event-grid/scripts/event-grid-cli-subscribe-custom-topic
https://learn.microsoft.com/en-us/azure/event-grid/custom-event-quickstart-portal
I'm not sure what I'm doing wrong. Any help is much appreciated.
Thank you
It looks like this is a bug on the portal. Based on the System topics in Azure Event Grid document:
System topic isn't applicable to custom topic scenarios, that is, Event Grid topics and Event Grid domains.
As a workaround, you can use any value for System Topic Name property to create the Event Subscription via the portal.
The following screen snippet shows a portal notifications during a process of the Event Subscription creating and deploying.

Azure Portal - Unable to Create a Signal R Service

I tried creating Signal R service with a Deployment failed message shown below.
Deployment to resource group '' failed. Additional details
from the underlying API that might be helpful: At least one resource
deployment operation failed. Please list deployment operations for
details. Please see https://aka.ms/arm-debug for usage details
I can see the service created in my Signal List even after getting the above error while creating it.
However, in the overview tab I can see the below error.
After clicking on the above error, I can see the code that says "Invalid RG"
Is there any problem with my RG?
Thanks,
Praveen
It seems to be a problem of azure SignalR itself, I try to create the service via portal and powershell, and get the same error.
I have opened a issue in the Github, you could trace it for progress.
Update:
It works fine in the portal today, seems something wrong with it yesterday.

Can't delete Kubernetes Service - Azure

Didn't provision properly. In a provisioning state of failed. I get the followoing when trying to delete from portal/Azure CLI:
Failed to delete container service 'GTK8s'. Error: 'autorest/azure: Service returned an error. Status=401 Code="InvalidAuthenticationToken" Message="The received access token is not valid: at least one of the claims 'puid' or 'altsecid' or 'oid' should be present. If you are accessing as application please make sure service principal is properly created in the tenant."'
I can't see a service principal relating to this application in Azure AD.
Deleting the resource group worked for me. Thx for the suggestion #4c74356b41

The resource service name networksecuritygroups is not supported error in Azure rest call

I am getting below error response
"The resource service name networksecuritygroups is not supported" while calling Azure REST service
PUT https://management.core.windows.net/subscription-id/ services/networksecuritygroups/network-security-group-name/rules/rule-name
providing proper subscription-id, network-security-group-name which is already created and a new rule-name.
Any idea please provide info.
Thanks,
Ashish

Resources