HciNetworkInterfaceArgs

data class HciNetworkInterfaceArgs(val customLocationId: Output<String>? = null, val dnsServers: Output<List<String>>? = null, val ipConfiguration: Output<HciNetworkInterfaceIpConfigurationArgs>? = null, val location: Output<String>? = null, val macAddress: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<HciNetworkInterfaceArgs>

Manages an Azure Stack HCI Network Interface.

Example Usage

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

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

Constructors

Link copied to clipboard
constructor(customLocationId: Output<String>? = null, dnsServers: Output<List<String>>? = null, ipConfiguration: Output<HciNetworkInterfaceIpConfigurationArgs>? = null, location: Output<String>? = null, macAddress: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val customLocationId: Output<String>? = null

The ID of the Custom Location where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created.

Link copied to clipboard
val dnsServers: Output<List<String>>? = null

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.

Link copied to clipboard

An ip_configuration block as defined below. Changing this forces a new resource to be created.

Link copied to clipboard
val location: Output<String>? = null

The Azure Region where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created.

Link copied to clipboard
val macAddress: Output<String>? = null

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

Link copied to clipboard
val name: Output<String>? = null

The name which should be used for this Azure Stack HCI Network Interface. Changing this forces a new resource to be created.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the Resource Group where the Azure Stack HCI Network Interface should exist. Changing this forces a new resource to be created.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags which should be assigned to the Azure Stack HCI Network Interface.

Functions

Link copied to clipboard
open override fun toJava(): HciNetworkInterfaceArgs