We recommend using Azure Native.
azure.stack.HciLogicalNetwork
Explore with Pulumi AI
Manages an Azure Stack HCI Logical Network.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-rg",
location: "West Europe",
});
const exampleHciLogicalNetwork = new azure.stack.HciLogicalNetwork("example", {
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",
routes: [{
name: "example-route",
addressPrefix: "0.0.0.0/0",
nextHopIpAddress: "10.0.20.1",
}],
vlanId: 123,
},
tags: {
foo: "bar",
},
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-rg",
location="West Europe")
example_hci_logical_network = azure.stack.HciLogicalNetwork("example",
name="example-hci-ln",
resource_group_name=example.name,
location=example.location,
custom_location_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1",
virtual_switch_name="ConvergedSwitch(managementcompute)",
dns_servers=[
"10.0.0.7",
"10.0.0.8",
],
subnet={
"ip_allocation_method": "Static",
"address_prefix": "10.0.0.0/24",
"routes": [{
"name": "example-route",
"address_prefix": "0.0.0.0/0",
"next_hop_ip_address": "10.0.20.1",
}],
"vlan_id": 123,
},
tags={
"foo": "bar",
})
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/stack"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-rg"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = stack.NewHciLogicalNetwork(ctx, "example", &stack.HciLogicalNetworkArgs{
Name: pulumi.String("example-hci-ln"),
ResourceGroupName: example.Name,
Location: example.Location,
CustomLocationId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1"),
VirtualSwitchName: pulumi.String("ConvergedSwitch(managementcompute)"),
DnsServers: pulumi.StringArray{
pulumi.String("10.0.0.7"),
pulumi.String("10.0.0.8"),
},
Subnet: &stack.HciLogicalNetworkSubnetArgs{
IpAllocationMethod: pulumi.String("Static"),
AddressPrefix: pulumi.String("10.0.0.0/24"),
Routes: stack.HciLogicalNetworkSubnetRouteArray{
&stack.HciLogicalNetworkSubnetRouteArgs{
Name: pulumi.String("example-route"),
AddressPrefix: pulumi.String("0.0.0.0/0"),
NextHopIpAddress: pulumi.String("10.0.20.1"),
},
},
VlanId: pulumi.Int(123),
},
Tags: pulumi.StringMap{
"foo": pulumi.String("bar"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-rg",
Location = "West Europe",
});
var exampleHciLogicalNetwork = new Azure.Stack.HciLogicalNetwork("example", new()
{
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 = new[]
{
"10.0.0.7",
"10.0.0.8",
},
Subnet = new Azure.Stack.Inputs.HciLogicalNetworkSubnetArgs
{
IpAllocationMethod = "Static",
AddressPrefix = "10.0.0.0/24",
Routes = new[]
{
new Azure.Stack.Inputs.HciLogicalNetworkSubnetRouteArgs
{
Name = "example-route",
AddressPrefix = "0.0.0.0/0",
NextHopIpAddress = "10.0.20.1",
},
},
VlanId = 123,
},
Tags =
{
{ "foo", "bar" },
},
});
});
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")
.routes(HciLogicalNetworkSubnetRouteArgs.builder()
.name("example-route")
.addressPrefix("0.0.0.0/0")
.nextHopIpAddress("10.0.20.1")
.build())
.vlanId(123)
.build())
.tags(Map.of("foo", "bar"))
.build());
}
}
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
routes:
- name: example-route
addressPrefix: 0.0.0.0/0
nextHopIpAddress: 10.0.20.1
vlanId: 123
tags:
foo: bar
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 string
- The unique name of the resource.
- args HciLogicalNetworkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args HciLogicalNetworkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HciLogicalNetworkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
Name = "string",
NextHopIpAddress = "string",
},
},
VlanId = 0,
},
VirtualSwitchName = "string",
DnsServers = new[]
{
"string",
},
Location = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
});
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"),
Name: pulumi.String("string"),
NextHopIpAddress: 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"),
},
})
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")
.name("string")
.nextHopIpAddress("string")
.build())
.vlanId(0)
.build())
.virtualSwitchName("string")
.dnsServers("string")
.location("string")
.name("string")
.tags(Map.of("string", "string"))
.build());
hci_logical_network_resource = azure.stack.HciLogicalNetwork("hciLogicalNetworkResource",
custom_location_id="string",
resource_group_name="string",
subnet={
"ipAllocationMethod": "string",
"addressPrefix": "string",
"ipPools": [{
"end": "string",
"start": "string",
}],
"routes": [{
"addressPrefix": "string",
"name": "string",
"nextHopIpAddress": "string",
}],
"vlanId": 0,
},
virtual_switch_name="string",
dns_servers=["string"],
location="string",
name="string",
tags={
"string": "string",
})
const hciLogicalNetworkResource = new azure.stack.HciLogicalNetwork("hciLogicalNetworkResource", {
customLocationId: "string",
resourceGroupName: "string",
subnet: {
ipAllocationMethod: "string",
addressPrefix: "string",
ipPools: [{
end: "string",
start: "string",
}],
routes: [{
addressPrefix: "string",
name: "string",
nextHopIpAddress: "string",
}],
vlanId: 0,
},
virtualSwitchName: "string",
dnsServers: ["string"],
location: "string",
name: "string",
tags: {
string: "string",
},
});
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
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
The HciLogicalNetwork resource accepts the following input properties:
- Custom
Location stringId - 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 stringName - 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
Hci
Logical Network Subnet - A
subnet
block as defined below. Changing this forces a new resource to be created. - Virtual
Switch stringName - 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 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 string
- The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
- Name string
- The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created.
- Dictionary<string, string>
- A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
- Custom
Location stringId - 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 stringName - 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
Hci
Logical Network Subnet Args - A
subnet
block as defined below. Changing this forces a new resource to be created. - Virtual
Switch stringName - 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 []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 string
- The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
- Name string
- The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created.
- map[string]string
- A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
- custom
Location StringId - 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 StringName - 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
Hci
Logical Network Subnet - A
subnet
block as defined below. Changing this forces a new resource to be created. - virtual
Switch StringName - 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 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 String
- The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
- name String
- The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created.
- Map<String,String>
- A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
- custom
Location stringId - 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 stringName - 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
Hci
Logical Network Subnet - A
subnet
block as defined below. Changing this forces a new resource to be created. - virtual
Switch stringName - 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 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 string
- The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
- name string
- The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created.
- {[key: string]: string}
- A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
- custom_
location_ strid - 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_ strname - 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
Hci
Logical Network Subnet Args - A
subnet
block as defined below. Changing this forces a new resource to be created. - virtual_
switch_ strname - 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 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 str
- The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
- name str
- The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created.
- Mapping[str, str]
- A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
- custom
Location StringId - 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 StringName - 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 Property Map
- A
subnet
block as defined below. Changing this forces a new resource to be created. - virtual
Switch StringName - 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 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 String
- The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
- name String
- The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created.
- 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)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Custom
Location stringId - 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 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 string
- The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
- Name string
- The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created.
- Resource
Group stringName - 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
Hci
Logical Network Subnet - A
subnet
block as defined below. Changing this forces a new resource to be created. - Dictionary<string, string>
- A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
- Virtual
Switch stringName - 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 stringId - 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 []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 string
- The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
- Name string
- The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created.
- Resource
Group stringName - 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
Hci
Logical Network Subnet Args - A
subnet
block as defined below. Changing this forces a new resource to be created. - map[string]string
- A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
- Virtual
Switch stringName - 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 StringId - 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 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 String
- The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
- name String
- The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created.
- resource
Group StringName - 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
Hci
Logical Network Subnet - A
subnet
block as defined below. Changing this forces a new resource to be created. - Map<String,String>
- A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
- virtual
Switch StringName - 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 stringId - 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 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 string
- The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
- name string
- The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created.
- resource
Group stringName - 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
Hci
Logical Network Subnet - A
subnet
block as defined below. Changing this forces a new resource to be created. - {[key: string]: string}
- A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
- virtual
Switch stringName - 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_ strid - 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 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 str
- The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
- name 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_ strname - 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
Hci
Logical Network Subnet Args - A
subnet
block as defined below. Changing this forces a new resource to be created. - Mapping[str, str]
- A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
- virtual_
switch_ strname - 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 StringId - 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 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 String
- The Azure Region where the Azure Stack HCI Logical Network should exist. Changing this forces a new resource to be created.
- name String
- The name which should be used for this Azure Stack HCI Logical Network. Changing this forces a new resource to be created.
- resource
Group StringName - 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 Property Map
- A
subnet
block as defined below. Changing this forces a new resource to be created. - Map<String>
- A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
- virtual
Switch StringName - 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
- Ip
Allocation stringMethod - The IP address allocation method for the subnet. Possible values are
Dynamic
andStatic
. Changing this forces a new resource to be created. - Address
Prefix string - The address prefix in CIDR notation. Changing this forces a new resource to be created.
- Ip
Pools List<HciLogical Network Subnet Ip Pool> - One or more
ip_pool
block as defined above. Changing this forces a new resource to be created. - Routes
List<Hci
Logical Network Subnet Route> - One or more
route
block as defined above. Changing this forces a new resource to be created. - Vlan
Id int - The VLAN ID for the Logical Network. Changing this forces a new resource to be created.
- Ip
Allocation stringMethod - The IP address allocation method for the subnet. Possible values are
Dynamic
andStatic
. Changing this forces a new resource to be created. - Address
Prefix string - The address prefix in CIDR notation. Changing this forces a new resource to be created.
- Ip
Pools []HciLogical Network Subnet Ip Pool - One or more
ip_pool
block as defined above. Changing this forces a new resource to be created. - Routes
[]Hci
Logical Network Subnet Route - One or more
route
block as defined above. Changing this forces a new resource to be created. - Vlan
Id int - The VLAN ID for the Logical Network. Changing this forces a new resource to be created.
- ip
Allocation StringMethod - The IP address allocation method for the subnet. Possible values are
Dynamic
andStatic
. Changing this forces a new resource to be created. - address
Prefix String - The address prefix in CIDR notation. Changing this forces a new resource to be created.
- ip
Pools List<HciLogical Network Subnet Ip Pool> - One or more
ip_pool
block as defined above. Changing this forces a new resource to be created. - routes
List<Hci
Logical Network Subnet Route> - One or more
route
block as defined above. Changing this forces a new resource to be created. - vlan
Id Integer - The VLAN ID for the Logical Network. Changing this forces a new resource to be created.
- ip
Allocation stringMethod - The IP address allocation method for the subnet. Possible values are
Dynamic
andStatic
. Changing this forces a new resource to be created. - address
Prefix string - The address prefix in CIDR notation. Changing this forces a new resource to be created.
- ip
Pools HciLogical Network Subnet Ip Pool[] - One or more
ip_pool
block as defined above. Changing this forces a new resource to be created. - routes
Hci
Logical Network Subnet Route[] - One or more
route
block as defined above. Changing this forces a new resource to be created. - vlan
Id number - The VLAN ID for the Logical Network. Changing this forces a new resource to be created.
- ip_
allocation_ strmethod - The IP address allocation method for the subnet. Possible values are
Dynamic
andStatic
. Changing this forces a new resource to be created. - address_
prefix str - The address prefix in CIDR notation. Changing this forces a new resource to be created.
- ip_
pools Sequence[HciLogical Network Subnet Ip Pool] - One or more
ip_pool
block as defined above. Changing this forces a new resource to be created. - routes
Sequence[Hci
Logical Network Subnet Route] - One or more
route
block as defined above. Changing this forces a new resource to be created. - vlan_
id int - The VLAN ID for the Logical Network. Changing this forces a new resource to be created.
- ip
Allocation StringMethod - The IP address allocation method for the subnet. Possible values are
Dynamic
andStatic
. Changing this forces a new resource to be created. - address
Prefix String - The address prefix in CIDR notation. Changing this forces a new resource to be created.
- ip
Pools List<Property Map> - One or more
ip_pool
block as defined above. Changing this forces a new resource to be created. - routes List<Property Map>
- One or more
route
block as defined above. Changing this forces a new resource to be created. - vlan
Id Number - The VLAN ID for the Logical Network. Changing this forces a new resource to be created.
HciLogicalNetworkSubnetIpPool, HciLogicalNetworkSubnetIpPoolArgs
HciLogicalNetworkSubnetRoute, HciLogicalNetworkSubnetRouteArgs
- Address
Prefix string - The Address in CIDR notation. Changing this forces a new resource to be created.
- Name string
- The name of the route. Changing this forces a new resource to be created.
- Next
Hop stringIp Address - The IPv4 address of the next hop. Changing this forces a new resource to be created.
- Address
Prefix string - The Address in CIDR notation. Changing this forces a new resource to be created.
- Name string
- The name of the route. Changing this forces a new resource to be created.
- Next
Hop stringIp Address - The IPv4 address of the next hop. Changing this forces a new resource to be created.
- address
Prefix String - The Address in CIDR notation. Changing this forces a new resource to be created.
- name String
- The name of the route. Changing this forces a new resource to be created.
- next
Hop StringIp Address - The IPv4 address of the next hop. Changing this forces a new resource to be created.
- address
Prefix string - The Address in CIDR notation. Changing this forces a new resource to be created.
- name string
- The name of the route. Changing this forces a new resource to be created.
- next
Hop stringIp Address - The IPv4 address of the next hop. Changing this forces a new resource to be created.
- address_
prefix str - The Address in CIDR notation. Changing this forces a new resource to be created.
- name str
- The name of the route. Changing this forces a new resource to be created.
- next_
hop_ strip_ address - The IPv4 address of the next hop. Changing this forces a new resource to be created.
- address
Prefix String - The Address in CIDR notation. Changing this forces a new resource to be created.
- name String
- The name of the route. Changing this forces a new resource to be created.
- next
Hop StringIp Address - The IPv4 address of the next hop. 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
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.