1. Packages
  2. Azure Classic
  3. API Docs
  4. stack
  5. HciLogicalNetwork

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.stack.HciLogicalNetwork

Explore with Pulumi AI

Manages an Azure Stack HCI Logical Network.

Example Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
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.stack.HciLogicalNetwork;
import com.pulumi.azure.stack.HciLogicalNetworkArgs;
import com.pulumi.azure.stack.inputs.HciLogicalNetworkSubnetArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-rg")
            .location("West Europe")
            .build());

        var exampleHciLogicalNetwork = new HciLogicalNetwork("exampleHciLogicalNetwork", HciLogicalNetworkArgs.builder()
            .name("example-hci-ln")
            .resourceGroupName(example.name())
            .location(example.location())
            .customLocationId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1")
            .virtualSwitchName("ConvergedSwitch(managementcompute)")
            .dnsServers(            
                "10.0.0.7",
                "10.0.0.8")
            .subnet(HciLogicalNetworkSubnetArgs.builder()
                .ipAllocationMethod("Static")
                .addressPrefix("10.0.0.0/24")
                .vlanId(123)
                .route(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                .build())
            .tags(Map.of("foo", "bar"))
            .build());

    }
}
Copy
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-rg
      location: West Europe
  exampleHciLogicalNetwork:
    type: azure:stack:HciLogicalNetwork
    name: example
    properties:
      name: example-hci-ln
      resourceGroupName: ${example.name}
      location: ${example.location}
      customLocationId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1
      virtualSwitchName: ConvergedSwitch(managementcompute)
      dnsServers:
        - 10.0.0.7
        - 10.0.0.8
      subnet:
        ipAllocationMethod: Static
        addressPrefix: 10.0.0.0/24
        vlanId: 123
        route:
          addressPrefix: 0.0.0.0/0
          nextHopIpAddress: 10.0.0.1
      tags:
        foo: bar
Copy

Create HciLogicalNetwork Resource

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

Constructor syntax

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

@overload
def HciLogicalNetwork(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      custom_location_id: Optional[str] = None,
                      resource_group_name: Optional[str] = None,
                      subnet: Optional[HciLogicalNetworkSubnetArgs] = None,
                      virtual_switch_name: Optional[str] = None,
                      dns_servers: Optional[Sequence[str]] = None,
                      location: Optional[str] = None,
                      name: Optional[str] = None,
                      tags: Optional[Mapping[str, str]] = None)
