Skip to content

[BUG] Audience https://appservice.azure.com is not a supported MSI token audience. #577

Closed

Description

To Reproduce

az account get-access-token --resource=https://appservice.azure.com

Observed Behavior

Audience https://appservice.azure.com/ is not a supported MSI token audience.
Run the command below to authenticate interactively; additional arguments may be added as needed:
az logout
az login --scope "[https://appservice.azure.com/.default"](https://appservice.azure.com/.default%22)

Error occurring only since yesterday (13 Nov 2025), before which az webapp deploy used to work without this error

Interface information

Additional context

SandboxHost-638986344592425209

Activity

  1. ppmiralles0110 commented on Nov 17, 2025

    @ppmiralles0110

    Try checking "SCM Basic Auth Publishing Credentials" in the Configuration of the App Service. It worked for me, I have the same issue just recently.

  2. yashkondawar commented on Nov 17, 2025

    @yashkondawar

    Thanks a lot, this worked for us too.

  3. kaynatnoor8 commented on Nov 19, 2025

    @kaynatnoor8

    Did you enable or disable the "SCM Basic Auth Publishing Credentials" setting. In mycase neither is working. I have a flex consumption azur efunction and started getting this error recently for deployment.

  4. robins1212 commented on Nov 27, 2025

    @robins1212
    Contributor

    As a workaround, run az login --use-device-code first.

  5. mbifeld commented on Jan 14, 2026

    @mbifeld
    Member

    https://appservice.azure.com has been added to the list of supported token audiences for Cloud Shell. This change will fully roll out in 2-3 weeks.

  6. mbifeld commented on Feb 10, 2026

    @mbifeld
    Member

    This is resolved now in public cloud. The fix in government cloud will be out in several weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Triage-neededTriage needed by Cloud Shell teambugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions