Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform
@Mykhailo Stashkiv - Thank you for posting your query in MS Q&A forum.
Based on the Microsoft Foundry Toolkit documentation, Foundry Toolkit uses the Azure account, tenant, and subscription context available through the Azure Resources experience in VS Code. Therefore, if Azure Resources is signed in and can enumerate your subscriptions, Foundry Toolkit should be able to use the same account context.
Since the issue is intermittent, the behavior does not appear to be an Azure CLI authentication problem. While az login and az account show confirm that your Azure CLI credentials are working, Foundry Toolkit relies on the VS Code Azure sign-in experience and project selection within the toolkit.
To refresh the Foundry Toolkit context, please try the following:
- Verify the VS Code account - Open Accounts in VS Code and confirm that
mykhailo@*******vsoftware.onmicrosoft.comis signed in and does not require re-authentication. Ensure the correct tenant (Stashkiv Software LLC) is selected under Azure > Accounts & Tenants. [VSCode fai...rosoft Q&A | Learn.Microsoft.com] - Confirm Azure Resources can see the subscription - Open Azure Resources. Verify that Azure subscription Business is visible under Resources and can be expanded successfully.
- Re-select the Foundry project - Open Foundry Toolkit. Navigate to My Resources → Set Foundry Project. Select Switch Project and choose the appropriate subscription and Foundry project again. Confirm the project resources load correctly.
- Clear and reconfigure the default project - If you have a previously configured default project, clear it and then select the Foundry project again. The documentation indicates that the default project remains configured until it is changed, cleared, you sign out, or access is removed.
- Try device-code authentication - Open the Command Palette (
Ctrl+Shift+P). Run Azure: Sign in with device code. Several users with similar VS Code Azure authentication issues reported that this resolved inconsistent sign-in behavior. [Visual Stu...rosoft Q&A | Learn.Microsoft.com]
I Hope this helps. Do let me know if you have any further queries.