When you are trying to get an Azure Access Token and you come across this error. Below is the complete error stack you might get. Even the solution is present in the error stack.
Unhandled exception. System.AggregateException: One or more errors occurred. (AADSTS90002: Tenant 'token' not found. This may happen if there are no active subscriptions for the tenant. Check to make sure you have the correct tenant ID. Check with your subscription administrator.
Trace ID: 40d8709c-4655-489a-bbf5-a7c073b3eb00
Correlation ID: 4b2dca4b-036b-4a73-8c0f-3b7070a43619
Timestamp: 2021-07-19 18:08:20Z)
---> Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: AADSTS90002: Tenant 'token' not found. This may happen if there are no active subscriptions for the tenant. Check to make sure you have the correct tenant ID. Check with your subscription administrator.
The error stack tells me that This may happen if there are no active subscriptions for the tenant.
This error came because I did not have an Azure Subscription.
To fix this, create a free Azure account and try again, you will not get this error again. If you already have an Azure Subscription, make sure it is Active.
Learn to get the Azure Access token using Postman and C# from my post.

You must be logged in to post a comment.