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 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.