Blob Storage Output

Writing Custodian Output to Azure Blob Storage

You may pass the URL to a blob storage container as the output path to Custodian. You must change the URL prefix from https to azure.

By default, Custodian will add the policy name and date as the prefix to the blob.

custodian run -s azure:// mypolicy.yml

In addition, you can use pyformat syntax to format the output prefix. This example is the same structure as the default one.

custodian run -s azure://{policy_name}/{now:%Y/%m/%d/%H/} mypolicy.yml

Use {account_id} for Subscription ID.

Authentication to Storage

The account working with storage will require Blob Data Contributor on either the storage account or a higher scope.