Thursday, November 25, 2021

Resolve error: Creation of System Topic has failed with error: The subscription is not registered to use namespace 'Microsoft.EventGrid'. See for how to register subscriptions. Event Subscription will not be created.

Recently I got the above error when creating an Event Grid subscription

Following are the steps I used to resolve the error

Using Azure Cloud Shell execute following commands

  • az account set --subscription "Visual Studio Enterprise Subscription"
  • az provider register --namespace Microsoft.EventGrid
  • az provider show -n Microsoft.EventGrid
This will register the provider in your subscription.

This format is applicable for registering any service providers in your subscription

No comments: