VirtualNetworkPeeringArgs

data class VirtualNetworkPeeringArgs(val allowForwardedTraffic: Output<Boolean>? = null, val allowGatewayTransit: Output<Boolean>? = null, val allowVirtualNetworkAccess: Output<Boolean>? = null, val name: Output<String>? = null, val remoteAddressSpacePrefixes: Output<List<String>>? = null, val remoteVirtualNetworkId: Output<String>? = null, val resourceGroupName: Output<String>? = null, val useRemoteGateways: Output<Boolean>? = null, val workspaceId: Output<String>? = null) : ConvertibleToJava<VirtualNetworkPeeringArgs>

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

Constructors

Link copied to clipboard
fun VirtualNetworkPeeringArgs(allowForwardedTraffic: Output<Boolean>? = null, allowGatewayTransit: Output<Boolean>? = null, allowVirtualNetworkAccess: Output<Boolean>? = null, name: Output<String>? = null, remoteAddressSpacePrefixes: Output<List<String>>? = null, remoteVirtualNetworkId: Output<String>? = null, resourceGroupName: Output<String>? = null, useRemoteGateways: Output<Boolean>? = null, workspaceId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): VirtualNetworkPeeringArgs

Properties

Link copied to clipboard
val allowForwardedTraffic: Output<Boolean>? = null

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
val allowGatewayTransit: Output<Boolean>? = null

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
val allowVirtualNetworkAccess: Output<Boolean>? = null

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 name: Output<String>? = null

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

Link copied to clipboard
val remoteAddressSpacePrefixes: Output<List<String>>? = null

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
val remoteVirtualNetworkId: Output<String>? = null

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

Link copied to clipboard
val resourceGroupName: Output<String>? = null

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 useRemoteGateways: Output<Boolean>? = null

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

Link copied to clipboard
val workspaceId: Output<String>? = null

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