-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-cli.yaml
34 lines (31 loc) · 1.5 KB
/
azure-cli.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
id: azure-cli
namespace: company.team
tasks:
- id: list_azure_regions
type: io.kestra.plugin.azure.cli.AzCLI
tenant: "{{ secret('AZURE_TENANT_ID') }}"
username: "{{ secret('AZURE_SERVICE_PRINCIPAL_CLIENT_ID') }}"
password: "{{ secret('AZURE_SERVICE_PRINCIPAL_PASSWORD') }}"
servicePrincipal: true
commands:
- az account list-locations --query "[].{Region:name}" -o table
extend:
title: Automate tasks on Azure using Azure CLI
description: >-
This flow demonstrates how you can use the Azure CLI plugin to automate
various tasks on Azure. The task below runs a simple command to list Azure
regions using the `az account list-locations` command. The output is a JSON
array of region names — you can either output that result to a JSON file or
use the `--query` parameter to only show the region names.
While the example shown below is simple, the CLI allows you to automate
virtually anything. Every action in Azure can be performed via an API call
that you can trigger from the CLI. For instance, you can follow the [Azure
documentation](https://learn.microsoft.com/en-us/azure/container-instances/container-instances-quickstart)
to start containers on Azure. Azure Container Instances support both CPU and
GPU workloads, and all that can be orchestrated with this simple CLI task.
tags:
- Azure
ee: false
demo: true
meta_description: "This flow demonstrates how you can use the Azure CLI plugin
to automate various tasks on Azure. "