VirtualNetworkRuleArgs

data class VirtualNetworkRuleArgs(val accountName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val subnetId: Output<String>? = null, val virtualNetworkRuleName: Output<String>? = null) : ConvertibleToJava<VirtualNetworkRuleArgs>

Data Lake Store virtual network rule information. API Version: 2016-11-01.

Example Usage

Creates or updates the specified virtual network rule. During update, the virtual network rule with the specified name will be replaced with this new virtual network rule.

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var virtualNetworkRule = new AzureNative.DataLakeStore.VirtualNetworkRule("virtualNetworkRule", new()
{
AccountName = "contosoadla",
ResourceGroupName = "contosorg",
SubnetId = "test_subnetId",
VirtualNetworkRuleName = "test_virtual_network_rules_name",
});
});
package main
import (
datalakestore "github.com/pulumi/pulumi-azure-native-sdk/datalakestore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datalakestore.NewVirtualNetworkRule(ctx, "virtualNetworkRule", &datalakestore.VirtualNetworkRuleArgs{
AccountName: pulumi.String("contosoadla"),
ResourceGroupName: pulumi.String("contosorg"),
SubnetId: pulumi.String("test_subnetId"),
VirtualNetworkRuleName: pulumi.String("test_virtual_network_rules_name"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.datalakestore.VirtualNetworkRule;
import com.pulumi.azurenative.datalakestore.VirtualNetworkRuleArgs;
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 virtualNetworkRule = new VirtualNetworkRule("virtualNetworkRule", VirtualNetworkRuleArgs.builder()
.accountName("contosoadla")
.resourceGroupName("contosorg")
.subnetId("test_subnetId")
.virtualNetworkRuleName("test_virtual_network_rules_name")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:datalakestore:VirtualNetworkRule test_virtual_network_rules_name 34adfa4f-cedf-4dc0-ba29-b6d1a69ab345

Constructors

Link copied to clipboard
constructor(accountName: Output<String>? = null, resourceGroupName: Output<String>? = null, subnetId: Output<String>? = null, virtualNetworkRuleName: Output<String>? = null)

Properties

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

The name of the Data Lake Store account.

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

The name of the Azure resource group.

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

The resource identifier for the subnet.

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

The name of the virtual network rule to create or update.

Functions

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