The subscription is not registered to use namespace ‘Microsoft.AzureActiveDirectory’


Today I was creating the Azure active directive B2C for my Blazor application. I was getting below exception

The subscription is not registered to use namespace ‘Microsoft.AzureActiveDirectory’

Error message is straight forward, so we need to create the subscription for Microsoft.AzureActiveDirectory

There are the following steps to create Subscriptios

Step 1: Go to home page of azure portal and select subscription

Step 2: Click on Free Trial

Step 3: Click on resource provider and select provider which one you want to register. In the below image I have Registered the Microsoft.AzureActiveDirectory

I hope this will help to some one who is getting this type of exception.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.