A cloud-based identity and access management service for securing user authentication and resource access
Hi @Philip Lukens , Here are some troubleshooting steps you can try:
- Ensure that you have the necessary permissions to link the subscriptions to your directory. You must be a Global Administrator or a Subscription Owner to link a subscription to a directory.
- Verify that the subscriptions you want to link are associated with the same Azure AD tenant as your communitycb2c directory. You can check this by navigating to the "Access control (IAM)" blade for each subscription and verifying that the "Directory + subscription" filter at the top of the blade is set to the correct directory.
- Check that you are signed in to the correct directory in the Azure portal. You can check this by looking at the directory name in the top right corner of the portal. If you are not signed in to the correct directory, you can switch directories by clicking on your username in the top right corner and selecting the correct directory from the dropdown.
- If you are still having trouble linking the subscriptions to your directory, you can try using the Azure CLI or PowerShell to link the subscriptions. Here are the steps to link a subscription using the Azure CLI:
- Open a command prompt or terminal window.
- Run the following command to sign in to your Azure account:
az login - Run the following command to set the active directory context to your communitycb2c directory:
az account set --subscription;subscription-id; --tenant ;tenant-id; - run the following command to link the subscription to your directory:
az ad sp create --id;subscription-id
- Here are the steps to link a subscription using PowerShell: Open a PowerShell window. Run the following command to sign in to your Azure account:
Connect-AzAccountRun the following command to set the active directory context to your communitycb2c directory:Set-AzContext -SubscriptionId;subscription-id; -TenantId;tenant-id;Run the following command to link the subscription to your directory:New-AzADServicePrincipal -ApplicationId;subscription-id;
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James