This is a set of scripts to assist with analysis of Azure API call rates and throttling errors. It is based on this document: Troubleshooting API throttling errors
- Recent version of PowerShell 7
- Recent version of the Azure PowerShell Module
- A blob storage account with a Shared Access Signature for create / write operations (set at the container level)
Create a file name config.json
in the /scripts
directory and add the following details:
{
"subscriptionName": "[your_subscription_name]",
"tenantId": "[your_tenant_id]",
"sasUri": "[your_sas_uri]"
}
Open a PowerShell terminal, switch to the scripts
directory, and run export-stats.ps1
. You may need to run individual commands step-by-step. Output files will be written to the container your specified in the SAS URI. You may use Azure Storage Explorer or the Storage Browser in the Azure Portal to access the files.