Docker image to run Azure CLI commands in Azure Pipelines container jobs.
This image can be used to run Azure CLI commands in Azure Pipelines container jobs.
To use the image in an Azure Pipelines Container Job, add one of the following example tasks and use it with the container
property.
The following example shows the container used for a deployment step with a Azure CLI command:
- stage: deploy
jobs:
- deployment: runAzureCLI
container: swissgrc/azure-pipelines-azurecli:latest-net9
environment: smarthotel-dev
strategy:
runOnce:
deploy:
steps:
- bash: |
az version
- swissgrc/azure-pipelines-dotnet:9 as base image
- Azure CLI