skip to content
Alvin Lucillo

Multiline az command in Bitbucket step

/ 1 min read

💻 Tech

If you want to perform an az command, but it needs to be separated into different lines, you can do so by using a literal block.

- step: &some-step
    script:
      - |
        az storage blob list  \
        --account-name $acct_name \
        --account-key $acct_key \
        --container-name $container_name \
        --output json