We deploy VNet-injected Azure Databricks workspaces with Terraform (azurerm provider 5.x). The two delegated subnets (delegation Microsoft.Databricks/workspaces) get their address space from an Azure Virtual Network Manager IPAM pool: the subnets are created with ipamPoolPrefixAllocations (256 addresses each) instead of a fixed addressPrefixes. The IPAM pool lives in another subscription in the same tenant.
What happens: after the workspace is created, both subnets keep their addressPrefixes, but ipamPoolPrefixAllocations is gone (null). A private endpoint subnet in the same VNet, created the same way but without Databricks, keeps its allocation. Writing the allocation back with a subnet PUT works, it then persists, and the workspace stays healthy.
When it happens: we polled the subnets every 10 seconds during a fresh workspace deployment and matched the poll with the Activity Log. The allocation survives:
- our subnet creation and NSG association (
Microsoft.Network/virtualNetworks/subnets/write);
- three
Microsoft.Network/virtualNetworks/subnets/UnprepareNetworkPolicies/action calls by the AzureDatabricks resource provider's service principal.
It disappears exactly when Microsoft.Network/virtualNetworks/subnets/PrepareNetworkPolicies/action runs on each subnet (called by a Microsoft first-party service principal, not ours) and the Databricks network intent policy (ADB-NORWAYEAST-DP-TO-CP-PL-β¦) appears on the subnet. The private subnet lost it first, the public subnet 12 seconds later, each at its own PrepareNetworkPolicies call.
| Step |
Operation |
Called by |
Allocation afterwards |
| 1 |
subnets/write (create, NSG) |
our deployment identity |
present |
| 2 |
subnets/UnprepareNetworkPolicies/action (Γ3) |
AzureDatabricks resource provider |
present |
| 3 |
subnets/PrepareNetworkPolicies/action (one per subnet) |
Microsoft first-party principal |
missing |
It is reproducible: it happened on two workspaces on two days (2026-12-01 and 2026-12-02), each with its own pair of new subnets in the same VNet. Subnets of an existing workspace were not touched when the second workspace was deployed.
Questions
- Is it expected that
PrepareNetworkPolicies (the network intent policy for Databricks) rewrites the subnet without ipamPoolPrefixAllocations? It looks like a bug: a platform operation silently drops a property the customer set.
- While the allocation is missing, does the IPAM pool still count the subnet's prefix as allocated, or could it hand out an overlapping prefix to another subnet?
- Is it supported to write the allocation back on a subnet that has a network intent policy attached (our current workaround), and is there a recommended way to create Databricks subnets from an IPAM pool without this drift?
Impact: every new workspace leaves its subnets without an IPAM allocation until a second deployment restores it. Infrastructure-as-code plans show drift, and IPAM's view of address usage is incomplete in the meantime. We have correlation IDs and a 10-second poll log and can share them privately.