azure-native.azurestackhci.NetworkInterface
Explore with Pulumi AI
The network interface resource definition.
Uses Azure REST API version 2025-02-01-preview. In version 2.x of the Azure Native provider, it used API version 2022-12-15-preview.
Other available API versions: 2022-12-15-preview, 2023-07-01-preview, 2023-09-01-preview, 2024-01-01, 2024-02-01-preview, 2024-05-01-preview, 2024-07-15-preview, 2024-08-01-preview, 2024-10-01-preview, 2025-04-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native azurestackhci [ApiVersion]
. See the version guide for details.
Example Usage
CreateNetworkInterfaceFromLocal
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var networkInterface = new AzureNative.AzureStackHCI.NetworkInterface("networkInterface", new()
{
CreateFromLocal = true,
ExtendedLocation = new AzureNative.AzureStackHCI.Inputs.ExtendedLocationArgs
{
Name = "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
Type = AzureNative.AzureStackHCI.ExtendedLocationTypes.CustomLocation,
},
IpConfigurations = new[]
{
new AzureNative.AzureStackHCI.Inputs.IPConfigurationArgs
{
Name = "ipconfig-sample",
Properties = new AzureNative.AzureStackHCI.Inputs.IPConfigurationPropertiesArgs
{
Subnet = new AzureNative.AzureStackHCI.Inputs.LogicalNetworkArmReferenceArgs
{
Id = "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet",
},
},
},
},
Location = "eastus",
NetworkInterfaceName = "test-nic",
ResourceGroupName = "test-rg",
});
});
package main
import (
azurestackhci "github.com/pulumi/pulumi-azure-native-sdk/azurestackhci/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azurestackhci.NewNetworkInterface(ctx, "networkInterface", &azurestackhci.NetworkInterfaceArgs{
CreateFromLocal: pulumi.Bool(true),
ExtendedLocation: &azurestackhci.ExtendedLocationArgs{
Name: pulumi.String("/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location"),
Type: pulumi.String(azurestackhci.ExtendedLocationTypesCustomLocation),
},
IpConfigurations: azurestackhci.IPConfigurationArray{
&azurestackhci.IPConfigurationArgs{
Name: pulumi.String("ipconfig-sample"),
Properties: &azurestackhci.IPConfigurationPropertiesArgs{
Subnet: &azurestackhci.LogicalNetworkArmReferenceArgs{
Id: pulumi.String("/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet"),
},
},
},
},
Location: pulumi.String("eastus"),
NetworkInterfaceName: pulumi.String("test-nic"),
ResourceGroupName: pulumi.String("test-rg"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.azurestackhci.NetworkInterface;
import com.pulumi.azurenative.azurestackhci.NetworkInterfaceArgs;
import com.pulumi.azurenative.azurestackhci.inputs.ExtendedLocationArgs;
import com.pulumi.azurenative.azurestackhci.inputs.IPConfigurationArgs;
import com.pulumi.azurenative.azurestackhci.inputs.IPConfigurationPropertiesArgs;
import com.pulumi.azurenative.azurestackhci.inputs.LogicalNetworkArmReferenceArgs;
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 networkInterface = new NetworkInterface("networkInterface", NetworkInterfaceArgs.builder()
.createFromLocal(true)
.extendedLocation(ExtendedLocationArgs.builder()
.name("/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location")
.type("CustomLocation")
.build())
.ipConfigurations(IPConfigurationArgs.builder()
.name("ipconfig-sample")
.properties(IPConfigurationPropertiesArgs.builder()
.subnet(LogicalNetworkArmReferenceArgs.builder()
.id("/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet")
.build())
.build())
.build())
.location("eastus")
.networkInterfaceName("test-nic")
.resourceGroupName("test-rg")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const networkInterface = new azure_native.azurestackhci.NetworkInterface("networkInterface", {
createFromLocal: true,
extendedLocation: {
name: "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
type: azure_native.azurestackhci.ExtendedLocationTypes.CustomLocation,
},
ipConfigurations: [{
name: "ipconfig-sample",
properties: {
subnet: {
id: "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet",
},
},
}],
location: "eastus",
networkInterfaceName: "test-nic",
resourceGroupName: "test-rg",
});
import pulumi
import pulumi_azure_native as azure_native
network_interface = azure_native.azurestackhci.NetworkInterface("networkInterface",
create_from_local=True,
extended_location={
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
"type": azure_native.azurestackhci.ExtendedLocationTypes.CUSTOM_LOCATION,
},
ip_configurations=[{
"name": "ipconfig-sample",
"properties": {
"subnet": {
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet",
},
},
}],
location="eastus",
network_interface_name="test-nic",
resource_group_name="test-rg")
resources:
networkInterface:
type: azure-native:azurestackhci:NetworkInterface
properties:
createFromLocal: true
extendedLocation:
name: /subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location
type: CustomLocation
ipConfigurations:
- name: ipconfig-sample
properties:
subnet:
id: /subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet
location: eastus
networkInterfaceName: test-nic
resourceGroupName: test-rg
PutNetworkInterface
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var networkInterface = new AzureNative.AzureStackHCI.NetworkInterface("networkInterface", new()
{
ExtendedLocation = new AzureNative.AzureStackHCI.Inputs.ExtendedLocationArgs
{
Name = "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
Type = AzureNative.AzureStackHCI.ExtendedLocationTypes.CustomLocation,
},
IpConfigurations = new[]
{
new AzureNative.AzureStackHCI.Inputs.IPConfigurationArgs
{
Name = "ipconfig-sample",
Properties = new AzureNative.AzureStackHCI.Inputs.IPConfigurationPropertiesArgs
{
Subnet = new AzureNative.AzureStackHCI.Inputs.LogicalNetworkArmReferenceArgs
{
Id = "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet",
},
},
},
},
Location = "eastus",
NetworkInterfaceName = "test-nic",
ResourceGroupName = "test-rg",
});
});
package main
import (
azurestackhci "github.com/pulumi/pulumi-azure-native-sdk/azurestackhci/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azurestackhci.NewNetworkInterface(ctx, "networkInterface", &azurestackhci.NetworkInterfaceArgs{
ExtendedLocation: &azurestackhci.ExtendedLocationArgs{
Name: pulumi.String("/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location"),
Type: pulumi.String(azurestackhci.ExtendedLocationTypesCustomLocation),
},
IpConfigurations: azurestackhci.IPConfigurationArray{
&azurestackhci.IPConfigurationArgs{
Name: pulumi.String("ipconfig-sample"),
Properties: &azurestackhci.IPConfigurationPropertiesArgs{
Subnet: &azurestackhci.LogicalNetworkArmReferenceArgs{
Id: pulumi.String("/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet"),
},
},
},
},
Location: pulumi.String("eastus"),
NetworkInterfaceName: pulumi.String("test-nic"),
ResourceGroupName: pulumi.String("test-rg"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.azurestackhci.NetworkInterface;
import com.pulumi.azurenative.azurestackhci.NetworkInterfaceArgs;
import com.pulumi.azurenative.azurestackhci.inputs.ExtendedLocationArgs;
import com.pulumi.azurenative.azurestackhci.inputs.IPConfigurationArgs;
import com.pulumi.azurenative.azurestackhci.inputs.IPConfigurationPropertiesArgs;
import com.pulumi.azurenative.azurestackhci.inputs.LogicalNetworkArmReferenceArgs;
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 networkInterface = new NetworkInterface("networkInterface", NetworkInterfaceArgs.builder()
.extendedLocation(ExtendedLocationArgs.builder()
.name("/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location")
.type("CustomLocation")
.build())
.ipConfigurations(IPConfigurationArgs.builder()
.name("ipconfig-sample")
.properties(IPConfigurationPropertiesArgs.builder()
.subnet(LogicalNetworkArmReferenceArgs.builder()
.id("/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet")
.build())
.build())
.build())
.location("eastus")
.networkInterfaceName("test-nic")
.resourceGroupName("test-rg")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const networkInterface = new azure_native.azurestackhci.NetworkInterface("networkInterface", {
extendedLocation: {
name: "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
type: azure_native.azurestackhci.ExtendedLocationTypes.CustomLocation,
},
ipConfigurations: [{
name: "ipconfig-sample",
properties: {
subnet: {
id: "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet",
},
},
}],
location: "eastus",
networkInterfaceName: "test-nic",
resourceGroupName: "test-rg",
});
import pulumi
import pulumi_azure_native as azure_native
network_interface = azure_native.azurestackhci.NetworkInterface("networkInterface",
extended_location={
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
"type": azure_native.azurestackhci.ExtendedLocationTypes.CUSTOM_LOCATION,
},
ip_configurations=[{
"name": "ipconfig-sample",
"properties": {
"subnet": {
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet",
},
},
}],
location="eastus",
network_interface_name="test-nic",
resource_group_name="test-rg")
resources:
networkInterface:
type: azure-native:azurestackhci:NetworkInterface
properties:
extendedLocation:
name: /subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location
type: CustomLocation
ipConfigurations:
- name: ipconfig-sample
properties:
subnet:
id: /subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet
location: eastus
networkInterfaceName: test-nic
resourceGroupName: test-rg
Create NetworkInterface Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NetworkInterface(name: string, args: NetworkInterfaceArgs, opts?: CustomResourceOptions);
@overload
def NetworkInterface(resource_name: str,
args: NetworkInterfaceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NetworkInterface(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
create_from_local: Optional[bool] = None,
dns_settings: Optional[InterfaceDNSSettingsArgs] = None,
extended_location: Optional[ExtendedLocationArgs] = None,
ip_configurations: Optional[Sequence[IPConfigurationArgs]] = None,
location: Optional[str] = None,
mac_address: Optional[str] = None,
network_interface_name: Optional[str] = None,
network_security_group: Optional[NetworkSecurityGroupArmReferenceArgs] = None,
tags: Optional[Mapping[str, str]] = None)
func NewNetworkInterface(ctx *Context, name string, args NetworkInterfaceArgs, opts ...ResourceOption) (*NetworkInterface, error)
public NetworkInterface(string name, NetworkInterfaceArgs args, CustomResourceOptions? opts = null)
public NetworkInterface(String name, NetworkInterfaceArgs args)
public NetworkInterface(String name, NetworkInterfaceArgs args, CustomResourceOptions options)
type: azure-native:azurestackhci:NetworkInterface
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 NetworkInterfaceArgs
- 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 NetworkInterfaceArgs
- 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 NetworkInterfaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkInterfaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NetworkInterfaceArgs
- 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 networkInterfaceResource = new AzureNative.AzureStackHCI.NetworkInterface("networkInterfaceResource", new()
{
ResourceGroupName = "string",
CreateFromLocal = false,
DnsSettings = new AzureNative.AzureStackHCI.Inputs.InterfaceDNSSettingsArgs
{
DnsServers = new[]
{
"string",
},
},
ExtendedLocation = new AzureNative.AzureStackHCI.Inputs.ExtendedLocationArgs
{
Name = "string",
Type = "string",
},
IpConfigurations = new[]
{
new AzureNative.AzureStackHCI.Inputs.IPConfigurationArgs
{
Name = "string",
Properties = new AzureNative.AzureStackHCI.Inputs.IPConfigurationPropertiesArgs
{
PrivateIPAddress = "string",
Subnet = new AzureNative.AzureStackHCI.Inputs.LogicalNetworkArmReferenceArgs
{
Id = "string",
},
},
},
},
Location = "string",
MacAddress = "string",
NetworkInterfaceName = "string",
NetworkSecurityGroup = new AzureNative.AzureStackHCI.Inputs.NetworkSecurityGroupArmReferenceArgs
{
Id = "string",
},
Tags =
{
{ "string", "string" },
},
});
example, err := azurestackhci.NewNetworkInterface(ctx, "networkInterfaceResource", &azurestackhci.NetworkInterfaceArgs{
ResourceGroupName: pulumi.String("string"),
CreateFromLocal: pulumi.Bool(false),
DnsSettings: &azurestackhci.InterfaceDNSSettingsArgs{
DnsServers: pulumi.StringArray{
pulumi.String("string"),
},
},
ExtendedLocation: &azurestackhci.ExtendedLocationArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
},
IpConfigurations: azurestackhci.IPConfigurationArray{
&azurestackhci.IPConfigurationArgs{
Name: pulumi.String("string"),
Properties: &azurestackhci.IPConfigurationPropertiesArgs{
PrivateIPAddress: pulumi.String("string"),
Subnet: &azurestackhci.LogicalNetworkArmReferenceArgs{
Id: pulumi.String("string"),
},
},
},
},
Location: pulumi.String("string"),
MacAddress: pulumi.String("string"),
NetworkInterfaceName: pulumi.String("string"),
NetworkSecurityGroup: &azurestackhci.NetworkSecurityGroupArmReferenceArgs{
Id: pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var networkInterfaceResource = new com.pulumi.azurenative.azurestackhci.NetworkInterface("networkInterfaceResource", com.pulumi.azurenative.azurestackhci.NetworkInterfaceArgs.builder()
.resourceGroupName("string")
.createFromLocal(false)
.dnsSettings(InterfaceDNSSettingsArgs.builder()
.dnsServers("string")
.build())
.extendedLocation(ExtendedLocationArgs.builder()
.name("string")
.type("string")
.build())
.ipConfigurations(IPConfigurationArgs.builder()
.name("string")
.properties(IPConfigurationPropertiesArgs.builder()
.privateIPAddress("string")
.subnet(LogicalNetworkArmReferenceArgs.builder()
.id("string")
.build())
.build())
.build())
.location("string")
.macAddress("string")
.networkInterfaceName("string")
.networkSecurityGroup(NetworkSecurityGroupArmReferenceArgs.builder()
.id("string")
.build())
.tags(Map.of("string", "string"))
.build());
network_interface_resource = azure_native.azurestackhci.NetworkInterface("networkInterfaceResource",
resource_group_name="string",
create_from_local=False,
dns_settings={
"dns_servers": ["string"],
},
extended_location={
"name": "string",
"type": "string",
},
ip_configurations=[{
"name": "string",
"properties": {
"private_ip_address": "string",
"subnet": {
"id": "string",
},
},
}],
location="string",
mac_address="string",
network_interface_name="string",
network_security_group={
"id": "string",
},
tags={
"string": "string",
})
const networkInterfaceResource = new azure_native.azurestackhci.NetworkInterface("networkInterfaceResource", {
resourceGroupName: "string",
createFromLocal: false,
dnsSettings: {
dnsServers: ["string"],
},
extendedLocation: {
name: "string",
type: "string",
},
ipConfigurations: [{
name: "string",
properties: {
privateIPAddress: "string",
subnet: {
id: "string",
},
},
}],
location: "string",
macAddress: "string",
networkInterfaceName: "string",
networkSecurityGroup: {
id: "string",
},
tags: {
string: "string",
},
});
type: azure-native:azurestackhci:NetworkInterface
properties:
createFromLocal: false
dnsSettings:
dnsServers:
- string
extendedLocation:
name: string
type: string
ipConfigurations:
- name: string
properties:
privateIPAddress: string
subnet:
id: string
location: string
macAddress: string
networkInterfaceName: string
networkSecurityGroup:
id: string
resourceGroupName: string
tags:
string: string
NetworkInterface 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 NetworkInterface resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Create
From boolLocal - Boolean indicating whether this is a existing local network interface or if one should be created.
- Dns
Settings Pulumi.Azure Native. Azure Stack HCI. Inputs. Interface DNSSettings - DNS Settings for the interface
- Extended
Location Pulumi.Azure Native. Azure Stack HCI. Inputs. Extended Location - The extendedLocation of the resource.
- Ip
Configurations List<Pulumi.Azure Native. Azure Stack HCI. Inputs. IPConfiguration> - IPConfigurations - A list of IPConfigurations of the network interface.
- Location string
- The geo-location where the resource lives
- Mac
Address string - MacAddress - The MAC address of the network interface.
- Network
Interface stringName - Name of the network interface
- Network
Security Pulumi.Group Azure Native. Azure Stack HCI. Inputs. Network Security Group Arm Reference - NetworkSecurityGroup - Network Security Group attached to the network interface.
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Create
From boolLocal - Boolean indicating whether this is a existing local network interface or if one should be created.
- Dns
Settings InterfaceDNSSettings Args - DNS Settings for the interface
- Extended
Location ExtendedLocation Args - The extendedLocation of the resource.
- Ip
Configurations []IPConfigurationArgs - IPConfigurations - A list of IPConfigurations of the network interface.
- Location string
- The geo-location where the resource lives
- Mac
Address string - MacAddress - The MAC address of the network interface.
- Network
Interface stringName - Name of the network interface
- Network
Security NetworkGroup Security Group Arm Reference Args - NetworkSecurityGroup - Network Security Group attached to the network interface.
- map[string]string
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- create
From BooleanLocal - Boolean indicating whether this is a existing local network interface or if one should be created.
- dns
Settings InterfaceDNSSettings - DNS Settings for the interface
- extended
Location ExtendedLocation - The extendedLocation of the resource.
- ip
Configurations List<IPConfiguration> - IPConfigurations - A list of IPConfigurations of the network interface.
- location String
- The geo-location where the resource lives
- mac
Address String - MacAddress - The MAC address of the network interface.
- network
Interface StringName - Name of the network interface
- network
Security NetworkGroup Security Group Arm Reference - NetworkSecurityGroup - Network Security Group attached to the network interface.
- Map<String,String>
- Resource tags.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- create
From booleanLocal - Boolean indicating whether this is a existing local network interface or if one should be created.
- dns
Settings InterfaceDNSSettings - DNS Settings for the interface
- extended
Location ExtendedLocation - The extendedLocation of the resource.
- ip
Configurations IPConfiguration[] - IPConfigurations - A list of IPConfigurations of the network interface.
- location string
- The geo-location where the resource lives
- mac
Address string - MacAddress - The MAC address of the network interface.
- network
Interface stringName - Name of the network interface
- network
Security NetworkGroup Security Group Arm Reference - NetworkSecurityGroup - Network Security Group attached to the network interface.
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- create_
from_ boollocal - Boolean indicating whether this is a existing local network interface or if one should be created.
- dns_
settings InterfaceDNSSettings Args - DNS Settings for the interface
- extended_
location ExtendedLocation Args - The extendedLocation of the resource.
- ip_
configurations Sequence[IPConfigurationArgs] - IPConfigurations - A list of IPConfigurations of the network interface.
- location str
- The geo-location where the resource lives
- mac_
address str - MacAddress - The MAC address of the network interface.
- network_
interface_ strname - Name of the network interface
- network_
security_ Networkgroup Security Group Arm Reference Args - NetworkSecurityGroup - Network Security Group attached to the network interface.
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- create
From BooleanLocal - Boolean indicating whether this is a existing local network interface or if one should be created.
- dns
Settings Property Map - DNS Settings for the interface
- extended
Location Property Map - The extendedLocation of the resource.
- ip
Configurations List<Property Map> - IPConfigurations - A list of IPConfigurations of the network interface.
- location String
- The geo-location where the resource lives
- mac
Address String - MacAddress - The MAC address of the network interface.
- network
Interface StringName - Name of the network interface
- network
Security Property MapGroup - NetworkSecurityGroup - Network Security Group attached to the network interface.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the NetworkInterface resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - Provisioning state of the network interface.
- Status
Pulumi.
Azure Native. Azure Stack HCI. Outputs. Network Interface Status Response - The observed state of network interfaces
- System
Data Pulumi.Azure Native. Azure Stack HCI. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - Provisioning state of the network interface.
- Status
Network
Interface Status Response - The observed state of network interfaces
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - Provisioning state of the network interface.
- status
Network
Interface Status Response - The observed state of network interfaces
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning
State string - Provisioning state of the network interface.
- status
Network
Interface Status Response - The observed state of network interfaces
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_
state str - Provisioning state of the network interface.
- status
Network
Interface Status Response - The observed state of network interfaces
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - Provisioning state of the network interface.
- status Property Map
- The observed state of network interfaces
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
ExtendedLocation, ExtendedLocationArgs
- Name string
- The name of the extended location.
- Type
string | Pulumi.
Azure Native. Azure Stack HCI. Extended Location Types - The type of the extended location.
- Name string
- The name of the extended location.
- Type
string | Extended
Location Types - The type of the extended location.
- name String
- The name of the extended location.
- type
String | Extended
Location Types - The type of the extended location.
- name string
- The name of the extended location.
- type
string | Extended
Location Types - The type of the extended location.
- name str
- The name of the extended location.
- type
str | Extended
Location Types - The type of the extended location.
- name String
- The name of the extended location.
- type
String | "Custom
Location" - The type of the extended location.
ExtendedLocationResponse, ExtendedLocationResponseArgs
ExtendedLocationTypes, ExtendedLocationTypesArgs
- Custom
Location - CustomLocation
- Extended
Location Types Custom Location - CustomLocation
- Custom
Location - CustomLocation
- Custom
Location - CustomLocation
- CUSTOM_LOCATION
- CustomLocation
- "Custom
Location" - CustomLocation
IPConfiguration, IPConfigurationArgs
- Name string
- Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
- Properties
Pulumi.
Azure Native. Azure Stack HCI. Inputs. IPConfiguration Properties - InterfaceIPConfigurationPropertiesFormat properties of IP configuration.
- Name string
- Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
- Properties
IPConfiguration
Properties - InterfaceIPConfigurationPropertiesFormat properties of IP configuration.
- name String
- Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
- properties
IPConfiguration
Properties - InterfaceIPConfigurationPropertiesFormat properties of IP configuration.
- name string
- Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
- properties
IPConfiguration
Properties - InterfaceIPConfigurationPropertiesFormat properties of IP configuration.
- name str
- Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
- properties
IPConfiguration
Properties - InterfaceIPConfigurationPropertiesFormat properties of IP configuration.
- name String
- Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
- properties Property Map
- InterfaceIPConfigurationPropertiesFormat properties of IP configuration.
IPConfigurationProperties, IPConfigurationPropertiesArgs
- Private
IPAddress string - PrivateIPAddress - Private IP address of the IP configuration.
- Subnet
Pulumi.
Azure Native. Azure Stack HCI. Inputs. Logical Network Arm Reference - Subnet - Name of Subnet bound to the IP configuration.
- Private
IPAddress string - PrivateIPAddress - Private IP address of the IP configuration.
- Subnet
Logical
Network Arm Reference - Subnet - Name of Subnet bound to the IP configuration.
- private
IPAddress String - PrivateIPAddress - Private IP address of the IP configuration.
- subnet
Logical
Network Arm Reference - Subnet - Name of Subnet bound to the IP configuration.
- private
IPAddress string - PrivateIPAddress - Private IP address of the IP configuration.
- subnet
Logical
Network Arm Reference - Subnet - Name of Subnet bound to the IP configuration.
- private_
ip_ straddress - PrivateIPAddress - Private IP address of the IP configuration.
- subnet
Logical
Network Arm Reference - Subnet - Name of Subnet bound to the IP configuration.
- private
IPAddress String - PrivateIPAddress - Private IP address of the IP configuration.
- subnet Property Map
- Subnet - Name of Subnet bound to the IP configuration.
IPConfigurationPropertiesResponse, IPConfigurationPropertiesResponseArgs
- Gateway string
- Gateway for network interface
- Prefix
Length string - prefixLength for network interface
- Private
IPAddress string - PrivateIPAddress - Private IP address of the IP configuration.
- Subnet
Pulumi.
Azure Native. Azure Stack HCI. Inputs. Logical Network Arm Reference Response - Subnet - Name of Subnet bound to the IP configuration.
- Gateway string
- Gateway for network interface
- Prefix
Length string - prefixLength for network interface
- Private
IPAddress string - PrivateIPAddress - Private IP address of the IP configuration.
- Subnet
Logical
Network Arm Reference Response - Subnet - Name of Subnet bound to the IP configuration.
- gateway String
- Gateway for network interface
- prefix
Length String - prefixLength for network interface
- private
IPAddress String - PrivateIPAddress - Private IP address of the IP configuration.
- subnet
Logical
Network Arm Reference Response - Subnet - Name of Subnet bound to the IP configuration.
- gateway string
- Gateway for network interface
- prefix
Length string - prefixLength for network interface
- private
IPAddress string - PrivateIPAddress - Private IP address of the IP configuration.
- subnet
Logical
Network Arm Reference Response - Subnet - Name of Subnet bound to the IP configuration.
- gateway str
- Gateway for network interface
- prefix_
length str - prefixLength for network interface
- private_
ip_ straddress - PrivateIPAddress - Private IP address of the IP configuration.
- subnet
Logical
Network Arm Reference Response - Subnet - Name of Subnet bound to the IP configuration.
- gateway String
- Gateway for network interface
- prefix
Length String - prefixLength for network interface
- private
IPAddress String - PrivateIPAddress - Private IP address of the IP configuration.
- subnet Property Map
- Subnet - Name of Subnet bound to the IP configuration.
IPConfigurationResponse, IPConfigurationResponseArgs
- Name string
- Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
- Properties
Pulumi.
Azure Native. Azure Stack HCI. Inputs. IPConfiguration Properties Response - InterfaceIPConfigurationPropertiesFormat properties of IP configuration.
- Name string
- Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
- Properties
IPConfiguration
Properties Response - InterfaceIPConfigurationPropertiesFormat properties of IP configuration.
- name String
- Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
- properties
IPConfiguration
Properties Response - InterfaceIPConfigurationPropertiesFormat properties of IP configuration.
- name string
- Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
- properties
IPConfiguration
Properties Response - InterfaceIPConfigurationPropertiesFormat properties of IP configuration.
- name str
- Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
- properties
IPConfiguration
Properties Response - InterfaceIPConfigurationPropertiesFormat properties of IP configuration.
- name String
- Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
- properties Property Map
- InterfaceIPConfigurationPropertiesFormat properties of IP configuration.
InterfaceDNSSettings, InterfaceDNSSettingsArgs
- Dns
Servers List<string> - List of DNS server IP Addresses for the interface
- Dns
Servers []string - List of DNS server IP Addresses for the interface
- dns
Servers List<String> - List of DNS server IP Addresses for the interface
- dns
Servers string[] - List of DNS server IP Addresses for the interface
- dns_
servers Sequence[str] - List of DNS server IP Addresses for the interface
- dns
Servers List<String> - List of DNS server IP Addresses for the interface
InterfaceDNSSettingsResponse, InterfaceDNSSettingsResponseArgs
- Dns
Servers List<string> - List of DNS server IP Addresses for the interface
- Dns
Servers []string - List of DNS server IP Addresses for the interface
- dns
Servers List<String> - List of DNS server IP Addresses for the interface
- dns
Servers string[] - List of DNS server IP Addresses for the interface
- dns_
servers Sequence[str] - List of DNS server IP Addresses for the interface
- dns
Servers List<String> - List of DNS server IP Addresses for the interface
LogicalNetworkArmReference, LogicalNetworkArmReferenceArgs
- Id string
- The ARM ID for a Logical Network.
- Id string
- The ARM ID for a Logical Network.
- id String
- The ARM ID for a Logical Network.
- id string
- The ARM ID for a Logical Network.
- id str
- The ARM ID for a Logical Network.
- id String
- The ARM ID for a Logical Network.
LogicalNetworkArmReferenceResponse, LogicalNetworkArmReferenceResponseArgs
- Id string
- The ARM ID for a Logical Network.
- Id string
- The ARM ID for a Logical Network.
- id String
- The ARM ID for a Logical Network.
- id string
- The ARM ID for a Logical Network.
- id str
- The ARM ID for a Logical Network.
- id String
- The ARM ID for a Logical Network.
NetworkInterfaceStatusProvisioningStatusResponse, NetworkInterfaceStatusProvisioningStatusResponseArgs
- Status string
- The status of the operation performed on the network interface [Succeeded, Failed, InProgress]
- Operation
Id string - The ID of the operation performed on the network interface
- Status string
- The status of the operation performed on the network interface [Succeeded, Failed, InProgress]
- Operation
Id string - The ID of the operation performed on the network interface
- status String
- The status of the operation performed on the network interface [Succeeded, Failed, InProgress]
- operation
Id String - The ID of the operation performed on the network interface
- status string
- The status of the operation performed on the network interface [Succeeded, Failed, InProgress]
- operation
Id string - The ID of the operation performed on the network interface
- status str
- The status of the operation performed on the network interface [Succeeded, Failed, InProgress]
- operation_
id str - The ID of the operation performed on the network interface
- status String
- The status of the operation performed on the network interface [Succeeded, Failed, InProgress]
- operation
Id String - The ID of the operation performed on the network interface
NetworkInterfaceStatusResponse, NetworkInterfaceStatusResponseArgs
- Error
Code string - NetworkInterface provisioning error code
- Error
Message string - Descriptive error message
- Provisioning
Status Pulumi.Azure Native. Azure Stack HCI. Inputs. Network Interface Status Provisioning Status Response - Network interface provisioning status
- Error
Code string - NetworkInterface provisioning error code
- Error
Message string - Descriptive error message
- Provisioning
Status NetworkInterface Status Provisioning Status Response - Network interface provisioning status
- error
Code String - NetworkInterface provisioning error code
- error
Message String - Descriptive error message
- provisioning
Status NetworkInterface Status Provisioning Status Response - Network interface provisioning status
- error
Code string - NetworkInterface provisioning error code
- error
Message string - Descriptive error message
- provisioning
Status NetworkInterface Status Provisioning Status Response - Network interface provisioning status
- error_
code str - NetworkInterface provisioning error code
- error_
message str - Descriptive error message
- provisioning_
status NetworkInterface Status Provisioning Status Response - Network interface provisioning status
- error
Code String - NetworkInterface provisioning error code
- error
Message String - Descriptive error message
- provisioning
Status Property Map - Network interface provisioning status
NetworkSecurityGroupArmReference, NetworkSecurityGroupArmReferenceArgs
- Id string
- The ARM ID for a Network Security Group.
- Id string
- The ARM ID for a Network Security Group.
- id String
- The ARM ID for a Network Security Group.
- id string
- The ARM ID for a Network Security Group.
- id str
- The ARM ID for a Network Security Group.
- id String
- The ARM ID for a Network Security Group.
NetworkSecurityGroupArmReferenceResponse, NetworkSecurityGroupArmReferenceResponseArgs
- Id string
- The ARM ID for a Network Security Group.
- Id string
- The ARM ID for a Network Security Group.
- id String
- The ARM ID for a Network Security Group.
- id string
- The ARM ID for a Network Security Group.
- id str
- The ARM ID for a Network Security Group.
- id String
- The ARM ID for a Network Security Group.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:azurestackhci:NetworkInterface test-nic /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkInterfaces/{networkInterfaceName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0