1. Packages
  2. Azure Native v1
  3. API Docs
  4. datalakestore
  5. VirtualNetworkRule
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.datalakestore.VirtualNetworkRule

Explore with Pulumi AI

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",
    });

});
Copy
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
	})
}
Copy
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());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const virtualNetworkRule = new azure_native.datalakestore.VirtualNetworkRule("virtualNetworkRule", {
    accountName: "contosoadla",
    resourceGroupName: "contosorg",
    subnetId: "test_subnetId",
    virtualNetworkRuleName: "test_virtual_network_rules_name",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

virtual_network_rule = azure_native.datalakestore.VirtualNetworkRule("virtualNetworkRule",
    account_name="contosoadla",
    resource_group_name="contosorg",
    subnet_id="test_subnetId",
    virtual_network_rule_name="test_virtual_network_rules_name")
Copy
resources:
  virtualNetworkRule:
    type: azure-native:datalakestore:VirtualNetworkRule
    properties:
      accountName: contosoadla
      resourceGroupName: contosorg
      subnetId: test_subnetId
      virtualNetworkRuleName: test_virtual_network_rules_name
Copy

Create VirtualNetworkRule Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new VirtualNetworkRule(name: string, args: VirtualNetworkRuleArgs, opts?: CustomResourceOptions);
@overload
def VirtualNetworkRule(resource_name: str,
                       args: VirtualNetworkRuleArgs,
                       opts: Optional[ResourceOptions] = None)

@overload
def VirtualNetworkRule(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       account_name: Optional[str] = None,
                       resource_group_name: Optional[str] = None,
                       subnet_id: Optional[str] = None,
                       virtual_network_rule_name: Optional[str] = None)
func NewVirtualNetworkRule(ctx *Context, name string, args VirtualNetworkRuleArgs, opts ...ResourceOption) (*VirtualNetworkRule, error)
public VirtualNetworkRule(string name, VirtualNetworkRuleArgs args, CustomResourceOptions? opts = null)
public VirtualNetworkRule(String name, VirtualNetworkRuleArgs args)
public VirtualNetworkRule(String name, VirtualNetworkRuleArgs args, CustomResourceOptions options)
type: azure-native:datalakestore:VirtualNetworkRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. VirtualNetworkRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. VirtualNetworkRuleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. VirtualNetworkRuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. VirtualNetworkRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. VirtualNetworkRuleArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var virtualNetworkRuleResource = new AzureNative.Datalakestore.VirtualNetworkRule("virtualNetworkRuleResource", new()
{
    AccountName = "string",
    ResourceGroupName = "string",
    SubnetId = "string",
    VirtualNetworkRuleName = "string",
});
Copy
example, err := datalakestore.NewVirtualNetworkRule(ctx, "virtualNetworkRuleResource", &datalakestore.VirtualNetworkRuleArgs{
	AccountName:            "string",
	ResourceGroupName:      "string",
	SubnetId:               "string",
	VirtualNetworkRuleName: "string",
})
Copy
var virtualNetworkRuleResource = new VirtualNetworkRule("virtualNetworkRuleResource", VirtualNetworkRuleArgs.builder()
    .accountName("string")
    .resourceGroupName("string")
    .subnetId("string")
    .virtualNetworkRuleName("string")
    .build());
Copy
virtual_network_rule_resource = azure_native.datalakestore.VirtualNetworkRule("virtualNetworkRuleResource",
    account_name=string,
    resource_group_name=string,
    subnet_id=string,
    virtual_network_rule_name=string)
Copy
const virtualNetworkRuleResource = new azure_native.datalakestore.VirtualNetworkRule("virtualNetworkRuleResource", {
    accountName: "string",
    resourceGroupName: "string",
    subnetId: "string",
    virtualNetworkRuleName: "string",
});
Copy
type: azure-native:datalakestore:VirtualNetworkRule
properties:
    accountName: string
    resourceGroupName: string
    subnetId: string
    virtualNetworkRuleName: string
Copy

VirtualNetworkRule Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The VirtualNetworkRule resource accepts the following input properties:

AccountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Data Lake Store account.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Azure resource group.
SubnetId This property is required. string
The resource identifier for the subnet.
VirtualNetworkRuleName Changes to this property will trigger replacement. string
The name of the virtual network rule to create or update.
AccountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Data Lake Store account.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Azure resource group.
SubnetId This property is required. string
The resource identifier for the subnet.
VirtualNetworkRuleName Changes to this property will trigger replacement. string
The name of the virtual network rule to create or update.
accountName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Data Lake Store account.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Azure resource group.
subnetId This property is required. String
The resource identifier for the subnet.
virtualNetworkRuleName Changes to this property will trigger replacement. String
The name of the virtual network rule to create or update.
accountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Data Lake Store account.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Azure resource group.
subnetId This property is required. string
The resource identifier for the subnet.
virtualNetworkRuleName Changes to this property will trigger replacement. string
The name of the virtual network rule to create or update.
account_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the Data Lake Store account.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the Azure resource group.
subnet_id This property is required. str
The resource identifier for the subnet.
virtual_network_rule_name Changes to this property will trigger replacement. str
The name of the virtual network rule to create or update.
accountName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Data Lake Store account.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Azure resource group.
subnetId This property is required. String
The resource identifier for the subnet.
virtualNetworkRuleName Changes to this property will trigger replacement. String
The name of the virtual network rule to create or update.

Outputs

All input properties are implicitly available as output properties. Additionally, the VirtualNetworkRule resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Name string
The resource name.
Type string
The resource type.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The resource name.
Type string
The resource type.
id String
The provider-assigned unique ID for this managed resource.
name String
The resource name.
type String
The resource type.
id string
The provider-assigned unique ID for this managed resource.
name string
The resource name.
type string
The resource type.
id str
The provider-assigned unique ID for this managed resource.
name str
The resource name.
type str
The resource type.
id String
The provider-assigned unique ID for this managed resource.
name String
The resource name.
type String
The resource type.

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 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
azure-native-v1 pulumi/pulumi-azure-native
License
Apache-2.0