cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Why am I seeing NAT Gateway in the cost? Serverless Compute.

SBL
Contributor

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?

NAT Gateway.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

szymon_dybczak
Esteemed Contributor III

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

szymon_dybczak_0-1752436097238.png

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.



View solution in original post

2 REPLIES 2

szymon_dybczak
Esteemed Contributor III

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

szymon_dybczak_0-1752436097238.png

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.



SBL
Contributor

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.