Add optional NAT gateway for outbound connectivity to VNet script#54
Open
josecisneros04 wants to merge 1 commit into
Open
Add optional NAT gateway for outbound connectivity to VNet script#54josecisneros04 wants to merge 1 commit into
josecisneros04 wants to merge 1 commit into
Conversation
create_databricks_vnet.ps1 now prompts (or accepts -CreateNatGateway) for whether a NAT gateway is needed for outbound internet access: - If yes: creates a Standard SKU static public IP, creates the NAT gateway, and associates it with both the public and private subnets (cluster nodes run in both under Secure Cluster Connectivity). - If no: emits an alert that Azure default outbound access is retired and an explicit outbound method must be attached before launching clusters. All inputs remain usable as up-front parameters (non-interactive) or via interactive prompts. NAT gateway/public IP names are param-or-prompt with sensible defaults, and the new resources follow the existing idempotency and owner-tagging patterns. Co-authored-by: Isaac
JoseDelgado9898
self-requested a review
July 17, 2026 20:42
JoseDelgado9898
approved these changes
Jul 17, 2026
JoseDelgado9898
left a comment
Contributor
There was a problem hiding this comment.
LGTM! I think we should have this version with the NAT Gateway on the main branch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Extends
workspace-setup/powershell-examples/managed-vnet-to-vnet-injection/create_databricks_vnet.ps1with an optional NAT gateway step for outbound internet connectivity.Changes
Create a NAT gateway for outbound internet connectivity? [y/n], or accepts-CreateNatGateway $true/$falseto run unattended (uses[Nullable[bool]]so "omitted" can be distinguished from an explicit$false).NatGatewayName/NatPublicIpNameinputs are param-or-prompt with sensible defaults (<vnet>-nat,<vnet>-nat-pip).Test-AzCliResourceExists) andownertagging conventions; added aRead-YesNohelper matching the existing prompt helpers..DESCRIPTION, two.EXAMPLEblocks) and the final summary output.The change is additive (+128/−1); existing parameter and prompt behavior is unchanged.
This pull request and its description were written by Isaac.