1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-26 06:23:37 +00:00
catalog/task/az/0.1
PuneetPunamiya 9ec3c54036 Modifies azure-cli task according to the new reorg proposal
Changes include:
  - adds version label
  - adds a minimum pipeline versions supported by the task
  - adds display name for task
  - adds tags for task
  - modified description to add a summary

This patch moves the azure-cli files to the task directory and
renames the yaml file and directory
  - The yaml filename and the directory is changed to match the resource name
  - Modifies the path for install task command in readme file

Issue: #386

Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2020-07-10 22:06:57 +01:00
..
az.yaml Modifies azure-cli task according to the new reorg proposal 2020-07-10 22:06:57 +01:00
OWNERS Modifies azure-cli task according to the new reorg proposal 2020-07-10 22:06:57 +01:00
README.md Modifies azure-cli task according to the new reorg proposal 2020-07-10 22:06:57 +01: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

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