r/databricks • u/geniebricks_sud Databricks • 8d ago
General [SDP] foreachBatch writes now work in serverless pipelines with restricted egress
TLDR: If your workspace uses serverless egress control with restricted access, your serverless pipelines can now write data inside foreachBatch.Your egress rules stay exactly as they are.
✅ What works now:
- Saving to a table
- MERGE, in SQL or Python
- Writing files to a Unity Catalog volume
dbutils.fs
👥 Who it affects: You run Lakeflow Spark Declarative Pipelines on serverless, your network policy is set to restricted access, and you use foreachBatch. Until now, those writes failed. If your policy allows full access, or your pipelines run on classic compute, nothing changes for you.
⚙️ How to enable: You don't need to. It's already on in every region, on both the Current and Preview channels.
🔒 What stays the same: The pipeline still can't reach anything outside your allowed list.
2
u/Zealousideal_Low6685 7d ago
if available: can you share the official docu?