- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2025 04:16 AM
I have Azure Databricks premium subscription. I am running the Python interactive Notebooks in the Databricks Wokrspace using Serverless compute since the last few days. Today I received an alter in my email saying the monthly Billing already crossed the set threshold value. I check the cost by services and found out the NAT Gateway service had significantly increased the cost. PFA the screenshot.
Why is Azure invoking the NAT Gateway and how can I cut it off entirely?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2025 12:55 PM - edited 07-13-2025 01:03 PM
Hi @SBL ,
Even if you use Serverless compute, they still will charge you for public connectivity connection type (as you can see at below documentation entry):
Understand Databricks serverless networking costs - Azure Databricks | Microsoft Learn
Unfortunately, I doubt that this option can be completely disabled. Serverless is managed by Databricks.
You can setup network policy to control servless egress and restrict outbound access, but I don't see any place to turn off Nat Gateway.
What you can do, assuming that your workloads don't need public internet access and that all your resources that you want to communicate with support private endpoints then you can try to configure a private connection using managed private endpoints. Then, you won't be charged by NAT Gateway usage.
If you want to have a full control just use classic compute plane networking. Then you can deploy Databricks into your own VNet and configure all networking aspects according to your needs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2025 10:20 PM
Thanks @szymon_dybczak
I deleted the Workspace and the NAT Gatway service got deleted from the vnet. I created a simple single node cluster to run my code.