VirtualNetworkPeering

class VirtualNetworkPeering : KotlinCustomResource

Manages a Databricks Virtual Network Peering

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.databricks.Workspace;
import com.pulumi.azure.databricks.WorkspaceArgs;
import com.pulumi.azure.databricks.VirtualNetworkPeering;
import com.pulumi.azure.databricks.VirtualNetworkPeeringArgs;
import com.pulumi.azure.network.VirtualNetworkPeering;
import com.pulumi.azure.network.VirtualNetworkPeeringArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var remoteVirtualNetwork = new VirtualNetwork("remoteVirtualNetwork", VirtualNetworkArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.addressSpaces("10.0.1.0/24")
.location(exampleResourceGroup.location())
.build());
var exampleWorkspace = new Workspace("exampleWorkspace", WorkspaceArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.sku("standard")
.build());
var exampleVirtualNetworkPeering = new VirtualNetworkPeering("exampleVirtualNetworkPeering", VirtualNetworkPeeringArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.workspaceId(exampleWorkspace.id())
.remoteAddressSpacePrefixes(remoteVirtualNetwork.addressSpaces())
.remoteVirtualNetworkId(remoteVirtualNetwork.id())
.allowVirtualNetworkAccess(true)
.build());
var remoteVirtualNetworkPeering = new VirtualNetworkPeering("remoteVirtualNetworkPeering", VirtualNetworkPeeringArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.virtualNetworkName(remoteVirtualNetwork.name())
.remoteVirtualNetworkId(exampleVirtualNetworkPeering.virtualNetworkId())
.allowVirtualNetworkAccess(true)
.build());
}
}

Import

Databrick Virtual Network Peerings can be imported using the resource id, e.g.

$ pulumi import azure:databricks/virtualNetworkPeering:VirtualNetworkPeering example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Databricks/workspaces/workspace1/virtualNetworkPeerings/peering1

Properties

Link copied to clipboard

A list of address blocks reserved for this virtual network in CIDR notation. Changing this forces a new resource to be created.

Link copied to clipboard

Can the forwarded traffic from the VMs in the local virtual network be forwarded to the remote virtual network? Defaults to false.

Link copied to clipboard

Can the gateway links be used in the remote virtual network to link to the Databricks virtual network? Defaults to false.

Link copied to clipboard

Can the VMs in the local virtual network space access the VMs in the remote virtual network space? Defaults to true.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Specifies the name of the Databricks Virtual Network Peering resource. Changing this forces a new resource to be created.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A list of address blocks reserved for the remote virtual network in CIDR notation. Changing this forces a new resource to be created.

Link copied to clipboard

The ID of the remote virtual network. Changing this forces a new resource to be created.

Link copied to clipboard

The name of the Resource Group in which the Databricks Virtual Network Peering should exist. Changing this forces a new resource to be created.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

Can remote gateways be used on the Databricks virtual network? Defaults to false.

Link copied to clipboard

The ID of the internal Virtual Network used by the DataBricks Workspace.

Link copied to clipboard
val workspaceId: Output<String>

The ID of the Databricks Workspace that this Databricks Virtual Network Peering is bound. Changing this forces a new resource to be created.