Azure Cost Management Exports let you schedule daily, monthly, or one-time exports of cost and usage data to an Azure Storage Account. This is configured directly in the Azure Portal.
π€ 1. Open the Exports Page
- In the Azure Portal, go to Cost Management + Billing.
- Choose the correct scope for your export (e.g., a subscription or billing account).
- In the left menu under Cost Management, click Exports.
- Click + Add (or Create Export).
π 2. Configure the Export Dataset
- Enter a unique Export name.
- Under Dataset, choose:
- Cost and usage (actual cost) β for most exports.
- Or select Amortized cost or FOCUS format if needed.
- Under Time frame and frequency, choose:
- Daily (month-to-date) β updates a daily file that accumulates costs.
- Monthly β exports full data for the previous month.
- One-time β exports data for a single selected period.
- Optionally enable Overwrite data to replace the daily file each day.
π 3. Set the Export Destination
- On the Destination tab:
- Set Storage type to Azure Blob Storage.
- Select the Subscription and Resource Group for your storage.
- Choose the Storage Account you created earlier.
- Specify a Container name (e.g.,
cost-exports
). - Optionally, add a directory path (e.g.,
production/
).
π¦ 4. Choose File Format and Compression
- Under Format:
- Select CSV or Parquet.
- If using CSV, enable Gzip compression to save space.
- Keep Partitioning enabled (splits large files by day).
- Leave Overwrite data enabled if you want one file per day.
β 5. Review and Create
- Click Next to review settings.
- Verify:
- The Storage Account and Container are correct.
- The scope (subscription or billing account) is accurate.
- Click Create to schedule the export.
π 6. After Creation
- The export job appears in the Exports list and runs on the selected schedule.
- The first file may take up to 24 hours to appear.
- Files will be stored in a folder structure by export name, date, and run ID: swiftCopyEdit
cost-exports/ExportName/20240401-20240430/RunID/
π Permissions & Firewall Tips
- Azure creates a system-assigned managed identity for the export.
- If your user had Owner rights, the identity will automatically get Storage Blob Data Contributor.
- If your Storage Account uses a firewall, ensure βAllow trusted Azure servicesβ is enabled so exports can write data.