Azure / azure-dev

A developer CLI that reduces the time it takes for you to get started on Azure. The Azure Developer CLI (azd) provides a set of developer-friendly commands that map to key stages in your workflow - code, build, deploy, monitor, repeat.
https://aka.ms/azd
MIT License
412 stars 201 forks source link

Azure CLI 2.x is not installed on the machine of azdo pipeline. #1158

Closed zedy-wj closed 2 years ago

zedy-wj commented 2 years ago

Describe the issue: Azure CLI 2.x is not installed on the machine of azdo pipeline.

Repro Steps:

  1. Open the project in VS Code.
  2. Login with azd login.
  3. Run command: azd pipeline config --provider azdo
  4. Click on the link that is printed to open the actions page and you will see: image

Environment: OS: WSL, Windows desktop, MacOS desktop, Linux desktop, Devcontainer in VS Code Template: All templates. Branch: pr/1153 Azd version: 0.4.0-beta.1-pr.1988386 (commit https://github.com/Azure/azure-dev/commit/7b6248aa6788d586bcf0b9a9491187866dad5cca)

Expected behavior: Action logs can pass successfully.

@rajeshkamal5050 for notification.

rajeshkamal5050 commented 2 years ago

Doesn't seem like a direct Azd -> Az CLI dependency. Looks like something underneath.

@ellismg @vhvb1989 can you triage it?

weikanglim commented 2 years ago

It is due to the remaining usage of azure CLI authentication in Azure DevOps pipelines (which is intended, until we address #1126 post-release):

https://github.com/Azure/azure-dev/blob/d78120f18fa2b079e24db0b9a2da9b41e8cd64fe/templates/common/.azdo/pipelines/bicep/azure-dev.yml#L14-L17

Posted a comment to the change

ellismg commented 2 years ago

I reverted the removal of the az CLI from the docker container in #1129, so we won't check this change in. This should be OK to close now.