-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
pipelines variable-group Not working with AzureCLI@2 Task #2935
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @narula0781, @ashishonce, @romil07. Issue DetailsTrying 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 Get an error 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.
|
pipelines |
Any update on this? |
devops service team should look into this issue. |
Following should work without needing to do - task: Bash@3
displayName: "Build .env"
inputs:
targetType: 'inline'
script: |
#!/bin/bash
az extension add -n azure-devops
az devops configure --defaults organization=$(System.TeamFoundationCollectionUri) project="$(System.TeamProject)" --use-git-aliases true
az pipelines variable-group list --output table
env:
AZURE_DEVOPS_EXT_PAT: $(System.AccessToken) |
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 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.
The text was updated successfully, but these errors were encountered: