💻 Tech
In Bitbucket, steps that involve Azure CLI command can make use of the existing image mcr.microsoft.com/azure-cli
. With this, you don’t need to use another image (e.g., alpine linux) and install Azure CLI.
definitions:
steps:
- step: &download-blob
name: Download blob
image: mcr.microsoft.com/azure-cli
script:
- az blob storage download --account-name $ACCT_NAME --account-key $ACCT_KEY --container-name $CONTAINER_NAME --file $FILE_NAME
artifacts:
- $FILE_NAME
pipelines:
pull-requests:
'**':
- step: *download-step