This sample shows how to use the metrics API to retrieve account quotas.
Resource Current Quota
-------- ---------- --------
Assets 19 1000000
Content Key Polices 1 1000000
Streaming Policies 0 100
Live Events 2 5
Running Live Events 0 5
Transforms 100
Jobs 500000
Jobs Scheduled 0
Required Assemblies:
- Azure.Identity
- Azure.Monitor.Query
- Azure.ResourceManager.Media
Update the settings in appsettings.json in the root folder of the repository to match your Azure subscription, resource group and Media Services account. Then build and run the sample in Visual Studio or VS Code.
The sample will authenticate using any of the methods supported by DefaultAzureCredential
.