1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-12-03 07:00:01 +00:00
catalog/azure-cli
Vincent Demeester 2a35d45a8e Port azure-cli to v1beta1 🦇
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2020-03-06 07:49:46 -06:00
..
azure_cli.yaml Port azure-cli to v1beta1 🦇 2020-03-06 07:49:46 -06:00
OWNERS adding OWNERS file for azure-cli 2019-12-23 10:13:33 -06:00
README.md remove args default, update az default image to 2.0.78, fix tkn readme 2020-01-06 03:51:37 -06:00

az

This task performs operations on Microsoft Azure resources using az.

Install the Task

kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/master/azure-cli/azure_cli.yaml

Inputs

Parameters

  • az-image: az CLI container image to run this task.

    default: mcr.microsoft.com/azure-cli:2.0.77

    You can use a specific version of the az CLI by specifying the az-image param with the mcr.microsoft.com/azure-cli image tagged with the specific version of the CLI you would like to use (i.e. version 2.0.70 = mcr.microsoft.com/azure-cli:2.0.70). A full list of available version tags can be found under the Full Tag Listing section of the az Docker Hub.

  • ARGS: The arguments to pass to az CLI. This parameter is required to run this task.

Usage

Running the Task

After creating the task, you should now be able to execute az commands by specifying the command you would like to run as the ARGS param. The ARGS param takes an array of az subcommands that will be executed as part of this task.

Examples

Run az ad --help using az. Start the task using the Tekton CLI (tkn):

tkn task start az -p ARGS=ad,--help

Specify a different az-image to use with the az task:

tkn task start az -p az-image=mcr.microsoft.com/azure-cli:2.0.70