Cant Create B2C Dictory resource

Rafi 1 Reputation point
2020-12-08T21:28:08.917+00:00

I am trying to create an B2C active directory and I keep getting this error
The subscription is not registered to use namespace 'Microsoft.AzureActiveDirectory'."

I an creating it in a subscription so I don't know why I am getting this error.
Can someone advise?

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alfredo Revilla - Upwork Top Talent | IAM SWE SWA 27,526 Reputation points Moderator
    2020-12-08T21:57:05.73+00:00

    Hello @Rafi , usually you would not need to do anything. Try doing the following:

       Connect-AzAccount -Tenant <tenant id or name> -Subscription <subscription id or name>  
       Register-AzResourceProvider -ProviderNamespace Microsoft.AzureActiveDirectory  
    

    Please let me know if you need more help. If the answer was helpful to you, please accept it and, optionally, provide feedback so that other members in the community can benefit from it.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.