func NewHciLogicalNetwork(ctx *Context, name string, args HciLogicalNetworkArgs, opts ...ResourceOption) (*HciLogicalNetwork, error)
public HciLogicalNetwork(string name, HciLogicalNetworkArgs args, CustomResourceOptions? opts = null)
public HciLogicalNetwork(String name, HciLogicalNetworkArgs args)
public HciLogicalNetwork(String name, HciLogicalNetworkArgs args, CustomResourceOptions options)
type: azure:stack:HciLogicalNetwork
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. HciLogicalNetworkArgs
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. HciLogicalNetworkArgs
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. HciLogicalNetworkArgs
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. HciLogicalNetworkArgs
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. HciLogicalNetworkArgs
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 hciLogicalNetworkResource = new Azure.Stack.HciLogicalNetwork("hciLogicalNetworkResource", new()
{
    CustomLocationId = "string",
    ResourceGroupName = "string",
    Subnet = new Azure.Stack.Inputs.HciLogicalNetworkSubnetArgs
    {
        IpAllocationMethod = "string",
        AddressPrefix = "string",
        IpPools = new[]
        {
            new Azure.Stack.Inputs.HciLogicalNetworkSubnetIpPoolArgs
            {
                End = "string",
                Start = "string",
            },
        },
        Routes = new[]
        {
            new Azure.Stack.Inputs.HciLogicalNetworkSubnetRouteArgs
            {
                AddressPrefix = "string",
                NextHopIpAddress = "string",
                Name = "string",
            },
        },
        VlanId = 0,
    },
    VirtualSwitchName = "string",
    DnsServers = new[]
    {
        "string",
    },
    Location = "string",
    Name = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := stack.NewHciLogicalNetwork(ctx, "hciLogicalNetworkResource", &stack.HciLogicalNetworkArgs{
	CustomLocationId:  pulumi.String("string"),
	ResourceGroupName: pulumi.String("string"),
	Subnet: &stack.HciLogicalNetworkSubnetArgs{
		IpAllocationMethod: pulumi.String("string"),
		AddressPrefix:      pulumi.String("string"),
		IpPools: stack.HciLogicalNetworkSubnetIpPoolArray{
			&stack.HciLogicalNetworkSubnetIpPoolArgs{
				End:   pulumi.String("string"),
				Start: pulumi.String("string"),
			},
		},
		Routes: stack.HciLogicalNetworkSubnetRouteArray{
			&stack.HciLogicalNetworkSubnetRouteArgs{
				AddressPrefix:    pulumi.String("string"),
				NextHopIpAddress: pulumi.String("string"),
				Name:             pulumi.String("string"),
			},
		},
		VlanId: pulumi.Int(0),
	},
	VirtualSwitchName: pulumi.String("string"),
	DnsServers: pulumi.StringArray{
		pulumi.String("string"),
	},
	Location: pulumi.String("string"),
	Name:     pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var hciLogicalNetworkResource = new HciLogicalNetwork("hciLogicalNetworkResource", HciLogicalNetworkArgs.builder()
    .customLocationId("string")
    .resourceGroupName("string")
    .subnet(HciLogicalNetworkSubnetArgs.builder()
        .ipAllocationMethod("string")
        .addressPrefix("string")
        .ipPools(HciLogicalNetworkSubnetIpPoolArgs.builder()
            .end("string")
            .start("string")
            .build())
        .routes(HciLogicalNetworkSubnetRouteArgs.builder()
            .addressPrefix("string")
            .nextHopIpAddress("string")
            .name("string")
            .build())
        .vlanId(0)
        .build())
    .virtualSwitchName("string")
    .dnsServers("string")
    .location("string")
    .name("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
hci_logical_network_resource = azure.stack.HciLogicalNetwork("hciLogicalNetworkResource",
    custom_location_id="string",
    resource_group_name="string",
    subnet={
        "ip_allocation_method": "string",
        "address_prefix": "string",
        "ip_pools": [{
            "end": "string",
            "start": "string",
        }],
        "routes": [{
            "address_prefix": "string",
            "next_hop_ip_address": "string",
            "name": "string",
        }],
        "vlan_id": 0,
    },
    virtual_switch_name="string",
    dns_servers=["string"],
    location="string",
    name="string",
    tags={
        "string": "string",
    })
Copy
const hciLogicalNetworkResource = new azure.stack.HciLogicalNetwork("hciLogicalNetworkResource", {
    customLocationId: "string",
    resourceGroupName: "string",
    subnet: {
        ipAllocationMethod: "string",
        addressPrefix: "string",
        ipPools: [{
            end: "string",
            start: "string",
        }],
        routes: [{
            addressPrefix: "string",
            nextHopIpAddress: "string",
            name: "string",
        }],
        vlanId: 0,
    },
    virtualSwitchName: "string",
    dnsServers: ["string"],
    location: "string",
    name: "string",
    tags: {
        string: "string",
    },
});
Copy
type: azure:stack:HciLogicalNetwork
properties:
    customLocationId: string
    dnsServers:
        - string
    location: string
    name: string
    resourceGroupName: string
    subnet:
        addressPrefix: string
        ipAllocationMethod: string
        ipPools:
            - end: string
              start: string
        routes:
            - addressPrefix: string
              name: string
              nextHopIpAddress: string
        vlanId: 0
    tags:
        string: string
    virtualSwitchName: string
Copy

HciLogicalNetwork 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 HciLogicalNetwork resource accepts the following input properties:

CustomLocationId
This property is required.
Changes to this property will trigger replacement.
string
The ID of Custom Location where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Resource Group where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
Subnet
This property is required.
Changes to this property will trigger replacement.
HciLogicalNetworkSubnet
A subnet block as defined below. Changing this forces a new resource to be created.
VirtualSwitchName
This property is required.
Changes to this property will trigger replacement.
string
The name of the virtual switch on the cluster used to associate with the Azure Stack HCI Logical Network. Possible switch names can be retrieved by following this Azure guide. Changing this forces a new resource to be created.
DnsServers Changes to this property will trigger replacement. List<string>
A list of IPv4 addresses of DNS servers available to VMs deployed in the Logical Networks. Changing this forces a new resource to be created.
Location Changes to this property will trigger replacement. string
The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
Name Changes to this property will trigger replacement. string
The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created.
Tags Dictionary<string, string>
A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
CustomLocationId
This property is required.
Changes to this property will trigger replacement.
string
The ID of Custom Location where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Resource Group where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
Subnet
This property is required.
Changes to this property will trigger replacement.
HciLogicalNetworkSubnetArgs
A subnet block as defined below. Changing this forces a new resource to be created.
VirtualSwitchName
This property is required.
Changes to this property will trigger replacement.
string
The name of the virtual switch on the cluster used to associate with the Azure Stack HCI Logical Network. Possible switch names can be retrieved by following this Azure guide. Changing this forces a new resource to be created.
DnsServers Changes to this property will trigger replacement. []string
A list of IPv4 addresses of DNS servers available to VMs deployed in the Logical Networks. Changing this forces a new resource to be created.
Location Changes to this property will trigger replacement. string
The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
Name Changes to this property will trigger replacement. string
The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created.
Tags map[string]string
A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
customLocationId
This property is required.
Changes to this property will trigger replacement.
String
The ID of Custom Location where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Resource Group where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
subnet
This property is required.
Changes to this property will trigger replacement.
HciLogicalNetworkSubnet
A subnet block as defined below. Changing this forces a new resource to be created.
virtualSwitchName
This property is required.
Changes to this property will trigger replacement.
String
The name of the virtual switch on the cluster used to associate with the Azure Stack HCI Logical Network. Possible switch names can be retrieved by following this Azure guide. Changing this forces a new resource to be created.
dnsServers Changes to this property will trigger replacement. List<String>
A list of IPv4 addresses of DNS servers available to VMs deployed in the Logical Networks. Changing this forces a new resource to be created.
location Changes to this property will trigger replacement. String
The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. String
The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created.
tags Map<String,String>
A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
customLocationId
This property is required.
Changes to this property will trigger replacement.
string
The ID of Custom Location where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Resource Group where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
subnet
This property is required.
Changes to this property will trigger replacement.
HciLogicalNetworkSubnet
A subnet block as defined below. Changing this forces a new resource to be created.
virtualSwitchName
This property is required.
Changes to this property will trigger replacement.
string
The name of the virtual switch on the cluster used to associate with the Azure Stack HCI Logical Network. Possible switch names can be retrieved by following this Azure guide. Changing this forces a new resource to be created.
dnsServers Changes to this property will trigger replacement. string[]
A list of IPv4 addresses of DNS servers available to VMs deployed in the Logical Networks. Changing this forces a new resource to be created.
location Changes to this property will trigger replacement. string
The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. string
The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created.
tags {[key: string]: string}
A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
custom_location_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of Custom Location where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the Resource Group where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
subnet
This property is required.
Changes to this property will trigger replacement.
HciLogicalNetworkSubnetArgs
A subnet block as defined below. Changing this forces a new resource to be created.
virtual_switch_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the virtual switch on the cluster used to associate with the Azure Stack HCI Logical Network. Possible switch names can be retrieved by following this Azure guide. Changing this forces a new resource to be created.
dns_servers Changes to this property will trigger replacement. Sequence[str]
A list of IPv4 addresses of DNS servers available to VMs deployed in the Logical Networks. Changing this forces a new resource to be created.
location Changes to this property will trigger replacement. str
The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. str
The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created.
tags Mapping[str, str]
A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
customLocationId
This property is required.
Changes to this property will trigger replacement.
String
The ID of Custom Location where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Resource Group where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
subnet
This property is required.
Changes to this property will trigger replacement.
Property Map
A subnet block as defined below. Changing this forces a new resource to be created.
virtualSwitchName
This property is required.
Changes to this property will trigger replacement.
String
The name of the virtual switch on the cluster used to associate with the Azure Stack HCI Logical Network. Possible switch names can be retrieved by following this Azure guide. Changing this forces a new resource to be created.
dnsServers Changes to this property will trigger replacement. List<String>
A list of IPv4 addresses of DNS servers available to VMs deployed in the Logical Networks. Changing this forces a new resource to be created.
location Changes to this property will trigger replacement. String
The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. String
The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created.
tags Map<String>
A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.

Outputs

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

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

Look up Existing HciLogicalNetwork Resource

Get an existing HciLogicalNetwork resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: HciLogicalNetworkState, opts?: CustomResourceOptions): HciLogicalNetwork
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        custom_location_id: Optional[str] = None,
        dns_servers: Optional[Sequence[str]] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        subnet: Optional[HciLogicalNetworkSubnetArgs] = None,
        tags: Optional[Mapping[str, str]] = None,
        virtual_switch_name: Optional[str] = None) -> HciLogicalNetwork
func GetHciLogicalNetwork(ctx *Context, name string, id IDInput, state *HciLogicalNetworkState, opts ...ResourceOption) (*HciLogicalNetwork, error)
public static HciLogicalNetwork Get(string name, Input<string> id, HciLogicalNetworkState? state, CustomResourceOptions? opts = null)
public static HciLogicalNetwork get(String name, Output<String> id, HciLogicalNetworkState state, CustomResourceOptions options)
resources:  _:    type: azure:stack:HciLogicalNetwork    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CustomLocationId Changes to this property will trigger replacement. string
The ID of Custom Location where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
DnsServers Changes to this property will trigger replacement. List<string>
A list of IPv4 addresses of DNS servers available to VMs deployed in the Logical Networks. Changing this forces a new resource to be created.
Location Changes to this property will trigger replacement. string
The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
Name Changes to this property will trigger replacement. string
The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created.
ResourceGroupName Changes to this property will trigger replacement. string
The name of the Resource Group where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
Subnet Changes to this property will trigger replacement. HciLogicalNetworkSubnet
A subnet block as defined below. Changing this forces a new resource to be created.
Tags Dictionary<string, string>
A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
VirtualSwitchName Changes to this property will trigger replacement. string
The name of the virtual switch on the cluster used to associate with the Azure Stack HCI Logical Network. Possible switch names can be retrieved by following this Azure guide. Changing this forces a new resource to be created.
CustomLocationId Changes to this property will trigger replacement. string
The ID of Custom Location where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
DnsServers Changes to this property will trigger replacement. []string
A list of IPv4 addresses of DNS servers available to VMs deployed in the Logical Networks. Changing this forces a new resource to be created.
Location Changes to this property will trigger replacement. string
The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
Name Changes to this property will trigger replacement. string
The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created.
ResourceGroupName Changes to this property will trigger replacement. string
The name of the Resource Group where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
Subnet Changes to this property will trigger replacement. HciLogicalNetworkSubnetArgs
A subnet block as defined below. Changing this forces a new resource to be created.
Tags map[string]string
A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
VirtualSwitchName Changes to this property will trigger replacement. string
The name of the virtual switch on the cluster used to associate with the Azure Stack HCI Logical Network. Possible switch names can be retrieved by following this Azure guide. Changing this forces a new resource to be created.
customLocationId Changes to this property will trigger replacement. String
The ID of Custom Location where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
dnsServers Changes to this property will trigger replacement. List<String>
A list of IPv4 addresses of DNS servers available to VMs deployed in the Logical Networks. Changing this forces a new resource to be created.
location Changes to this property will trigger replacement. String
The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. String
The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created.
resourceGroupName Changes to this property will trigger replacement. String
The name of the Resource Group where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
subnet Changes to this property will trigger replacement. HciLogicalNetworkSubnet
A subnet block as defined below. Changing this forces a new resource to be created.
tags Map<String,String>
A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
virtualSwitchName Changes to this property will trigger replacement. String
The name of the virtual switch on the cluster used to associate with the Azure Stack HCI Logical Network. Possible switch names can be retrieved by following this Azure guide. Changing this forces a new resource to be created.
customLocationId Changes to this property will trigger replacement. string
The ID of Custom Location where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
dnsServers Changes to this property will trigger replacement. string[]
A list of IPv4 addresses of DNS servers available to VMs deployed in the Logical Networks. Changing this forces a new resource to be created.
location Changes to this property will trigger replacement. string
The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. string
The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created.
resourceGroupName Changes to this property will trigger replacement. string
The name of the Resource Group where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
subnet Changes to this property will trigger replacement. HciLogicalNetworkSubnet
A subnet block as defined below. Changing this forces a new resource to be created.
tags {[key: string]: string}
A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
virtualSwitchName Changes to this property will trigger replacement. string
The name of the virtual switch on the cluster used to associate with the Azure Stack HCI Logical Network. Possible switch names can be retrieved by following this Azure guide. Changing this forces a new resource to be created.
custom_location_id Changes to this property will trigger replacement. str
The ID of Custom Location where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
dns_servers Changes to this property will trigger replacement. Sequence[str]
A list of IPv4 addresses of DNS servers available to VMs deployed in the Logical Networks. Changing this forces a new resource to be created.
location Changes to this property will trigger replacement. str
The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. str
The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created.
resource_group_name Changes to this property will trigger replacement. str
The name of the Resource Group where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
subnet Changes to this property will trigger replacement. HciLogicalNetworkSubnetArgs
A subnet block as defined below. Changing this forces a new resource to be created.
tags Mapping[str, str]
A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
virtual_switch_name Changes to this property will trigger replacement. str
The name of the virtual switch on the cluster used to associate with the Azure Stack HCI Logical Network. Possible switch names can be retrieved by following this Azure guide. Changing this forces a new resource to be created.
customLocationId Changes to this property will trigger replacement. String
The ID of Custom Location where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
dnsServers Changes to this property will trigger replacement. List<String>
A list of IPv4 addresses of DNS servers available to VMs deployed in the Logical Networks. Changing this forces a new resource to be created.
location Changes to this property will trigger replacement. String
The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. String
The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created.
resourceGroupName Changes to this property will trigger replacement. String
The name of the Resource Group where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
subnet Changes to this property will trigger replacement. Property Map
A subnet block as defined below. Changing this forces a new resource to be created.
tags Map<String>
A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
virtualSwitchName Changes to this property will trigger replacement. String
The name of the virtual switch on the cluster used to associate with the Azure Stack HCI Logical Network. Possible switch names can be retrieved by following this Azure guide. Changing this forces a new resource to be created.

Supporting Types

HciLogicalNetworkSubnet
, HciLogicalNetworkSubnetArgs

IpAllocationMethod
This property is required.
Changes to this property will trigger replacement.
string
The IP address allocation method for the subnet. Possible values are Dynamic and Static. Changing this forces a new resource to be created.
AddressPrefix Changes to this property will trigger replacement. string
The address prefix in CIDR notation. Changing this forces a new resource to be created.
IpPools Changes to this property will trigger replacement. List<HciLogicalNetworkSubnetIpPool>

One or more ip_pool block as defined above. Changing this forces a new resource to be created.

Note: If ip_pool is not specified, it will be assigned by the server. If you experience a diff you may need to add this to ignore_changes.

Routes Changes to this property will trigger replacement. List<HciLogicalNetworkSubnetRoute>
A route block as defined above. Changing this forces a new resource to be created.
VlanId Changes to this property will trigger replacement. int
The VLAN ID for the Logical Network. Changing this forces a new resource to be created.
IpAllocationMethod
This property is required.
Changes to this property will trigger replacement.
string
The IP address allocation method for the subnet. Possible values are Dynamic and Static. Changing this forces a new resource to be created.
AddressPrefix Changes to this property will trigger replacement. string
The address prefix in CIDR notation. Changing this forces a new resource to be created.
IpPools Changes to this property will trigger replacement. []HciLogicalNetworkSubnetIpPool

One or more ip_pool block as defined above. Changing this forces a new resource to be created.

Note: If ip_pool is not specified, it will be assigned by the server. If you experience a diff you may need to add this to ignore_changes.

Routes Changes to this property will trigger replacement. []HciLogicalNetworkSubnetRoute
A route block as defined above. Changing this forces a new resource to be created.
VlanId Changes to this property will trigger replacement. int
The VLAN ID for the Logical Network. Changing this forces a new resource to be created.
ipAllocationMethod
This property is required.
Changes to this property will trigger replacement.
String
The IP address allocation method for the subnet. Possible values are Dynamic and Static. Changing this forces a new resource to be created.
addressPrefix Changes to this property will trigger replacement. String
The address prefix in CIDR notation. Changing this forces a new resource to be created.
ipPools Changes to this property will trigger replacement. List<HciLogicalNetworkSubnetIpPool>

One or more ip_pool block as defined above. Changing this forces a new resource to be created.

Note: If ip_pool is not specified, it will be assigned by the server. If you experience a diff you may need to add this to ignore_changes.

routes Changes to this property will trigger replacement. List<HciLogicalNetworkSubnetRoute>
A route block as defined above. Changing this forces a new resource to be created.
vlanId Changes to this property will trigger replacement. Integer
The VLAN ID for the Logical Network. Changing this forces a new resource to be created.
ipAllocationMethod
This property is required.
Changes to this property will trigger replacement.
string
The IP address allocation method for the subnet. Possible values are Dynamic and Static. Changing this forces a new resource to be created.
addressPrefix Changes to this property will trigger replacement. string
The address prefix in CIDR notation. Changing this forces a new resource to be created.
ipPools Changes to this property will trigger replacement. HciLogicalNetworkSubnetIpPool[]

One or more ip_pool block as defined above. Changing this forces a new resource to be created.

Note: If ip_pool is not specified, it will be assigned by the server. If you experience a diff you may need to add this to ignore_changes.

routes Changes to this property will trigger replacement. HciLogicalNetworkSubnetRoute[]
A route block as defined above. Changing this forces a new resource to be created.
vlanId Changes to this property will trigger replacement. number
The VLAN ID for the Logical Network. Changing this forces a new resource to be created.
ip_allocation_method
This property is required.
Changes to this property will trigger replacement.
str
The IP address allocation method for the subnet. Possible values are Dynamic and Static. Changing this forces a new resource to be created.
address_prefix Changes to this property will trigger replacement. str
The address prefix in CIDR notation. Changing this forces a new resource to be created.
ip_pools Changes to this property will trigger replacement. Sequence[HciLogicalNetworkSubnetIpPool]

One or more ip_pool block as defined above. Changing this forces a new resource to be created.

Note: If ip_pool is not specified, it will be assigned by the server. If you experience a diff you may need to add this to ignore_changes.

routes Changes to this property will trigger replacement. Sequence[HciLogicalNetworkSubnetRoute]
A route block as defined above. Changing this forces a new resource to be created.
vlan_id Changes to this property will trigger replacement. int
The VLAN ID for the Logical Network. Changing this forces a new resource to be created.
ipAllocationMethod
This property is required.
Changes to this property will trigger replacement.
String
The IP address allocation method for the subnet. Possible values are Dynamic and Static. Changing this forces a new resource to be created.
addressPrefix Changes to this property will trigger replacement. String
The address prefix in CIDR notation. Changing this forces a new resource to be created.
ipPools Changes to this property will trigger replacement. List<Property Map>

One or more ip_pool block as defined above. Changing this forces a new resource to be created.

Note: If ip_pool is not specified, it will be assigned by the server. If you experience a diff you may need to add this to ignore_changes.

routes Changes to this property will trigger replacement. List<Property Map>
A route block as defined above. Changing this forces a new resource to be created.
vlanId Changes to this property will trigger replacement. Number
The VLAN ID for the Logical Network. Changing this forces a new resource to be created.

HciLogicalNetworkSubnetIpPool
, HciLogicalNetworkSubnetIpPoolArgs

End
This property is required.
Changes to this property will trigger replacement.
string
The IPv4 address of the end of the IP address pool. Changing this forces a new resource to be created.
Start
This property is required.
Changes to this property will trigger replacement.
string
The IPv4 address of the start of the IP address pool. Changing this forces a new resource to be created.
End
This property is required.
Changes to this property will trigger replacement.
string
The IPv4 address of the end of the IP address pool. Changing this forces a new resource to be created.
Start
This property is required.
Changes to this property will trigger replacement.
string
The IPv4 address of the start of the IP address pool. Changing this forces a new resource to be created.
end
This property is required.
Changes to this property will trigger replacement.
String
The IPv4 address of the end of the IP address pool. Changing this forces a new resource to be created.
start
This property is required.
Changes to this property will trigger replacement.
String
The IPv4 address of the start of the IP address pool. Changing this forces a new resource to be created.
end
This property is required.
Changes to this property will trigger replacement.
string
The IPv4 address of the end of the IP address pool. Changing this forces a new resource to be created.
start
This property is required.
Changes to this property will trigger replacement.
string
The IPv4 address of the start of the IP address pool. Changing this forces a new resource to be created.
end
This property is required.
Changes to this property will trigger replacement.
str
The IPv4 address of the end of the IP address pool. Changing this forces a new resource to be created.
start
This property is required.
Changes to this property will trigger replacement.
str
The IPv4 address of the start of the IP address pool. Changing this forces a new resource to be created.
end
This property is required.
Changes to this property will trigger replacement.
String
The IPv4 address of the end of the IP address pool. Changing this forces a new resource to be created.
start
This property is required.
Changes to this property will trigger replacement.
String
The IPv4 address of the start of the IP address pool. Changing this forces a new resource to be created.

HciLogicalNetworkSubnetRoute
, HciLogicalNetworkSubnetRouteArgs

AddressPrefix
This property is required.
Changes to this property will trigger replacement.
string
The Address in CIDR notation. Changing this forces a new resource to be created.
NextHopIpAddress
This property is required.
Changes to this property will trigger replacement.
string
The IPv4 address of the next hop. Changing this forces a new resource to be created.
Name Changes to this property will trigger replacement. string
The name of the route. Changing this forces a new resource to be created.
AddressPrefix
This property is required.
Changes to this property will trigger replacement.
string
The Address in CIDR notation. Changing this forces a new resource to be created.
NextHopIpAddress
This property is required.
Changes to this property will trigger replacement.
string
The IPv4 address of the next hop. Changing this forces a new resource to be created.
Name Changes to this property will trigger replacement. string
The name of the route. Changing this forces a new resource to be created.
addressPrefix
This property is required.
Changes to this property will trigger replacement.
String
The Address in CIDR notation. Changing this forces a new resource to be created.
nextHopIpAddress
This property is required.
Changes to this property will trigger replacement.
String
The IPv4 address of the next hop. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. String
The name of the route. Changing this forces a new resource to be created.
addressPrefix
This property is required.
Changes to this property will trigger replacement.
string
The Address in CIDR notation. Changing this forces a new resource to be created.
nextHopIpAddress
This property is required.
Changes to this property will trigger replacement.
string
The IPv4 address of the next hop. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. string
The name of the route. Changing this forces a new resource to be created.
address_prefix
This property is required.
Changes to this property will trigger replacement.
str
The Address in CIDR notation. Changing this forces a new resource to be created.
next_hop_ip_address
This property is required.
Changes to this property will trigger replacement.
str
The IPv4 address of the next hop. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. str
The name of the route. Changing this forces a new resource to be created.
addressPrefix
This property is required.
Changes to this property will trigger replacement.
String
The Address in CIDR notation. Changing this forces a new resource to be created.
nextHopIpAddress
This property is required.
Changes to this property will trigger replacement.
String
The IPv4 address of the next hop. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. String
The name of the route. Changing this forces a new resource to be created.

Import

Azure Stack HCI Logical Networks can be imported using the resource id, e.g.

$ pulumi import azure:stack/hciLogicalNetwork:HciLogicalNetwork example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AzureStackHCI/logicalNetworks/ln1
Copy

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

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.