Microsoft Entra Agent ID
Authentication

Interactive Agent Authentication Authorization Flow

In brief

The documentation now consistently uses `<your-tenant-id>` instead of `<my-test-tenant>` or `<your-test-tenant>` in PowerShell, OAuth URLs, and JSON examples.

What Entra admins need to know

This is a documentation-only clarification; administrators should use their tenant ID when following the examples. No product behavior change is indicated.

This editorial summary was generated by AI from the documentation changes. Verify important details in the full Microsoft Learn article.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

Use Microsoft Graph PowerShell to update the agent identity blueprint with the redirect URI.

Connect-MgGraph -Scopes "AgentIdentityBlueprint.ReadWrite.All" -TenantId <your-test-tenanttenant-id>

$applicationId = "<agent-blueprint-id>"
$web = @{
1. Redirect the user to the Microsoft Entra ID authorization endpoint with the following parameters:

    ```http
    GET https://login.microsoftonline.com/<my-test-tenantyour-tenant-id>/oauth2/v2.0/authorize?client_id=<client-app-id>
    &response_type=code
    &redirect_uri=<redirect_uri>
    &response_mode=query
1. After the user signs in, your app receives an authorization code at the redirect URI. Exchange the authorization code for an access token:

    ```http
    POST https://login.microsoftonline.com/<my-test-tenantyour-tenant-id>/oauth2/v2.0/token
    Content-Type: application/x-www-form-urlencoded

    client_id=<client-app-id>
    ```json
    "AzureAd": {
        "Instance": "https://login.microsoftonline.com/",
        "TenantId": "<my-test-tenantyour-tenant-id>",
        "ClientId": "<agent-blueprint-id>",
        "Audience": "<agent-blueprint-id>",
        "ClientCredentials": [
Daily Entra.News

Get daily email updates

Get a concise summary of the latest Microsoft Entra updates delivered straight to your inbox.

Loading the secure signup form…