By default Azure active directory B2C components are not installed on Azure subscription
Solution:-
1, Login to Azure portal
2, Open Cloud Shell
3, Identify the subscription by az account list
4, az account set –subscription “Subscription Name”
5, Register Namespace provider: az provider register –namespace Microsoft.AzureActiveDirectory
Done