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 Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,639 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,469 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. 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