[Headache Prevention] Workaround for the error “Could not authenticate user with requested resource” when accessing the Aspire dashboard

Recently, I deployed a .NET Aspire solution to Azure Container Apps (via Azure Container Registry). The Azure Container Apps resource is running within my personal Azure tenant. In my personal tenant, my user is assigned as Owner of the corresponding resource group and therefore also Owner (by inheritance) of the Container Apps Environment which resides within the same resource group. Furthermore, my user has Azure built-in role Global Administrator assigned. Nevertheless, I always got the following error when I tried to access the Aspire dashboard which I enabled on the Container App.

I observed the same behavior after explicitly assigning my user as Owner on the Container Apps Environment resource (see Read real time app data with Aspire Dashboard in Azure Container Apps – Troubleshooting).

After some research I figured out how to workaround this as it didn’t occur due to missing permissions:

Open the Aspire dashboard in a incognito/private window!

Seems like this happens in case you are signed in with multiple Microsoft accounts in the same browser.

UPDATE 18.12.2025

If only a white screen appears after resolving the issue described above, check out the following StackOverflow answer which may helps you solving this subsequent issue too.

https://stackoverflow.com/questions/78533137/net-aspire-dashboard-not-loading-after-publishing-it-shows-an-unhandled-error/78587116#78587116

Leave a Reply

Powered by WordPress.com.

Up ↑

Discover more from blog.rufer.be

Subscribe now to keep reading and get access to the full archive.

Continue reading