Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform
Microsoft Foundry Toolkit in VS Code does not recognize my Azure account
I am having an authentication issue with the Microsoft Foundry Toolkit in Visual Studio Code.
VS Code Azure Resources correctly recognizes my Azure work account and subscription, but Microsoft Foundry Toolkit does not consistently recognize the same Azure authentication session.
My environment:
- Windows
- Visual Studio Code
- Microsoft Foundry Toolkit 1.6.11
- Work account:
******@stashkivsoftware.onmicrosoft.com - Tenant: Stashkiv Software LLC
- Subscription: Azure subscription Business
Azure authentication itself appears to be working correctly:
-
az loginsucceeds. -
az account showworks. - Azure Resources extension in VS Code displays my subscription.
- The correct work account and tenant appear under Accounts & Tenants.
However, when using Microsoft Foundry Toolkit, I intermittently receive:
“You are not signed in to an Azure account. Please sign in.”
In some cases authentication works, and in other cases it fails, even though Azure Resources remains authenticated.
I have already tried:
- Signing out and signing back into Azure in VS Code
- Reloading VS Code
- Refreshing Azure Resources
- Selecting the correct tenant/subscription
- Authenticating again with
az login
Is there a separate authentication context or cached tenant/session used by Microsoft Foundry Toolkit?
How can I completely reset the Foundry Toolkit authentication state and make it consistently use the Azure account/tenant already selected by Azure Resources?I am having an authentication issue with the Microsoft Foundry Toolkit in Visual Studio Code.
VS Code Azure Resources correctly recognizes my Azure work account and subscription, but Microsoft Foundry Toolkit does not consistently recognize the same Azure authentication session.
My environment:
- Windows
- Visual Studio Code
- Microsoft Foundry Toolkit 1.6.11
- Work account:
******@stashkivsoftware.onmicrosoft.com - Tenant: Stashkiv Software LLC
- Subscription: Azure subscription Business
Azure authentication itself appears to be working correctly:
-
az loginsucceeds. -
az account showworks. - Azure Resources extension in VS Code displays my subscription.
- The correct work account and tenant appear under Accounts & Tenants.
However, when using Microsoft Foundry Toolkit, I intermittently receive:
“You are not signed in to an Azure account. Please sign in.”
In some cases authentication works, and in other cases it fails, even though Azure Resources remains authenticated.
I have already tried:
- Signing out and signing back into Azure in VS Code
- Reloading VS Code
- Refreshing Azure Resources
- Selecting the correct tenant/subscription
- Authenticating again with
az login
Is there a separate authentication context or cached tenant/session used by Microsoft Foundry Toolkit?
How can I completely reset the Foundry Toolkit authentication state and make it consistently use the Azure account/tenant already selected by Azure Resources?