Does calls between 2 azure resources in same regions adds to network bandwidth cost?

Tanul 1,281 Reputation points
2022-07-05T14:07:24.643+00:00

Team,

If we have 2 azure resources created within same region/same vnet and calling each other via rest api within same network. Does this adds any data transfer cost(money) over the same network.

If yes, then is it same as calling from outside(calling over internet via client users) or less than that. Please let me know.. Thank you.

Kind Regards,
Tanul

217747-animation-1.gif

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,469 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 54,401 Reputation points
    2022-07-05T14:45:25.47+00:00

    This is ingress vs egress as discussed here. In general, within the same data center (region) it is ingress but across regions and outside Azure are egress. It depends upon the service whether you get charged for both but in most cases ingress is cheaper than egress as you're staying inside the local Azure network.

    As far as cost goes it is complicated so it depends upon your resources. You should use the price calculator to get a better idea. But, based upon my understanding and your screenshot.

    • Azure functions charge by CPU usage and not network bandwidth as that is part of the triggers, not the function itself.
    • App Services (which is probably where you are hosting your APIs) are charged by the tier used and hours running.
    • VNets are free by themselves but cost money if you're using gateways.

    Note that the above does not include other services you may also need such as storage and any customizations you've made.

    Assuming all the above is in the same region then you should just be paying for the app service hosting and the runtime of the function. But, again, you should check the pricing calculator and check your billing.


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.