Skip to content

Add TenantId configuration instruction to Azure AD B2C docs#36814

Merged
meaghanlewis merged 4 commits intomainfrom
copilot/update-b2c-instructions
Mar 2, 2026
Merged

Add TenantId configuration instruction to Azure AD B2C docs#36814
meaghanlewis merged 4 commits intomainfrom
copilot/update-b2c-instructions

Conversation

Copy link
Contributor

Copilot AI commented Feb 27, 2026

The AzureADB2C appsettings.json example included a TenantId field but the accompanying instructions had no corresponding bullet explaining what value to use, leaving readers uncertain whether it duplicates ClientId or requires a separate value.

Changes

Before:

* For Domain, use the domain of your Azure AD B2C tenant.
* For ClientId, use the Application (client) ID from the app registration you created in your tenant.
* For Instance, use the domain of your Azure AD B2C tenant.
* For SignUpSignInPolicyId, use the user flow policy defined in the Azure B2C tenant

After (new bullet added):

* For TenantId, use the **Tenant ID** from your Azure AD B2C tenant. In the Azure portal, search for and select **Microsoft Entra ID**. In the **Overview**, copy the **Tenant ID**.
Original prompt

This section details on the original issue you should resolve

<issue_title>B2C Instructions show ClientId and TenantId as '999...' without instructions for TenantId</issue_title>
<issue_description>The JSON example shows this:

 "AzureAdB2C": {
    "Instance": "https://fabrikamb2c.b2clogin.com",
    "Domain": "fabrikamb2c.onmicrosoft.com",
    "ClientId": "99999999-9999-9999-9999-999999999999",
    "TenantId": "99999999-9999-9999-9999-999999999999",
    "SignedOutCallbackPath ": "/signout-callback-oidc",
    "SignUpSignInPolicyId": "your-user-flow"
  },

And the instructions read this:

For Domain, use the domain of your Azure AD B2C tenant.
For ClientId, use the Application (client) ID from the app registration you created in your tenant.
For Instance, use the domain of your Azure AD B2C tenant.
For SignUpSignInPolicyId, use the user flow policy defined in the Azure B2C tenant
Leave all other values as they are.

No mention of TenantId.

So, it's unclear what to put in the TenantId. Is this supposed to be a duplicate of the ClientId? Certainly, it can't be all 9's.

If not a duplicate, then where do we get it?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Comments on the Issue (you are @copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.


Internal previews

📄 File 🔗 Preview link
aspnetcore/security/authentication/azure-ad-b2c.md Cloud authentication with Azure Active Directory B2C in ASP.NET Core

Co-authored-by: meaghanlewis <10103121+meaghanlewis@users.noreply.github.com>
Copilot AI changed the title [WIP] Update B2C instructions to include TenantId clarification Add TenantId configuration instruction to Azure AD B2C docs Feb 27, 2026
Updated instructions for obtaining Tenant ID in Azure AD B2C.
@meaghanlewis meaghanlewis marked this pull request as ready for review February 27, 2026 20:12
Copy link
Contributor

@wadepickett wadepickett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Approved. I did make some suggetion for a couple little thins like a typo here and there original to the doc.

Co-authored-by: Wade Pickett <wpickett@microsoft.com>
@meaghanlewis meaghanlewis merged commit 27fad1e into main Mar 2, 2026
4 checks passed
@meaghanlewis meaghanlewis deleted the copilot/update-b2c-instructions branch March 2, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

B2C Instructions show ClientId and TenantId as '999...' without instructions for TenantId

3 participants