My goal is to send an alert when total capacity used in given storage is greater than x GB.
I've try setup an alert via Azure Monitoring, but it does not work as expected.
I've set alert for couple MB upload larger than that file to storage and nothing happens.
Maybe I messed up something with configuration so here it is:
Then I've try different approach thru REST API I found Microsoft.Azure.Management.Monitor.Fluent
package and even one example on monitoring storage: https://github.com/Azure-Samples/monitor-dotnet-query-metrics-activitylogs
But this example is not working.
It creates storage in my account and deletes it at end as it should, but when it executes query for monitoring data it returns exception Bad Request
- updating the nuget package to latest version doesn't solve the problem.
So here I am with a task which sound very simple, but it is not
Can anyone can put me to right direction?