InvalidAudience error during websocket requests to Azure resources

Shawn Smiley 0 Reputation points
2025-02-19T02:01:56.63+00:00

This might just be a transient issue, today we started receiving "401 Unauthorized" responses from the Azure Portal and the Azure CLI when trying to interact with our container apps. Specifically when trying to view log streams or connect to the console. When trying to access either the log streams or the console, the portal just hangs with a "connecting..." message.

I also see this when using the Azure CLI to run "az containerapp exec".

I was able to capture the following error using the browser dev tools:

Bearer error="invalid_token", error_description="S2S17001: SAL was able to validate the protocol, but validation failed as none of the inbound policies were satisfied. Validation failures: 'ff693ec1-2729-4777-af6c-4531c0439918: InvalidAudience'."

I've verified that my Azure CLI is the latest version and have logged out and then logged in again to refresh the access tokens.

On the Azure Portal side, I've tested from multiple browsers, multiple computers, and different user accounts (including our subscription owner account with service admin permissions).

I also created a new separate test resource group and container app just in case there was some issue with our existing app.

All of these tests resulted in the same error.

Are there any other suggestions for things I can do on my end to resolve the issue or do I just need to wait for the issue to be resolved in the Azure backend?

Thank you.

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
544 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Shawn Smiley 0 Reputation points
    2025-02-19T14:53:33+00:00

    This appears to have been a transient issue as it is no longer occurring today.

    The earlier post was after experiencing the issue for over 6 hours while the Azure status page didn't indicate any known issues.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.