Cannot complete Provision step in Visual Studio Teams Toolkit

46 Views Asked by At

In VS 2022, v17.9.3, I installed the latest Teams Toolkit extension and created a project from the Microsoft Teams App template.

The issue is that the Teams Toolkit's "Provision in the Cloud..." wizard doesn't let me past the initial screen.

Here is what I do:

I go to Provision in the cloud

enter image description here

On the next screen I click the "Re-enter your credentials" link, which, after authentication, results in "Loading subscriptions...":

enter image description here

Then for a brief second, I see 3 textboxes, which what appears to be the selections needed for the provision step, but then the textboxes disappear and I am back to the screen that asks me to re-enter my credentials.

enter image description here

  • I tried logging out of all accounts, which forces to authenticate from scratch.
  • I tried setting default browser to Chrome or Edge.
  • I tried the equivalent action in Visual Studio Code Teams Toolkit, and had no problems with the provision step in Visual Studio Code. But, we really need to stay with Visual Studio and .NET Template since that's the environment we currently use for other projects.
1

There are 1 best solutions below

3
Sheep On

Thanks for reporting the issue. According to your description, it seems Teams Toolkit meets an exception when getting your account's subscriptions. Can you try to delete the cache folder %USERPROFILE%\.fx\account, restart your Visual Studio and try provision again.

For this time, you can pay attention to the Teams Toolkit output window to see if there are some error messages.

Also, I hope to know if your project has been provisioned before? You can check the AZURE_SUBSCRIPTION_ID under env\.env.dev. If provisioned before, this value is not empty.