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

Fail to run azd pipeline config --provider azdo for todo-nodejs-mongo-aks #4348

Open
Menghua1 opened this issue Sep 19, 2024 · 6 comments
Open
Labels
azdo Azure DevOps bug Something isn't working pipelines templates
Milestone

Comments

@Menghua1
Copy link
Member

Menghua1 commented Sep 19, 2024

Describe the issue:
Running the azd pipeline config --provider azdo command fails with the following error message:
image

Repro Steps:

  1. Login in with command: azd auth login.
  2. Run command: azd init -t todo-nodejs-mongo-aks -b staging.
  3. Run command: azd pipeline config --provider azdo.

Environment:

  • Template: todo-nodejs-mongo-aks.
  • Branch: staging
  • OS: Windows, MacOS.
  • Azd version: azd version 1.11.0-beta.1-pr.4140256 (commit b6402de) and azd version 1.11.0-beta.1-daily.4152592 (commit e2ff8ba)

Expected behavior:
azd pipeline config --provider azdo commands can be run successfully.

@jongio for notification.

@Menghua1
Copy link
Member Author

@jongio Yes, this issue can also be reproduced in main. We tested the following four scenarios and they can all be reproduced:

  • Template: todo-nodejs-mongo-aks.
  • OS: Windows, MacOS.
  • Test Scenario:
  1. Templates under the main branch + azd version 1.11.0-beta.1-daily.4152592 (commit e2ff8ba).
  2. Templates under the main branch + azd version 1.11.0-beta.1-pr.4140256 (commit b6402de).
  3. Templates under the staging branch + azd version 1.11.0-beta.1-daily.4152592 (commit e2ff8ba).
  4. Templates under the staging branch + azd version 1.11.0-beta.1-pr.4140256 (commit b6402de).

@github-staff github-staff deleted a comment from nhatlaso1 Sep 23, 2024
@rajeshkamal5050
Copy link
Contributor

@wbreza remember seeing similar issue on the ai starters due to User vs ServicePrincipal? cc @vhvb1989

@rajeshkamal5050 rajeshkamal5050 added bug Something isn't working templates azdo Azure DevOps pipelines labels Sep 26, 2024
@rajeshkamal5050 rajeshkamal5050 added this to the Backlog milestone Sep 26, 2024
@Menghua1
Copy link
Member Author

@rajeshkamal5050 In the latest round of azd manual testing, this issue still exists.

  • Template: todo-nodejs-mongo-aks.
  • Branch: staging.
  • OS: DevContainer.
  • Azd version: azd version 1.11.0-beta.1-daily.4152592 (commit e2ff8ba).

@Menghua1
Copy link
Member Author

@rajeshkamal5050 and @jongio In the latest round of azd manual testing, this issue still exists.

  • Template: todo-nodejs-mongo-aks.
  • Branch: staging.
  • OS: Windows.
  • Azd version: azd version 1.10.3-pr.4243081 (commit 2c05c15) and azd version 1.11.0-beta.1-daily.4244391 (commit 8fc9d80).

@vhvb1989
Copy link
Member

Looks like AZURE_PRINCIPAL_TYPE is not set during azd pipeline config and it is empty during CI run, making the runner to take the value of the literal ${AZURE_PRINCIPAL_TYPE} instead of replacing it with a value from the env.

This is an issue in the template configuration. The azure.yaml should define the AZURE_PRINCIPAL_TYPE in the pipeline->variables as a required ENV VAR to set during azd pipeline config

@Menghua1
Copy link
Member Author

@rajeshkamal5050 In the latest round of azd manual testing, this issue still exists.

  • Template: todo-nodejs-mongo-aks.
  • Branch: staging.
  • OS: DevContainer.
  • Azd version: azd version 1.11.0-beta.1-daily.4247716 (commit f4695c4).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azdo Azure DevOps bug Something isn't working pipelines templates
Projects
None yet
Development

No branches or pull requests

3 participants