https://github.com/swissgrc/docker-azure-pipelines-azurecli-net9
🐳 Docker image for running Azure CLI commands in an Azure Pipelines container job
https://github.com/swissgrc/docker-azure-pipelines-azurecli-net9
azure-cli azure-devops azure-pipelines docker hacktoberfest
Last synced: 4 months ago
JSON representation
🐳 Docker image for running Azure CLI commands in an Azure Pipelines container job
- Host: GitHub
- URL: https://github.com/swissgrc/docker-azure-pipelines-azurecli-net9
- Owner: swissgrc
- License: mit
- Created: 2024-12-02T09:10:36.000Z (7 months ago)
- Default Branch: develop
- Last Pushed: 2025-03-21T08:16:05.000Z (4 months ago)
- Last Synced: 2025-03-21T09:25:52.237Z (4 months ago)
- Topics: azure-cli, azure-devops, azure-pipelines, docker, hacktoberfest
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/swissgrc/azure-pipelines-azurecli
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Docker image for running Azure CLI commands in an Azure Pipelines container job
[](https://github.com/swissgrc/docker-azure-pipelines-azurecli-net9/blob/main/LICENSE) [](https://github.com/swissgrc/docker-azure-pipelines-azurecli-net9/actions/workflows/publish.yml) [](https://sonarcloud.io/summary/new_code?id=swissgrc_docker-azure-pipelines-azurecli-net9) [](https://hub.docker.com/r/swissgrc/azure-pipelines-azurecli) [](https://hub.docker.com/r/swissgrc/azure-pipelines-azurecli)
Docker image to run Azure CLI commands in [Azure Pipelines container jobs].
## Usage
This image can be used to run Azure CLI commands in [Azure Pipelines container jobs].
### Azure Pipelines Container Job
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:
```yaml
- stage: deploy
jobs:
- deployment: runAzureCLI
container: swissgrc/azure-pipelines-azurecli:latest-net9
environment: smarthotel-dev
strategy:
runOnce:
deploy:
steps:
- bash: |
az version
```## Included Software
- [swissgrc/azure-pipelines-dotnet:9](https://github.com/swissgrc/docker-azure-pipelines-dotnet-9) as base image
- Azure CLI## Tags
| Tag | Description | Size |
|---------------|-----------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------|
| latest | Latest stable release (from `main` branch) |  |
| latest-net9 | Identical to `latest` tag |  |
| unstable | Latest unstable release (from `develop` branch) |  |
| unstable-net9 | Identical to `unstable` tag |  |
| x.y.z-net9 | Image for a specific version of Azure CLI | |[Azure Pipelines container jobs]: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/container-phases