Allocate bandwidth (internet egress) usage to the resource that "caused" them

Mattia 36 Reputation points
2022-07-30T13:35:59.407+00:00

Hello,

My use case is that, alongside other services, I also host within my subscription VM for customers (VM that are fully managed within together with others by us where the customer only provides the application, so it makes sense for them to be together).

I'd like to know how much a VM is contributing toward the total amount of "Bandwidth - Standard Data Transfer Out" that I can see in the cost analysis (split by services).

One detail that I noticed, is that from the cost analysis (split by resource group, for example), I see that the lines belonging to a specific VM show some charge, and summing up those charges I get to the very same amount I see in the other page (this is likely because all VM have a matching reservation, so I don't have VM usage charges). But should I consider this data reliable?

Likewise, is there some proper alerting I can use in case the billable traffic goes over threshold? On the VM metrics I can look at "network out total", but that doesn't remove traffic to, say, the CDN which is not billable.

Overall, I'm kind of bummed out by how non-trivial it is to keep track of bandwidth usage, so I welcome any suggestion I can receive.

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,674 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,100 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Maxim Sergeev 6,586 Reputation points Microsoft Employee
    2022-08-01T15:46:45.49+00:00

    This is not available today out-of-the-box. Partly it could be covered by NSG logs but it requires to filter data manually by using Kusto Queries.

    https://learn.microsoft.com/en-us/azure/network-watcher/network-watcher-nsg-flow-logging-portal

    0 comments No comments

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.