Azure / Azure/azure-cli-extensions
pipelines variable-group Not working with AzureCLI@2 Task
- Dominant language
- Python
- Stars
- 454
- Forks
- 1.7k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 64
Description
Trying to have a MS hosted DevOps agent query a Team project to select predefined variable groups. This works locally however; when coupled with the [Azure CLI Task](https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-cli?view=azure-devops) Get an error
````Before you can run Azure DevOps commands, you need to run the login command(az login if using AAD/MSA identity else az devops login if using PAT token) to setup credentials. Please see https://aka.ms/azure-devops-cli-auth for more information.````
Try logging in via a PAT and script before this step and still not able to successfully run the az pipelines command
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: ba39ac35-94ff-5cda-dede-4834d174ee4c
* Version Independent ID: 93f1ab7d-610b-0fc4-c247-c31dd7752f60
* Content: [az pipelines variable-group](https://docs.microsoft.com/en-us/cli/azure/ext/azure-devops/pipelines/variable-group?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/ext/azure-devops/pipelines/variable-group.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/master/latest/docs-ref-autogen/ext/azure-devops/pipelines/variable-group.yml)
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**
Contributor guide
Assessment
This issue has not been assessed yet.