Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
minces92 opened this issue Mar 12, 2024 · 5 comments
Open

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

minces92 opened this issue Mar 12, 2024 · 5 comments
Assignees

Comments

@minces92
Copy link

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
Copy link

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
Copy link
Author

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
Copy link

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
Copy link
Author

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
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants