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-net6
environment: smarthotel-dev
strategy:
runOnce:
deploy:
steps:
- bash: |
az version
Tag | Description | Base Image | Azure CLI | Size |
---|---|---|---|---|
latest-net6 | Latest stable release (from main branch) |
swissgrc/azure-pipelines-dotnet:6.0.427 | 2.66.0 | |
unstable-net6 | Latest unstable release (from develop branch) |
swissgrc/azure-pipelines-dotnet:6.0.427 | 2.66.0 | |
2.37.0 | Azure CLI 2.37.0 | swissgrc/azure-pipelines-dotnet:6.0.301 | 2.37.0 | |
2.38.0 | Azure CLI 2.38.0 | swissgrc/azure-pipelines-dotnet:6.0.302 | 2.38.0 | |
2.39.0 | Azure CLI 2.39.0 | swissgrc/azure-pipelines-dotnet:6.0.302 | 2.39.0 | |
2.39.1 | Azure CLI 2.39.0 | swissgrc/azure-pipelines-dotnet:6.0.302.1 | 2.39.0 | |
2.40.0 | Azure CLI 2.40.0 | swissgrc/azure-pipelines-dotnet:6.0.400 | 2.40.0 | |
2.41.0 | Azure CLI 2.41.0 | swissgrc/azure-pipelines-dotnet:6.0.402 | 2.41.0 | |
2.42.0 | Azure CLI 2.42.0 | swissgrc/azure-pipelines-dotnet:6.0.402 | 2.42.0 | |
2.43.0 | Azure CLI 2.43.0 | swissgrc/azure-pipelines-dotnet:6.0.404 | 2.43.0 | |
2.44.0 | Azure CLI 2.44.0 | swissgrc/azure-pipelines-dotnet:6.0.405 | 2.44.0 | |
2.45.0 | Azure CLI 2.45.0 | swissgrc/azure-pipelines-dotnet:6.0.406 | 2.45.0 | |
2.46.0 | Azure CLI 2.46.0 | swissgrc/azure-pipelines-dotnet:6.0.407 | 2.46.0 | |
2.47.0 | Azure CLI 2.47.0 | swissgrc/azure-pipelines-dotnet:6.0.408 | 2.47.0 | |
2.48.0 | Azure CLI 2.48.0 | swissgrc/azure-pipelines-dotnet:6.0.408 | 2.48.0 | |
2.48.1 | Azure CLI 2.48.1 | swissgrc/azure-pipelines-dotnet:6.0.408 | 2.48.1 | |
2.49.0 | Azure CLI 2.49.0 | swissgrc/azure-pipelines-dotnet:6.0.408 | 2.49.0 | |
2.50.0-net6 | Azure CLI 2.50.0 | swissgrc/azure-pipelines-dotnet:6.0.411 | 2.50.0 | |
2.51.0-net6 | Azure CLI 2.51.0 | swissgrc/azure-pipelines-dotnet:6.0.412 | 2.51.0 | |
2.52.0-net6 | Azure CLI 2.52.0 | swissgrc/azure-pipelines-dotnet:6.0.413 | 2.52.0 | |
2.53.0-net6 | Azure CLI 2.53.0 | swissgrc/azure-pipelines-dotnet:6.0.414 | 2.53.0 | |
2.53.1-net6 | Azure CLI 2.53.1 | swissgrc/azure-pipelines-dotnet:6.0.415 | 2.53.1 | |
2.54.0-net6 | Azure CLI 2.54.0 | swissgrc/azure-pipelines-dotnet:6.0.416 | 2.54.0 | |
2.55.0-net6 | Azure CLI 2.55.0 | swissgrc/azure-pipelines-dotnet:6.0.417 | 2.55.0 | |
2.56.0-net6 | Azure CLI 2.56.0 | swissgrc/azure-pipelines-dotnet:6.0.418 | 2.56.0 | |
2.57.0-net6 | Azure CLI 2.57.0 | swissgrc/azure-pipelines-dotnet:6.0.419 | 2.57.0 | |
2.58.0-net6 | Azure CLI 2.58.0 | swissgrc/azure-pipelines-dotnet:6.0.420 | 2.58.0 | |
2.59.0-net6 | Azure CLI 2.59.0 | swissgrc/azure-pipelines-dotnet:6.0.421 | 2.59.0 | |
2.60.0-net6 | Azure CLI 2.60.0 | swissgrc/azure-pipelines-dotnet:6.0.422 | 2.60.0 | |
2.61.0-net6 | Azure CLI 2.61.0 | swissgrc/azure-pipelines-dotnet:6.0.423 | 2.61.0 | |
2.62.0-net6 | Azure CLI 2.62.0 | swissgrc/azure-pipelines-dotnet:6.0.424 | 2.62.0 | |
2.63.0-net6 | Azure CLI 2.63.0 | swissgrc/azure-pipelines-dotnet:6.0.425 | 2.63.0 | |
2.64.0-net6 | Azure CLI 2.64.0 | swissgrc/azure-pipelines-dotnet:6.0.425 | 2.64.0 | |
2.65.0-net6 | Azure CLI 2.65.0 | swissgrc/azure-pipelines-dotnet:6.0.425 | 2.65.0 | |
2.66.0-net6 | Azure CLI 2.66.0 | swissgrc/azure-pipelines-dotnet:6.0.427 | 2.66.0 |
These environment variables are supported:
Environment variable | Default value | Description |
---|---|---|
AZURECLI_VERSION | 2.65.0 |
Version of Azure CLI installed in the image. |