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

fx-extension.pre-debug-check failed #1278

Closed
amansani15 opened this issue Jun 4, 2021 · 3 comments
Closed

fx-extension.pre-debug-check failed #1278

amansani15 opened this issue Jun 4, 2021 · 3 comments
Assignees
Labels
feature-request The issue is a feature request investigating TA:Auth Team Area: Auth
Milestone

Comments

@amansani15
Copy link

amansani15 commented Jun 4, 2021

Describe the bug:
I have created a project using Teams tool kit and I did provisioning and deploy to the cloud too. After everything is working on my end, I pushed the code to Azure DevOps so that rest of the team can work on the same code.

One of the team members pulled the code into there system and failed to run the code. Below is the step where it is failed and the errors occurred:

    • [Teams Toolkit] Provisioning Azure AD app: [2/3] Create secret for Azure AD app (Notice: You can reload the window and retry if task spends too long time.)
    • [aad.AadCreateSecretError]: Failed to create an application secret in Azure Active Directory. Please refer to the log for detailed information.
    • Running the contributed command: 'fx-extension.pre-debug-check' failed.

Steps to reproduce the behavior:

  1. Create a new project using MS Teams tool kit
  2. Provisioning and Deploy to the cloud
  3. Create a project in azure devops and publish your code.
  4. Ask other team member to pull the code and to run the project (Note: the other team member already have Teams Tool kit extension installed)
  5. When they run, you can see this Azure AD error.

Expected behavior
Now the person who created the project, only they can run the project locally for debugging. Looking for the steps/fix where anyone in the team who pull the code can able to run the project and debug locally.

VS Code Extension Information (please complete the following information):

  • OS: windows_NT x64
  • Version: VS Code 1.56.2

Additional context
[2021-06-04T14:40:21.926Z] [Info] - [Core] readConfigs() success! task:localDebug
[2021-06-04T14:40:21.932Z] [Info] - [AAD App Registration] Start to local debug
[2021-06-04T14:40:21.933Z] [Info] - [Simple Auth Plugin] Starting local-debug
[2021-06-04T14:40:21.939Z] [Info] - [AAD App Registration] Successfully parsed permissions.
[2021-06-04T14:40:21.941Z] [Info] - [Simple Auth Plugin] Successfully started local-debug
[2021-06-04T14:40:23.406Z] [Info] - [AAD App Registration] Successfully get Azure AD app.
[2021-06-04T14:41:18.535Z] [Error] - Failed to create an application secret in Azure Active Directory. Please refer to the log for detailed information.
[2021-06-04T14:41:18.535Z] [Error] - Detailed error: Request failed with status code 403. Reason: Insufficient privileges to complete the operation.
[2021-06-04T14:41:18.536Z] [Info] - [Solution] Execute Task summary---------------------------------
[2021-06-04T14:41:18.536Z] [Info] - fx-resource-local-debug.localDebug.......................... [ok]
[2021-06-04T14:41:18.536Z] [Info] - fx-resource-frontend-hosting.localDebug..................... [ok]
[2021-06-04T14:41:18.536Z] [Info] - fx-resource-aad-app-for-teams.localDebug.................... [failed]
[2021-06-04T14:41:18.536Z] [Info] - fx-resource-simple-auth.localDebug.......................... [ok]
[2021-06-04T14:41:18.536Z] [Info] - [Solution] Task overall result..............................[failed]
[2021-06-04T14:41:18.536Z] [Info] - [Core] run task localDebug finish, isOk: false!

@adashen
Copy link
Contributor

adashen commented Jun 8, 2021

@amansani15 Thanks very much for the feedback. Your scenario is valid and we definitely will provide more smooth experience in this scenario in the future. And it is already in our backlog. For now, to unblock you, there is a manual to enable the flow: https://github.com/OfficeDev/TeamsFx/blob/dev/docs/vscode-extension/collaborating.md

@adashen adashen added this to the Backlog milestone Jun 8, 2021
@adashen adashen added the feature-request The issue is a feature request label Jun 8, 2021
@amansani15
Copy link
Author

Hello @adashen, thank you for considering the issue and providing the steps to enable the flow. I will give it a try this week and will update if any issue occurs.

@amansani15
Copy link
Author

Hi @adashen. I followed the steps from the link you provided and other team members can able to run the project now. Thanks for the solution and closing the issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request The issue is a feature request investigating TA:Auth Team Area: Auth
Projects
None yet
Development

No branches or pull requests

4 participants