Created
October 16, 2017 20:12
-
-
Save briglx/9c7585419bdf4138b76d9fafe9c64dce to your computer and use it in GitHub Desktop.
Fetch Azure Monthly Report
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Replace the placeholders with your access token and ea number | |
# Replace the date with the month you are interested in YYYY-MM | |
wget -d --header="authorization: bearer REPLACE_WITH_ACCESS_TOKEN" --header="api-version: 1.0" -O usagereport.csv "https://ea.azure.com/rest/REPLACE_WITH_EA_NUMBER/usage-report?month=2017-10&type=detail&fmt=Csv" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment