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

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.stack.HciLogicalNetwork

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

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

    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",
                    NextHopIpAddress = "string",
                    Name = "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"),
    				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"),
    	},
    })
    
    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());
    
    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",
        })
    
    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",
        },
    });
    
    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

    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 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 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 HciLogicalNetworkSubnet
    A subnet block as defined below. Changing this forces a new resource to be created.
    VirtualSwitchName 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 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.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
    CustomLocationId 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 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 HciLogicalNetworkSubnetArgs
    A subnet block as defined below. Changing this forces a new resource to be created.
    VirtualSwitchName 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 []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.
    Tags map[string]string
    A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
    customLocationId 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 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 HciLogicalNetworkSubnet
    A subnet block as defined below. Changing this forces a new resource to be created.
    virtualSwitchName 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 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.
    tags Map<String,String>
    A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
    customLocationId 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 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 HciLogicalNetworkSubnet
    A subnet block as defined below. Changing this forces a new resource to be created.
    virtualSwitchName 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 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.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
    custom_location_id 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 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 HciLogicalNetworkSubnetArgs
    A subnet block as defined below. Changing this forces a new resource to be created.
    virtual_switch_name 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 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.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Azure Stack HCI Logical Network.
    customLocationId 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 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 Property Map
    A subnet block as defined below. Changing this forces a new resource to be created.
    virtualSwitchName 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 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.
    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)
    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.
    The following state arguments are supported:
    CustomLocationId 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 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.
    ResourceGroupName 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 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 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 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 []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.
    ResourceGroupName 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 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 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 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 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.
    resourceGroupName 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 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 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 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 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.
    resourceGroupName 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 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 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 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 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_name 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 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 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 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 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.
    resourceGroupName 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 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 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 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 string
    The address prefix in CIDR notation. Changing this forces a new resource to be created.
    IpPools 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 List<HciLogicalNetworkSubnetRoute>
    A route block as defined above. Changing this forces a new resource to be created.
    VlanId int
    The VLAN ID for the Logical Network. Changing this forces a new resource to be created.
    IpAllocationMethod 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 string
    The address prefix in CIDR notation. Changing this forces a new resource to be created.
    IpPools []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 []HciLogicalNetworkSubnetRoute
    A route block as defined above. Changing this forces a new resource to be created.
    VlanId int
    The VLAN ID for the Logical Network. Changing this forces a new resource to be created.
    ipAllocationMethod 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 String
    The address prefix in CIDR notation. Changing this forces a new resource to be created.
    ipPools 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 List<HciLogicalNetworkSubnetRoute>
    A route block as defined above. Changing this forces a new resource to be created.
    vlanId Integer
    The VLAN ID for the Logical Network. Changing this forces a new resource to be created.
    ipAllocationMethod 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 string
    The address prefix in CIDR notation. Changing this forces a new resource to be created.
    ipPools 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 HciLogicalNetworkSubnetRoute[]
    A route block as defined above. Changing this forces a new resource to be created.
    vlanId number
    The VLAN ID for the Logical Network. Changing this forces a new resource to be created.
    ip_allocation_method 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 str
    The address prefix in CIDR notation. Changing this forces a new resource to be created.
    ip_pools 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 Sequence[HciLogicalNetworkSubnetRoute]
    A 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.
    ipAllocationMethod 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 String
    The address prefix in CIDR notation. Changing this forces a new resource to be created.
    ipPools 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 List<Property Map>
    A route block as defined above. Changing this forces a new resource to be created.
    vlanId Number
    The VLAN ID for the Logical Network. Changing this forces a new resource to be created.

    HciLogicalNetworkSubnetIpPool, HciLogicalNetworkSubnetIpPoolArgs

    End string
    The IPv4 address of the end of the IP address pool. Changing this forces a new resource to be created.
    Start string
    The IPv4 address of the start of the IP address pool. Changing this forces a new resource to be created.
    End string
    The IPv4 address of the end of the IP address pool. Changing this forces a new resource to be created.
    Start string
    The IPv4 address of the start of the IP address pool. Changing this forces a new resource to be created.
    end String
    The IPv4 address of the end of the IP address pool. Changing this forces a new resource to be created.
    start String
    The IPv4 address of the start of the IP address pool. Changing this forces a new resource to be created.
    end string
    The IPv4 address of the end of the IP address pool. Changing this forces a new resource to be created.
    start string
    The IPv4 address of the start of the IP address pool. Changing this forces a new resource to be created.
    end str
    The IPv4 address of the end of the IP address pool. Changing this forces a new resource to be created.
    start str
    The IPv4 address of the start of the IP address pool. Changing this forces a new resource to be created.
    end String
    The IPv4 address of the end of the IP address pool. Changing this forces a new resource to be created.
    start String
    The IPv4 address of the start of the IP address pool. Changing this forces a new resource to be created.

    HciLogicalNetworkSubnetRoute, HciLogicalNetworkSubnetRouteArgs

    AddressPrefix string
    The Address in CIDR notation. Changing this forces a new resource to be created.
    NextHopIpAddress string
    The IPv4 address of the next hop. 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.
    AddressPrefix string
    The Address in CIDR notation. Changing this forces a new resource to be created.
    NextHopIpAddress string
    The IPv4 address of the next hop. 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.
    addressPrefix String
    The Address in CIDR notation. Changing this forces a new resource to be created.
    nextHopIpAddress String
    The IPv4 address of the next hop. 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.
    addressPrefix string
    The Address in CIDR notation. Changing this forces a new resource to be created.
    nextHopIpAddress string
    The IPv4 address of the next hop. 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.
    address_prefix str
    The Address in CIDR notation. Changing this forces a new resource to be created.
    next_hop_ip_address str
    The IPv4 address of the next hop. 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.
    addressPrefix String
    The Address in CIDR notation. Changing this forces a new resource to be created.
    nextHopIpAddress String
    The IPv4 address of the next hop. 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.

    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.
    azure logo

    We recommend using Azure Native.

    Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi