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

We recommend using Azure Native.

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

azure.stack.HciNetworkInterface

Explore with Pulumi AI

Manages an Azure Stack HCI Network Interface.

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 com.pulumi.azure.stack.HciNetworkInterface;
import com.pulumi.azure.stack.HciNetworkInterfaceArgs;
import com.pulumi.azure.stack.inputs.HciNetworkInterfaceIpConfigurationArgs;
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")
                .route(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                .vlanId(123)
                .build())
            .tags(Map.of("foo", "bar"))
            .build());

        var exampleHciNetworkInterface = new HciNetworkInterface("exampleHciNetworkInterface", HciNetworkInterfaceArgs.builder()
            .name("example-ni")
            .resourceGroupName(example.name())
            .location(example.location())
            .customLocationId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1")
            .dnsServers("10.0.0.8")
            .ipConfiguration(HciNetworkInterfaceIpConfigurationArgs.builder()
                .privateIpAddress("10.0.0.2")
                .subnetId(test.id())
                .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
        route:
          name: example-route
          addressPrefix: 0.0.0.0/0
          nextHopIpAddress: 10.0.20.1
        vlanId: 123
      tags:
        foo: bar
  exampleHciNetworkInterface:
    type: azure:stack:HciNetworkInterface
    name: example
    properties:
      name: example-ni
      resourceGroupName: ${example.name}
      location: ${example.location}
      customLocationId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1
      dnsServers:
        - 10.0.0.8
      ipConfiguration:
        privateIpAddress: 10.0.0.2
        subnetId: ${test.id}
      tags:
        foo: bar
Copy

Create HciNetworkInterface Resource

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

Constructor syntax

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

@overload
def HciNetworkInterface(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        custom_location_id: Optional[str] = None,
                        ip_configuration: Optional[HciNetworkInterfaceIpConfigurationArgs] = None,
                        resource_group_name: Optional[str] = None,
                        dns_servers: Optional[Sequence[str]] = None,
                        location: Optional[str] = None,
                        mac_address: Optional[str] = None,
                        name: Optional[str] = None,
                        tags: Optional[Mapping[str, str]] = None)
func NewHciNetworkInterface(ctx *Context, name string, args HciNetworkInterfaceArgs, opts ...ResourceOption) (*HciNetworkInterface, error)
public HciNetworkInterface(string name, HciNetworkInterfaceArgs args, CustomResourceOptions? opts = null)
public HciNetworkInterface(String name, HciNetworkInterfaceArgs args)
public HciNetworkInterface(String name, HciNetworkInterfaceArgs args, CustomResourceOptions options)
type: azure:stack:HciNetworkInterface
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. HciNetworkInterfaceArgs
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. HciNetworkInterfaceArgs
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. HciNetworkInterfaceArgs
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. HciNetworkInterfaceArgs
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. HciNetworkInterfaceArgs
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 hciNetworkInterfaceResource = new Azure.Stack.HciNetworkInterface("hciNetworkInterfaceResource", new()
{
    CustomLocationId = "string",
    IpConfiguration = new Azure.Stack.Inputs.HciNetworkInterfaceIpConfigurationArgs
    {
        SubnetId = "string",
        Gateway = "string",
        PrefixLength = "string",
        PrivateIpAddress = "string",
    },
    ResourceGroupName = "string",
    DnsServers = new[]
    {
        "string",
    },
    Location = "string",
    MacAddress = "string",
    Name = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := stack.NewHciNetworkInterface(ctx, "hciNetworkInterfaceResource", &stack.HciNetworkInterfaceArgs{
	CustomLocationId: pulumi.String("string"),
	IpConfiguration: &stack.HciNetworkInterfaceIpConfigurationArgs{
		SubnetId:         pulumi.String("string"),
		Gateway:          pulumi.String("string"),
		PrefixLength:     pulumi.String("string"),
		PrivateIpAddress: pulumi.String("string"),
	},
	ResourceGroupName: pulumi.String("string"),
	DnsServers: pulumi.StringArray{
		pulumi.String("string"),
	},
	Location:   pulumi.String("string"),
	MacAddress: pulumi.String("string"),
	Name:       pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var hciNetworkInterfaceResource = new HciNetworkInterface("hciNetworkInterfaceResource", HciNetworkInterfaceArgs.builder()
    .customLocationId("string")
    .ipConfiguration(HciNetworkInterfaceIpConfigurationArgs.builder()
        .subnetId("string")
        .gateway("string")
        .prefixLength("string")
        .privateIpAddress("string")
        .build())
    .resourceGroupName("string")
    .dnsServers("string")
    .location("string")
    .macAddress("string")
    .name("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
hci_network_interface_resource = azure.stack.HciNetworkInterface("hciNetworkInterfaceResource",
    custom_location_id="string",
    ip_configuration={
        "subnet_id": "string",
        "gateway": "string",
        "prefix_length": "string",
        "private_ip_address": "string",
    },
    resource_group_name="string",
    dns_servers=["string"],
    location="string",
    mac_address="string",
    name="string",
    tags={
        "string": "string",
    })
Copy
const hciNetworkInterfaceResource = new azure.stack.HciNetworkInterface("hciNetworkInterfaceResource", {
    customLocationId: "string",
    ipConfiguration: {
        subnetId: "string",
        gateway: "string",
        prefixLength: "string",
        privateIpAddress: "string",
    },
    resourceGroupName: "string",
    dnsServers: ["string"],
    location: "string",
    macAddress: "string",
    name: "string",
    tags: {
        string: "string",
    },
});
Copy
type: azure:stack:HciNetworkInterface
properties:
    customLocationId: string
    dnsServers:
        - string
    ipConfiguration:
        gateway: string
        prefixLength: string
        privateIpAddress: string
        subnetId: string
    location: string
    macAddress: string
    name: string
    resourceGroupName: string
    tags:
        string: string
Copy

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

CustomLocationId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Custom Location where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created.
IpConfiguration
This property is required.
Changes to this property will trigger replacement.
HciNetworkInterfaceIpConfiguration
An ip_configuration block as defined below. 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 Network Interface 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 Network Interface. 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 Network Interface should exist. Changing this forces a new resource to be created.
MacAddress Changes to this property will trigger replacement. string

The MAC address of the Network Interface. Changing this forces a new resource to be created.

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

Name Changes to this property will trigger replacement. string
The name which should be used for this Azure Stack HCI Network Interface. 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 Network Interface.
CustomLocationId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Custom Location where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created.
IpConfiguration
This property is required.
Changes to this property will trigger replacement.
HciNetworkInterfaceIpConfigurationArgs
An ip_configuration block as defined below. 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 Network Interface 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 Network Interface. 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 Network Interface should exist. Changing this forces a new resource to be created.
MacAddress Changes to this property will trigger replacement. string

The MAC address of the Network Interface. Changing this forces a new resource to be created.

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

Name Changes to this property will trigger replacement. string
The name which should be used for this Azure Stack HCI Network Interface. 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 Network Interface.
customLocationId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Custom Location where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created.
ipConfiguration
This property is required.
Changes to this property will trigger replacement.
HciNetworkInterfaceIpConfiguration
An ip_configuration block as defined below. 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 Network Interface 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 Network Interface. 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 Network Interface should exist. Changing this forces a new resource to be created.
macAddress Changes to this property will trigger replacement. String

The MAC address of the Network Interface. Changing this forces a new resource to be created.

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

name Changes to this property will trigger replacement. String
The name which should be used for this Azure Stack HCI Network Interface. 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 Network Interface.
customLocationId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Custom Location where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created.
ipConfiguration
This property is required.
Changes to this property will trigger replacement.
HciNetworkInterfaceIpConfiguration
An ip_configuration block as defined below. 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 Network Interface 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 Network Interface. 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 Network Interface should exist. Changing this forces a new resource to be created.
macAddress Changes to this property will trigger replacement. string

The MAC address of the Network Interface. Changing this forces a new resource to be created.

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

name Changes to this property will trigger replacement. string
The name which should be used for this Azure Stack HCI Network Interface. 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 Network Interface.
custom_location_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the Custom Location where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created.
ip_configuration
This property is required.
Changes to this property will trigger replacement.
HciNetworkInterfaceIpConfigurationArgs
An ip_configuration block as defined below. 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 Network Interface 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 Network Interface. 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 Network Interface should exist. Changing this forces a new resource to be created.
mac_address Changes to this property will trigger replacement. str

The MAC address of the Network Interface. Changing this forces a new resource to be created.

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

name Changes to this property will trigger replacement. str
The name which should be used for this Azure Stack HCI Network Interface. 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 Network Interface.
customLocationId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Custom Location where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created.
ipConfiguration
This property is required.
Changes to this property will trigger replacement.
Property Map
An ip_configuration block as defined below. 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 Network Interface 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 Network Interface. 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 Network Interface should exist. Changing this forces a new resource to be created.
macAddress Changes to this property will trigger replacement. String

The MAC address of the Network Interface. Changing this forces a new resource to be created.

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

name Changes to this property will trigger replacement. String
The name which should be used for this Azure Stack HCI Network Interface. 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 Network Interface.

Outputs

All input properties are implicitly available as output properties. Additionally, the HciNetworkInterface 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 HciNetworkInterface Resource

Get an existing HciNetworkInterface 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?: HciNetworkInterfaceState, opts?: CustomResourceOptions): HciNetworkInterface
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        custom_location_id: Optional[str] = None,
        dns_servers: Optional[Sequence[str]] = None,
        ip_configuration: Optional[HciNetworkInterfaceIpConfigurationArgs] = None,
        location: Optional[str] = None,
        mac_address: Optional[str] = None,
        name: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None) -> HciNetworkInterface
func GetHciNetworkInterface(ctx *Context, name string, id IDInput, state *HciNetworkInterfaceState, opts ...ResourceOption) (*HciNetworkInterface, error)
public static HciNetworkInterface Get(string name, Input<string> id, HciNetworkInterfaceState? state, CustomResourceOptions? opts = null)
public static HciNetworkInterface get(String name, Output<String> id, HciNetworkInterfaceState state, CustomResourceOptions options)
resources:  _:    type: azure:stack:HciNetworkInterface    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 the Custom Location where the Azure Stack HCI Network Interface 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 Network Interface. Changing this forces a new resource to be created.
IpConfiguration Changes to this property will trigger replacement. HciNetworkInterfaceIpConfiguration
An ip_configuration block as defined below. 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 Network Interface should exist. Changing this forces a new resource to be created.
MacAddress Changes to this property will trigger replacement. string

The MAC address of the Network Interface. Changing this forces a new resource to be created.

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

Name Changes to this property will trigger replacement. string
The name which should be used for this Azure Stack HCI Network Interface. 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 Network Interface should exist. 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 Network Interface.
CustomLocationId Changes to this property will trigger replacement. string
The ID of the Custom Location where the Azure Stack HCI Network Interface 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 Network Interface. Changing this forces a new resource to be created.
IpConfiguration Changes to this property will trigger replacement. HciNetworkInterfaceIpConfigurationArgs
An ip_configuration block as defined below. 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 Network Interface should exist. Changing this forces a new resource to be created.
MacAddress Changes to this property will trigger replacement. string

The MAC address of the Network Interface. Changing this forces a new resource to be created.

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

Name Changes to this property will trigger replacement. string
The name which should be used for this Azure Stack HCI Network Interface. 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 Network Interface should exist. 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 Network Interface.
customLocationId Changes to this property will trigger replacement. String
The ID of the Custom Location where the Azure Stack HCI Network Interface 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 Network Interface. Changing this forces a new resource to be created.
ipConfiguration Changes to this property will trigger replacement. HciNetworkInterfaceIpConfiguration
An ip_configuration block as defined below. 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 Network Interface should exist. Changing this forces a new resource to be created.
macAddress Changes to this property will trigger replacement. String

The MAC address of the Network Interface. Changing this forces a new resource to be created.

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

name Changes to this property will trigger replacement. String
The name which should be used for this Azure Stack HCI Network Interface. 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 Network Interface should exist. 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 Network Interface.
customLocationId Changes to this property will trigger replacement. string
The ID of the Custom Location where the Azure Stack HCI Network Interface 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 Network Interface. Changing this forces a new resource to be created.
ipConfiguration Changes to this property will trigger replacement. HciNetworkInterfaceIpConfiguration
An ip_configuration block as defined below. 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 Network Interface should exist. Changing this forces a new resource to be created.
macAddress Changes to this property will trigger replacement. string

The MAC address of the Network Interface. Changing this forces a new resource to be created.

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

name Changes to this property will trigger replacement. string
The name which should be used for this Azure Stack HCI Network Interface. 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 Network Interface should exist. 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 Network Interface.
custom_location_id Changes to this property will trigger replacement. str
The ID of the Custom Location where the Azure Stack HCI Network Interface 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 Network Interface. Changing this forces a new resource to be created.
ip_configuration Changes to this property will trigger replacement. HciNetworkInterfaceIpConfigurationArgs
An ip_configuration block as defined below. 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 Network Interface should exist. Changing this forces a new resource to be created.
mac_address Changes to this property will trigger replacement. str

The MAC address of the Network Interface. Changing this forces a new resource to be created.

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

name Changes to this property will trigger replacement. str
The name which should be used for this Azure Stack HCI Network Interface. 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 Network Interface should exist. 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 Network Interface.
customLocationId Changes to this property will trigger replacement. String
The ID of the Custom Location where the Azure Stack HCI Network Interface 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 Network Interface. Changing this forces a new resource to be created.
ipConfiguration Changes to this property will trigger replacement. Property Map
An ip_configuration block as defined below. 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 Network Interface should exist. Changing this forces a new resource to be created.
macAddress Changes to this property will trigger replacement. String

The MAC address of the Network Interface. Changing this forces a new resource to be created.

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

name Changes to this property will trigger replacement. String
The name which should be used for this Azure Stack HCI Network Interface. 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 Network Interface should exist. 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 Network Interface.

Supporting Types

HciNetworkInterfaceIpConfiguration
, HciNetworkInterfaceIpConfigurationArgs

SubnetId
This property is required.
Changes to this property will trigger replacement.
string
The resource ID of the Stack HCI Logical Network bound to the IP configuration. Changing this forces a new resource to be created.
Gateway string
The IPv4 address of the gateway for the Network Interface.
PrefixLength string
The prefix length for the address of the Network Interface.
PrivateIpAddress Changes to this property will trigger replacement. string
The IPv4 address of the IP configuration. Changing this forces a new resource to be created.
SubnetId
This property is required.
Changes to this property will trigger replacement.
string
The resource ID of the Stack HCI Logical Network bound to the IP configuration. Changing this forces a new resource to be created.
Gateway string
The IPv4 address of the gateway for the Network Interface.
PrefixLength string
The prefix length for the address of the Network Interface.
PrivateIpAddress Changes to this property will trigger replacement. string
The IPv4 address of the IP configuration. Changing this forces a new resource to be created.
subnetId
This property is required.
Changes to this property will trigger replacement.
String
The resource ID of the Stack HCI Logical Network bound to the IP configuration. Changing this forces a new resource to be created.
gateway String
The IPv4 address of the gateway for the Network Interface.
prefixLength String
The prefix length for the address of the Network Interface.
privateIpAddress Changes to this property will trigger replacement. String
The IPv4 address of the IP configuration. Changing this forces a new resource to be created.
subnetId
This property is required.
Changes to this property will trigger replacement.
string
The resource ID of the Stack HCI Logical Network bound to the IP configuration. Changing this forces a new resource to be created.
gateway string
The IPv4 address of the gateway for the Network Interface.
prefixLength string
The prefix length for the address of the Network Interface.
privateIpAddress Changes to this property will trigger replacement. string
The IPv4 address of the IP configuration. Changing this forces a new resource to be created.
subnet_id
This property is required.
Changes to this property will trigger replacement.
str
The resource ID of the Stack HCI Logical Network bound to the IP configuration. Changing this forces a new resource to be created.
gateway str
The IPv4 address of the gateway for the Network Interface.
prefix_length str
The prefix length for the address of the Network Interface.
private_ip_address Changes to this property will trigger replacement. str
The IPv4 address of the IP configuration. Changing this forces a new resource to be created.
subnetId
This property is required.
Changes to this property will trigger replacement.
String
The resource ID of the Stack HCI Logical Network bound to the IP configuration. Changing this forces a new resource to be created.
gateway String
The IPv4 address of the gateway for the Network Interface.
prefixLength String
The prefix length for the address of the Network Interface.
privateIpAddress Changes to this property will trigger replacement. String
The IPv4 address of the IP configuration. Changing this forces a new resource to be created.

Import

Azure Stack HCI Network Interfaces can be imported using the resource id, e.g.

$ pulumi import azure:stack/hciNetworkInterface:HciNetworkInterface example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AzureStackHCI/networkInterfaces/ni1
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.