VNet Peering Args
data class VNetPeeringArgs(val allowForwardedTraffic: Output<Boolean>? = null, val allowGatewayTransit: Output<Boolean>? = null, val allowVirtualNetworkAccess: Output<Boolean>? = null, val databricksAddressSpace: Output<AddressSpaceArgs>? = null, val databricksVirtualNetwork: Output<VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetworkArgs>? = null, val peeringName: Output<String>? = null, val remoteAddressSpace: Output<AddressSpaceArgs>? = null, val remoteVirtualNetwork: Output<VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetworkArgs>? = null, val resourceGroupName: Output<String>? = null, val useRemoteGateways: Output<Boolean>? = null, val workspaceName: Output<String>? = null) : ConvertibleToJava<VNetPeeringArgs>
Peerings in a VirtualNetwork resource API Version: 2018-04-01.
Example Usage
Create vNet Peering for Workspace
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var vNetPeering = new AzureNative.Databricks.VNetPeering("vNetPeering", new()
{
AllowForwardedTraffic = false,
AllowGatewayTransit = false,
AllowVirtualNetworkAccess = true,
PeeringName = "vNetPeeringTest",
RemoteVirtualNetwork = new AzureNative.Databricks.Inputs.VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetworkArgs
{
Id = "/subscriptions/0140911e-1040-48da-8bc9-b99fb3dd88a6/resourceGroups/subramantest/providers/Microsoft.Network/virtualNetworks/subramanvnet",
},
ResourceGroupName = "rg",
UseRemoteGateways = false,
WorkspaceName = "myWorkspace",
});
});
Content copied to clipboard
package main
import (
databricks "github.com/pulumi/pulumi-azure-native-sdk/databricks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databricks.NewvNetPeering(ctx, "vNetPeering", &databricks.vNetPeeringArgs{
AllowForwardedTraffic: pulumi.Bool(false),
AllowGatewayTransit: pulumi.Bool(false),
AllowVirtualNetworkAccess: pulumi.Bool(true),
PeeringName: pulumi.String("vNetPeeringTest"),
RemoteVirtualNetwork: &databricks.VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetworkArgs{
Id: pulumi.String("/subscriptions/0140911e-1040-48da-8bc9-b99fb3dd88a6/resourceGroups/subramantest/providers/Microsoft.Network/virtualNetworks/subramanvnet"),
},
ResourceGroupName: pulumi.String("rg"),
UseRemoteGateways: pulumi.Bool(false),
WorkspaceName: pulumi.String("myWorkspace"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.databricks.vNetPeering;
import com.pulumi.azurenative.databricks.VNetPeeringArgs;
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 vNetPeering = new VNetPeering("vNetPeering", VNetPeeringArgs.builder()
.allowForwardedTraffic(false)
.allowGatewayTransit(false)
.allowVirtualNetworkAccess(true)
.peeringName("vNetPeeringTest")
.remoteVirtualNetwork(Map.of("id", "/subscriptions/0140911e-1040-48da-8bc9-b99fb3dd88a6/resourceGroups/subramantest/providers/Microsoft.Network/virtualNetworks/subramanvnet"))
.resourceGroupName("rg")
.useRemoteGateways(false)
.workspaceName("myWorkspace")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:databricks:vNetPeering vNetPeeringTest /subscriptions/0140911e-1040-48da-8bc9-b99fb3dd88a6/resourceGroups/subramantest/providers/Microsoft.Databricks/workspaces/adbworkspace/virtualNetworkPeerings/vNetPeeringTest
Content copied to clipboard
Constructors
Link copied to clipboard
fun VNetPeeringArgs(allowForwardedTraffic: Output<Boolean>? = null, allowGatewayTransit: Output<Boolean>? = null, allowVirtualNetworkAccess: Output<Boolean>? = null, databricksAddressSpace: Output<AddressSpaceArgs>? = null, databricksVirtualNetwork: Output<VirtualNetworkPeeringPropertiesFormatDatabricksVirtualNetworkArgs>? = null, peeringName: Output<String>? = null, remoteAddressSpace: Output<AddressSpaceArgs>? = null, remoteVirtualNetwork: Output<VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetworkArgs>? = null, resourceGroupName: Output<String>? = null, useRemoteGateways: Output<Boolean>? = null, workspaceName: Output<String>? = null)
Functions
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val remoteVirtualNetwork: Output<VirtualNetworkPeeringPropertiesFormatRemoteVirtualNetworkArgs>? = null
Link copied to clipboard
If remote gateways can be used on this virtual network. If the flag is set to true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote virtual network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual network already has a gateway.
Link copied to clipboard