microsoft / azure-pipelines-tasks

Tasks for Azure Pipelines
https://aka.ms/tfbuild
MIT License
3.5k stars 2.61k forks source link

How to use Az Cli version 2.26 in ADOC AzCliTaskV2 #15040

Closed Jay-Madden closed 2 years ago

Jay-Madden commented 3 years ago

Note

Issues in this repo are for tracking bugs, feature requests and questions for the tasks in this repo

For a list:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

Required Information

Entering this information will route you directly to the right team and expedite traction.

Question, Bug, or Feature?
Type: question

Enter Task Name: AzCliTask

list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

Environment

Azure Pipelines cloud

Ubuntu-latest

Issue Description

2.26 release of the az cli fixed a blocking issue for my team. How can I use that version in our pipelines. Its currently trying to use 2.25 which fails.

    inputs:
      azureSubscription: 'EMIS nonprod'
      scriptType: 'bash'
      scriptLocation: 'inlineScript'
      inlineScript: |
        az webapp config access-restriction add -g ...  -n ... p --priority 100 --service-tag ApplicationInsightsAvailability

Task logs


usr/bin/az --version
WARNING: You have 2 updates available. Consider updating your CLI installation with 'az upgrade'
azure-cli                         2.25.0 *

Please let us know how we are doing: https://aka.ms/azureclihats
core                              2.25.0 *
and let us know if you're interested in trying out our newest features: https://aka.ms/CLIUXstudy
telemetry                          1.0.6

Extensions:
azure-devops                      0.18.0

Python location '/opt/az/bin/python3'
Extensions directory '/opt/az/azcliextensions'

Python (Linux) 3.6.10 (default, Jun 11 2021, 05:19:38)```
github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days