Microsoft Foundry Toolkit in VS Code does not recognize my Azure account

Mykhailo Stashkiv 0 Reputation points
2026-09-05T23:25:49.1033333+00:00

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 login succeeds.
  • az account show works.
  • 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 login succeeds.
  • az account show works.
  • 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?

Foundry Tools
Foundry Tools

Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform

0 comments No comments

Your answer

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