OfficeDev / Microsoft-Teams-Samples

Welcome to the Microsoft Teams samples repository. Here you will find task-focused samples in C#, JavaScript and TypeScript to help you get started with the Microsoft Teams App!
MIT License
938 stars 739 forks source link

The sample does not run debug in the toolkit. #1188

Open minces92 opened 5 months ago

minces92 commented 5 months ago

The sample does not run debug in the toolkit.

If I just create a new app, the test debug works fine. When I download the apps here and run debug, the following error occurs: '[login.UserError]: Failed to find a subscription.'

I'm already logged in to both Azure and Teams. Which one do I need to log in to more?

I'd like to know the solution.

image

Vikram-MSFT commented 5 months ago

Hello @minces92 This error message you are facing suggests that there might be an issue with your Azure subscription or This happens sometimes vs code problems, by restarting vs code can fix it.

Double-check that you are logged in to the correct Azure account that has an active subscription. If you have multiple Azure accounts, make sure that you are using the one associated with the subscription you want to use.

If you have confirmed that you are logged in to the correct Azure account and still encountering this issue, you may want to try logging out and logging back in to refresh your credentials.

minces92 commented 5 months ago

hello @Vikram-MSFT

Please explain which active subscriptions of Azure are needed? I have to request them to get those permissions, but I can't ask for all of them.

Vikram-MSFT commented 5 months ago

Hello @minces92 To run an app using the Visual Studio Code Toolkit, you need to have an active Azure subscription. You can deploy your application to the provisioned resources in an active Azure subscription by using the Teams Toolkit extension for Visual Studio Code. Ref: https://marketplace.visualstudio.com/items?itemName=TeamsDevApp.ms-teams-vscode-extension

minces92 commented 5 months ago

Hello @Vikram-MSFT

It is not possible to check whether you have an Active Azure subscription because access to Azure is blocked within the company. So, I apologized and explained what permissions were needed.

But I am already using the Teams Toolkit in VSC and testing it while debugging the Custom App.

The current issue is that I wanted to test the sample posted here, but I shared an error that prevented it from running.

ChetanSharma-msft commented 5 months ago

Hello @minces92, Could you please confirm if you are able to login to Azure and able to create Azure Bot or App registration? If not, please check your admin to provide the access on it and try it once.

Also, please let us know which sample you have downloaded and try to run?