Azure PowerShell Job enables you to run Azure PowerShell script automations.
cd src
# Build
docker build . -t azure-powershell-job:latest --build-arg BUILD_VERSION=local
# Build (DEBUG)
docker build . -t azure-powershell-job:latest --build-arg BUILD_VERSION=local --progress=plain --no-cache
# Run interactively
docker run -it --rm azure-powershell-job:latest
docker run -e AZURE_CLIENT_ID="123" -e SCRIPT_FILE="/scripts/example-job1.ps1" -it --rm azure-powershell-job:latest
docker run -e AZURE_CLIENT_ID="123" -e AZURE_TENANT_ID="123" -e AZURE_FEDERATED_TOKEN_FILE="/bin/run.ps1" -e SCRIPT_FILE="/scripts/example-job1.ps1" -it --rm azure-powershell-job:latest
mcr.microsoft.com/azure-powershell
Using Azure PowerShell in a Docker container
hub.docker.com/microsoft-powershell
hub.docker.com/microsoft-azure-powershell