Read these articles before you continue:
Get started with custom policies in Azure Active Directory B2C
Manage Azure AD B2C custom policies with Azure PowerShell
Connect to your Azure AD B2C tenant, deploy html content and deploy custom policies:
$b2cTenantName = "<yourtenant.onmicrosoft.com>"
$b2cUrl = "<yourtenant.b2clogin.com>"
$resourceGroupName = "<your resource group name>"
$storageName = "<your storage account name>"
$iefAppId = "<guid>"
$proxyAppId = "<guid>"
$instrumentationKey = "<app insights instrumentation key>"
$contentRootUri = "https://$storageName.blob.core.windows.net/b2c/"
$loggingMode = "Development" # or 'Production'
Login-AzAccount
Select-AzSubscription -SubscriptionName "<your subscription name>"
# Deploy html content
.\ContentDefinitions\deploy.ps1 `
-DeploymentResourceGroupName $resourceGroupName `
-DeploymentStorageName $storageName `
-TenantUrl $b2cUrl
# Connect to your B2C tenant
Install-Module Microsoft.Graph.Beta
Connect-MgGraph -TenantId $b2cTenantName -Scopes "https://graph.microsoft.com/.default"
# Deploy custom policies
.\CustomPolicies\deploy.ps1 `
-TenantName $b2cTenantName `
-ContentRootUri $contentRootUri `
-IdentityExperienceFrameworkAppId $iefAppId `
-ProxyIdentityExperienceFrameworkAppId $proxyAppId `
-InstrumentationKey $instrumentationKey `
-LoggingMode $loggingMode
Disconnect-MgGraph
Read more about API Connectors for Azure AD B2C from these links: