How to get count for DNS requests and Resource Manager Operations

DiptiRanjan Swain 216 Reputation points
2021-11-16T11:59:07.447+00:00

I need to enable Azure Defender for DNS and Resource Manager. Since there is a cost for number of requests/numbers, I need to know how many DNS requests are generated by all resources under a subscription and how many resource management API calls made. So that I can calculate the approx. cost before enabling defender. Is there a way I can get those count for a given time period or monthly?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,662 questions
0 comments No comments
{count} votes

Accepted answer
  1. Stanislav Zhelyazkov 28,596 Reputation points MVP Volunteer Moderator
    2021-11-16T13:15:33.703+00:00

    Hi.
    For each DNS zone you can use its metrics to get that data. Specifically, QueryVolume metric. You will need to sum the volume across all your DNS zones. For ARM if you send your Azure activity logs to Log Analytics you can use query like to get the number of API calls:

    AzureActivity | count  
    

    You can set the time range before executing the query.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.