1. Packages
  2. Azure Native
  3. API Docs
  4. azurestackhci
  5. VirtualNetwork
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

azure-native.azurestackhci.VirtualNetwork

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

The virtual network resource definition.

Uses Azure REST API version 2023-07-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. 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

PutVirtualNetwork

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var virtualNetwork = new AzureNative.AzureStackHCI.VirtualNetwork("virtualNetwork", 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,
        },
        Location = "West US2",
        NetworkType = AzureNative.AzureStackHCI.NetworkTypeEnum.Transparent,
        ResourceGroupName = "test-rg",
        VirtualNetworkName = "test-vnet",
    });

});
Copy
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.NewVirtualNetwork(ctx, "virtualNetwork", &azurestackhci.VirtualNetworkArgs{
			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),
			},
			Location:           pulumi.String("West US2"),
			NetworkType:        pulumi.String(azurestackhci.NetworkTypeEnumTransparent),
			ResourceGroupName:  pulumi.String("test-rg"),
			VirtualNetworkName: pulumi.String("test-vnet"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.azurestackhci.VirtualNetwork;
import com.pulumi.azurenative.azurestackhci.VirtualNetworkArgs;
import com.pulumi.azurenative.azurestackhci.inputs.ExtendedLocationArgs;
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 virtualNetwork = new VirtualNetwork("virtualNetwork", VirtualNetworkArgs.builder()
            .extendedLocation(ExtendedLocationArgs.builder()
                .name("/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location")
                .type("CustomLocation")
                .build())
            .location("West US2")
            .networkType("Transparent")
            .resourceGroupName("test-rg")
            .virtualNetworkName("test-vnet")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const virtualNetwork = new azure_native.azurestackhci.VirtualNetwork("virtualNetwork", {
    extendedLocation: {
        name: "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
        type: azure_native.azurestackhci.ExtendedLocationTypes.CustomLocation,
    },
    location: "West US2",
    networkType: azure_native.azurestackhci.NetworkTypeEnum.Transparent,
    resourceGroupName: "test-rg",
    virtualNetworkName: "test-vnet",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

virtual_network = azure_native.azurestackhci.VirtualNetwork("virtualNetwork",
    extended_location={
        "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
        "type": azure_native.azurestackhci.ExtendedLocationTypes.CUSTOM_LOCATION,
    },
    location="West US2",
    network_type=azure_native.azurestackhci.NetworkTypeEnum.TRANSPARENT,
    resource_group_name="test-rg",
    virtual_network_name="test-vnet")
Copy
resources:
  virtualNetwork:
    type: azure-native:azurestackhci:VirtualNetwork
    properties:
      extendedLocation:
        name: /subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location
        type: CustomLocation
      location: West US2
      networkType: Transparent
      resourceGroupName: test-rg
      virtualNetworkName: test-vnet
Copy

Create VirtualNetwork Resource

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

Constructor syntax

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

@overload
def VirtualNetwork(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   resource_group_name: Optional[str] = None,
                   dhcp_options: Optional[VirtualNetworkPropertiesDhcpOptionsArgs] = None,
                   extended_location: Optional[ExtendedLocationArgs] = None,
                   location: Optional[str] = None,
                   network_type: Optional[Union[str, NetworkTypeEnum]] = None,
                   subnets: Optional[Sequence[VirtualNetworkPropertiesSubnetsArgs]] = None,
                   tags: Optional[Mapping[str, str]] = None,
                   virtual_network_name: Optional[str] = None,
                   vm_switch_name: Optional[str] = None)
func NewVirtualNetwork(ctx *Context, name string, args VirtualNetworkArgs, opts ...ResourceOption) (*VirtualNetwork, error)
public VirtualNetwork(string name, VirtualNetworkArgs args, CustomResourceOptions? opts = null)
public VirtualNetwork(String name, VirtualNetworkArgs args)
public VirtualNetwork(String name, VirtualNetworkArgs args, CustomResourceOptions options)
type: azure-native:azurestackhci:VirtualNetwork
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. VirtualNetworkArgs
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. VirtualNetworkArgs
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. VirtualNetworkArgs
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. VirtualNetworkArgs
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. VirtualNetworkArgs
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 virtualNetworkResource = new AzureNative.AzureStackHCI.VirtualNetwork("virtualNetworkResource", new()
{
    ResourceGroupName = "string",
    DhcpOptions = new AzureNative.AzureStackHCI.Inputs.VirtualNetworkPropertiesDhcpOptionsArgs
    {
        DnsServers = new[]
        {
            "string",
        },
    },
    ExtendedLocation = new AzureNative.AzureStackHCI.Inputs.ExtendedLocationArgs
    {
        Name = "string",
        Type = "string",
    },
    Location = "string",
    NetworkType = "string",
    Subnets = new[]
    {
        new AzureNative.AzureStackHCI.Inputs.VirtualNetworkPropertiesSubnetsArgs
        {
            AddressPrefix = "string",
            AddressPrefixes = new[]
            {
                "string",
            },
            IpAllocationMethod = "string",
            IpConfigurationReferences = new[]
            {
                new AzureNative.AzureStackHCI.Inputs.VirtualNetworkPropertiesIpConfigurationReferencesArgs
                {
                    Id = "string",
                },
            },
            Name = "string",
            RouteTable = new AzureNative.AzureStackHCI.Inputs.VirtualNetworkPropertiesRouteTableArgs
            {
                Id = "string",
                Name = "string",
                Routes = new[]
                {
                    new AzureNative.AzureStackHCI.Inputs.VirtualNetworkPropertiesRoutesArgs
                    {
                        AddressPrefix = "string",
                        Name = "string",
                        NextHopIpAddress = "string",
                    },
                },
                Type = "string",
            },
            Vlan = 0,
        },
    },
    Tags = 
    {
        { "string", "string" },
    },
    VirtualNetworkName = "string",
    VmSwitchName = "string",
});
Copy
example, err := azurestackhci.NewVirtualNetwork(ctx, "virtualNetworkResource", &azurestackhci.VirtualNetworkArgs{
	ResourceGroupName: pulumi.String("string"),
	DhcpOptions: &azurestackhci.VirtualNetworkPropertiesDhcpOptionsArgs{
		DnsServers: pulumi.StringArray{
			pulumi.String("string"),
		},
	},
	ExtendedLocation: &azurestackhci.ExtendedLocationArgs{
		Name: pulumi.String("string"),
		Type: pulumi.String("string"),
	},
	Location:    pulumi.String("string"),
	NetworkType: pulumi.String("string"),
	Subnets: azurestackhci.VirtualNetworkPropertiesSubnetsArray{
		&azurestackhci.VirtualNetworkPropertiesSubnetsArgs{
			AddressPrefix: pulumi.String("string"),
			AddressPrefixes: pulumi.StringArray{
				pulumi.String("string"),
			},
			IpAllocationMethod: pulumi.String("string"),
			IpConfigurationReferences: azurestackhci.VirtualNetworkPropertiesIpConfigurationReferencesArray{
				&azurestackhci.VirtualNetworkPropertiesIpConfigurationReferencesArgs{
					Id: pulumi.String("string"),
				},
			},
			Name: pulumi.String("string"),
			RouteTable: &azurestackhci.VirtualNetworkPropertiesRouteTableArgs{
				Id:   pulumi.String("string"),
				Name: pulumi.String("string"),
				Routes: azurestackhci.VirtualNetworkPropertiesRoutesArray{
					&azurestackhci.VirtualNetworkPropertiesRoutesArgs{
						AddressPrefix:    pulumi.String("string"),
						Name:             pulumi.String("string"),
						NextHopIpAddress: pulumi.String("string"),
					},
				},
				Type: pulumi.String("string"),
			},
			Vlan: pulumi.Int(0),
		},
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	VirtualNetworkName: pulumi.String("string"),
	VmSwitchName:       pulumi.String("string"),
})
Copy
var virtualNetworkResource = new VirtualNetwork("virtualNetworkResource", VirtualNetworkArgs.builder()
    .resourceGroupName("string")
    .dhcpOptions(VirtualNetworkPropertiesDhcpOptionsArgs.builder()
        .dnsServers("string")
        .build())
    .extendedLocation(ExtendedLocationArgs.builder()
        .name("string")
        .type("string")
        .build())
    .location("string")
    .networkType("string")
    .subnets(VirtualNetworkPropertiesSubnetsArgs.builder()
        .addressPrefix("string")
        .addressPrefixes("string")
        .ipAllocationMethod("string")
        .ipConfigurationReferences(VirtualNetworkPropertiesIpConfigurationReferencesArgs.builder()
            .id("string")
            .build())
        .name("string")
        .routeTable(VirtualNetworkPropertiesRouteTableArgs.builder()
            .id("string")
            .name("string")
            .routes(VirtualNetworkPropertiesRoutesArgs.builder()
                .addressPrefix("string")
                .name("string")
                .nextHopIpAddress("string")
                .build())
            .type("string")
            .build())
        .vlan(0)
        .build())
    .tags(Map.of("string", "string"))
    .virtualNetworkName("string")
    .vmSwitchName("string")
    .build());
Copy
virtual_network_resource = azure_native.azurestackhci.VirtualNetwork("virtualNetworkResource",
    resource_group_name="string",
    dhcp_options={
        "dns_servers": ["string"],
    },
    extended_location={
        "name": "string",
        "type": "string",
    },
    location="string",
    network_type="string",
    subnets=[{
        "address_prefix": "string",
        "address_prefixes": ["string"],
        "ip_allocation_method": "string",
        "ip_configuration_references": [{
            "id": "string",
        }],
        "name": "string",
        "route_table": {
            "id": "string",
            "name": "string",
            "routes": [{
                "address_prefix": "string",
                "name": "string",
                "next_hop_ip_address": "string",
            }],
            "type": "string",
        },
        "vlan": 0,
    }],
    tags={
        "string": "string",
    },
    virtual_network_name="string",
    vm_switch_name="string")
Copy
const virtualNetworkResource = new azure_native.azurestackhci.VirtualNetwork("virtualNetworkResource", {
    resourceGroupName: "string",
    dhcpOptions: {
        dnsServers: ["string"],
    },
    extendedLocation: {
        name: "string",
        type: "string",
    },
    location: "string",
    networkType: "string",
    subnets: [{
        addressPrefix: "string",
        addressPrefixes: ["string"],
        ipAllocationMethod: "string",
        ipConfigurationReferences: [{
            id: "string",
        }],
        name: "string",
        routeTable: {
            id: "string",
            name: "string",
            routes: [{
                addressPrefix: "string",
                name: "string",
                nextHopIpAddress: "string",
            }],
            type: "string",
        },
        vlan: 0,
    }],
    tags: {
        string: "string",
    },
    virtualNetworkName: "string",
    vmSwitchName: "string",
});
Copy
type: azure-native:azurestackhci:VirtualNetwork
properties:
    dhcpOptions:
        dnsServers:
            - string
    extendedLocation:
        name: string
        type: string
    location: string
    networkType: string
    resourceGroupName: string
    subnets:
        - addressPrefix: string
          addressPrefixes:
            - string
          ipAllocationMethod: string
          ipConfigurationReferences:
            - id: string
          name: string
          routeTable:
            id: string
            name: string
            routes:
                - addressPrefix: string
                  name: string
                  nextHopIpAddress: string
            type: string
          vlan: 0
    tags:
        string: string
    virtualNetworkName: string
    vmSwitchName: string
Copy

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

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
DhcpOptions Pulumi.AzureNative.AzureStackHCI.Inputs.VirtualNetworkPropertiesDhcpOptions
DhcpOptions contains an array of DNS servers available to VMs deployed in the virtual network. Standard DHCP option for a subnet overrides VNET DHCP options.
ExtendedLocation Pulumi.AzureNative.AzureStackHCI.Inputs.ExtendedLocation
The extendedLocation of the resource.
Location Changes to this property will trigger replacement. string
The geo-location where the resource lives
NetworkType string | Pulumi.AzureNative.AzureStackHCI.NetworkTypeEnum
Type of the network
Subnets List<Pulumi.AzureNative.AzureStackHCI.Inputs.VirtualNetworkPropertiesSubnets>
Subnet - list of subnets under the virtual network
Tags Dictionary<string, string>
Resource tags.
VirtualNetworkName Changes to this property will trigger replacement. string
Name of the virtual network
VmSwitchName string
name of the network switch to be used for VMs
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
DhcpOptions VirtualNetworkPropertiesDhcpOptionsArgs
DhcpOptions contains an array of DNS servers available to VMs deployed in the virtual network. Standard DHCP option for a subnet overrides VNET DHCP options.
ExtendedLocation ExtendedLocationArgs
The extendedLocation of the resource.
Location Changes to this property will trigger replacement. string
The geo-location where the resource lives
NetworkType string | NetworkTypeEnum
Type of the network
Subnets []VirtualNetworkPropertiesSubnetsArgs
Subnet - list of subnets under the virtual network
Tags map[string]string
Resource tags.
VirtualNetworkName Changes to this property will trigger replacement. string
Name of the virtual network
VmSwitchName string
name of the network switch to be used for VMs
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
dhcpOptions VirtualNetworkPropertiesDhcpOptions
DhcpOptions contains an array of DNS servers available to VMs deployed in the virtual network. Standard DHCP option for a subnet overrides VNET DHCP options.
extendedLocation ExtendedLocation
The extendedLocation of the resource.
location Changes to this property will trigger replacement. String
The geo-location where the resource lives
networkType String | NetworkTypeEnum
Type of the network
subnets List<VirtualNetworkPropertiesSubnets>
Subnet - list of subnets under the virtual network
tags Map<String,String>
Resource tags.
virtualNetworkName Changes to this property will trigger replacement. String
Name of the virtual network
vmSwitchName String
name of the network switch to be used for VMs
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
dhcpOptions VirtualNetworkPropertiesDhcpOptions
DhcpOptions contains an array of DNS servers available to VMs deployed in the virtual network. Standard DHCP option for a subnet overrides VNET DHCP options.
extendedLocation ExtendedLocation
The extendedLocation of the resource.
location Changes to this property will trigger replacement. string
The geo-location where the resource lives
networkType string | NetworkTypeEnum
Type of the network
subnets VirtualNetworkPropertiesSubnets[]
Subnet - list of subnets under the virtual network
tags {[key: string]: string}
Resource tags.
virtualNetworkName Changes to this property will trigger replacement. string
Name of the virtual network
vmSwitchName string
name of the network switch to be used for VMs
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
dhcp_options VirtualNetworkPropertiesDhcpOptionsArgs
DhcpOptions contains an array of DNS servers available to VMs deployed in the virtual network. Standard DHCP option for a subnet overrides VNET DHCP options.
extended_location ExtendedLocationArgs
The extendedLocation of the resource.
location Changes to this property will trigger replacement. str
The geo-location where the resource lives
network_type str | NetworkTypeEnum
Type of the network
subnets Sequence[VirtualNetworkPropertiesSubnetsArgs]
Subnet - list of subnets under the virtual network
tags Mapping[str, str]
Resource tags.
virtual_network_name Changes to this property will trigger replacement. str
Name of the virtual network
vm_switch_name str
name of the network switch to be used for VMs
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
dhcpOptions Property Map
DhcpOptions contains an array of DNS servers available to VMs deployed in the virtual network. Standard DHCP option for a subnet overrides VNET DHCP options.
extendedLocation Property Map
The extendedLocation of the resource.
location Changes to this property will trigger replacement. String
The geo-location where the resource lives
networkType String | "NAT" | "Transparent" | "L2Bridge" | "L2Tunnel" | "ICS" | "Private" | "Overlay" | "Internal" | "Mirrored"
Type of the network
subnets List<Property Map>
Subnet - list of subnets under the virtual network
tags Map<String>
Resource tags.
virtualNetworkName Changes to this property will trigger replacement. String
Name of the virtual network
vmSwitchName String
name of the network switch to be used for VMs

Outputs

All input properties are implicitly available as output properties. Additionally, the VirtualNetwork resource produces the following output properties:

AzureApiVersion string
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
ProvisioningState string
Provisioning state of the virtual network.
Status Pulumi.AzureNative.AzureStackHCI.Outputs.VirtualNetworkStatusResponse
The observed state of virtual networks
SystemData Pulumi.AzureNative.AzureStackHCI.Outputs.SystemDataResponse
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"
AzureApiVersion string
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
ProvisioningState string
Provisioning state of the virtual network.
Status VirtualNetworkStatusResponse
The observed state of virtual networks
SystemData SystemDataResponse
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"
azureApiVersion String
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
provisioningState String
Provisioning state of the virtual network.
status VirtualNetworkStatusResponse
The observed state of virtual networks
systemData SystemDataResponse
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"
azureApiVersion string
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
provisioningState string
Provisioning state of the virtual network.
status VirtualNetworkStatusResponse
The observed state of virtual networks
systemData SystemDataResponse
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_version str
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 virtual network.
status VirtualNetworkStatusResponse
The observed state of virtual networks
system_data SystemDataResponse
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"
azureApiVersion String
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
provisioningState String
Provisioning state of the virtual network.
status Property Map
The observed state of virtual networks
systemData 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.AzureNative.AzureStackHCI.ExtendedLocationTypes
The type of the extended location.
Name string
The name of the extended location.
Type string | ExtendedLocationTypes
The type of the extended location.
name String
The name of the extended location.
type String | ExtendedLocationTypes
The type of the extended location.
name string
The name of the extended location.
type string | ExtendedLocationTypes
The type of the extended location.
name str
The name of the extended location.
type str | ExtendedLocationTypes
The type of the extended location.
name String
The name of the extended location.
type String | "CustomLocation"
The type of the extended location.

ExtendedLocationResponse
, ExtendedLocationResponseArgs

Name string
The name of the extended location.
Type string
The type of the extended location.
Name string
The name of the extended location.
Type string
The type of the extended location.
name String
The name of the extended location.
type String
The type of the extended location.
name string
The name of the extended location.
type string
The type of the extended location.
name str
The name of the extended location.
type str
The type of the extended location.
name String
The name of the extended location.
type String
The type of the extended location.

ExtendedLocationTypes
, ExtendedLocationTypesArgs

CustomLocation
CustomLocation
ExtendedLocationTypesCustomLocation
CustomLocation
CustomLocation
CustomLocation
CustomLocation
CustomLocation
CUSTOM_LOCATION
CustomLocation
"CustomLocation"
CustomLocation

IpAllocationMethodEnum
, IpAllocationMethodEnumArgs

Dynamic
Dynamic
Static
Static
IpAllocationMethodEnumDynamic
Dynamic
IpAllocationMethodEnumStatic
Static
Dynamic
Dynamic
Static
Static
Dynamic
Dynamic
Static
Static
DYNAMIC
Dynamic
STATIC
Static
"Dynamic"
Dynamic
"Static"
Static

NetworkTypeEnum
, NetworkTypeEnumArgs

NAT
NAT
Transparent
Transparent
L2Bridge
L2Bridge
L2Tunnel
L2Tunnel
ICS
ICS
Private
Private
Overlay
Overlay
Internal
Internal
Mirrored
Mirrored
NetworkTypeEnumNAT
NAT
NetworkTypeEnumTransparent
Transparent
NetworkTypeEnumL2Bridge
L2Bridge
NetworkTypeEnumL2Tunnel
L2Tunnel
NetworkTypeEnumICS
ICS
NetworkTypeEnumPrivate
Private
NetworkTypeEnumOverlay
Overlay
NetworkTypeEnumInternal
Internal
NetworkTypeEnumMirrored
Mirrored
NAT
NAT
Transparent
Transparent
L2Bridge
L2Bridge
L2Tunnel
L2Tunnel
ICS
ICS
Private
Private
Overlay
Overlay
Internal
Internal
Mirrored
Mirrored
NAT
NAT
Transparent
Transparent
L2Bridge
L2Bridge
L2Tunnel
L2Tunnel
ICS
ICS
Private
Private
Overlay
Overlay
Internal
Internal
Mirrored
Mirrored
NAT
NAT
TRANSPARENT
Transparent
L2_BRIDGE
L2Bridge
L2_TUNNEL
L2Tunnel
ICS
ICS
PRIVATE
Private
OVERLAY
Overlay
INTERNAL
Internal
MIRRORED
Mirrored
"NAT"
NAT
"Transparent"
Transparent
"L2Bridge"
L2Bridge
"L2Tunnel"
L2Tunnel
"ICS"
ICS
"Private"
Private
"Overlay"
Overlay
"Internal"
Internal
"Mirrored"
Mirrored

SystemDataResponse
, SystemDataResponseArgs

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
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_type str
The type of identity that created the resource.
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.

VirtualNetworkPropertiesDhcpOptions
, VirtualNetworkPropertiesDhcpOptionsArgs

DnsServers List<string>
The list of DNS servers IP addresses.
DnsServers []string
The list of DNS servers IP addresses.
dnsServers List<String>
The list of DNS servers IP addresses.
dnsServers string[]
The list of DNS servers IP addresses.
dns_servers Sequence[str]
The list of DNS servers IP addresses.
dnsServers List<String>
The list of DNS servers IP addresses.

VirtualNetworkPropertiesIpConfigurationReferences
, VirtualNetworkPropertiesIpConfigurationReferencesArgs

Id string
IPConfigurationID
Id string
IPConfigurationID
id String
IPConfigurationID
id string
IPConfigurationID
id str
IPConfigurationID
id String
IPConfigurationID

VirtualNetworkPropertiesResponseDhcpOptions
, VirtualNetworkPropertiesResponseDhcpOptionsArgs

DnsServers List<string>
The list of DNS servers IP addresses.
DnsServers []string
The list of DNS servers IP addresses.
dnsServers List<String>
The list of DNS servers IP addresses.
dnsServers string[]
The list of DNS servers IP addresses.
dns_servers Sequence[str]
The list of DNS servers IP addresses.
dnsServers List<String>
The list of DNS servers IP addresses.

VirtualNetworkPropertiesResponseIpConfigurationReferences
, VirtualNetworkPropertiesResponseIpConfigurationReferencesArgs

Id string
IPConfigurationID
Id string
IPConfigurationID
id String
IPConfigurationID
id string
IPConfigurationID
id str
IPConfigurationID
id String
IPConfigurationID

VirtualNetworkPropertiesResponseRouteTable
, VirtualNetworkPropertiesResponseRouteTableArgs

Id string
Etag - Gets a unique read-only string that changes whenever the resource is updated.
Name string
Name - READ-ONLY; Resource name.
Routes List<Pulumi.AzureNative.AzureStackHCI.Inputs.VirtualNetworkPropertiesResponseRoutes>
Routes - Collection of routes contained within a route table.
Type string
Type - READ-ONLY; Resource type.
Id string
Etag - Gets a unique read-only string that changes whenever the resource is updated.
Name string
Name - READ-ONLY; Resource name.
Routes []VirtualNetworkPropertiesResponseRoutes
Routes - Collection of routes contained within a route table.
Type string
Type - READ-ONLY; Resource type.
id String
Etag - Gets a unique read-only string that changes whenever the resource is updated.
name String
Name - READ-ONLY; Resource name.
routes List<VirtualNetworkPropertiesResponseRoutes>
Routes - Collection of routes contained within a route table.
type String
Type - READ-ONLY; Resource type.
id string
Etag - Gets a unique read-only string that changes whenever the resource is updated.
name string
Name - READ-ONLY; Resource name.
routes VirtualNetworkPropertiesResponseRoutes[]
Routes - Collection of routes contained within a route table.
type string
Type - READ-ONLY; Resource type.
id str
Etag - Gets a unique read-only string that changes whenever the resource is updated.
name str
Name - READ-ONLY; Resource name.
routes Sequence[VirtualNetworkPropertiesResponseRoutes]
Routes - Collection of routes contained within a route table.
type str
Type - READ-ONLY; Resource type.
id String
Etag - Gets a unique read-only string that changes whenever the resource is updated.
name String
Name - READ-ONLY; Resource name.
routes List<Property Map>
Routes - Collection of routes contained within a route table.
type String
Type - READ-ONLY; Resource type.

VirtualNetworkPropertiesResponseRoutes
, VirtualNetworkPropertiesResponseRoutesArgs

AddressPrefix string
AddressPrefix - The destination CIDR to which the route applies.
Name string
Name - name of the subnet
NextHopIpAddress string
NextHopIPAddress - The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.
AddressPrefix string
AddressPrefix - The destination CIDR to which the route applies.
Name string
Name - name of the subnet
NextHopIpAddress string
NextHopIPAddress - The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.
addressPrefix String
AddressPrefix - The destination CIDR to which the route applies.
name String
Name - name of the subnet
nextHopIpAddress String
NextHopIPAddress - The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.
addressPrefix string
AddressPrefix - The destination CIDR to which the route applies.
name string
Name - name of the subnet
nextHopIpAddress string
NextHopIPAddress - The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.
address_prefix str
AddressPrefix - The destination CIDR to which the route applies.
name str
Name - name of the subnet
next_hop_ip_address str
NextHopIPAddress - The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.
addressPrefix String
AddressPrefix - The destination CIDR to which the route applies.
name String
Name - name of the subnet
nextHopIpAddress String
NextHopIPAddress - The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.

VirtualNetworkPropertiesResponseSubnets
, VirtualNetworkPropertiesResponseSubnetsArgs

AddressPrefix string
Cidr for this subnet - IPv4, IPv6
AddressPrefixes List<string>
AddressPrefixes - List of address prefixes for the subnet.
IpAllocationMethod string
IPAllocationMethod - The IP address allocation method. Possible values include: 'Static', 'Dynamic'
IpConfigurationReferences List<Pulumi.AzureNative.AzureStackHCI.Inputs.VirtualNetworkPropertiesResponseIpConfigurationReferences>
IPConfigurationReferences - list of IPConfigurationReferences
Name string
Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
RouteTable Pulumi.AzureNative.AzureStackHCI.Inputs.VirtualNetworkPropertiesResponseRouteTable
RouteTable for the subnet
Vlan int
Vlan to use for the subnet
AddressPrefix string
Cidr for this subnet - IPv4, IPv6
AddressPrefixes []string
AddressPrefixes - List of address prefixes for the subnet.
IpAllocationMethod string
IPAllocationMethod - The IP address allocation method. Possible values include: 'Static', 'Dynamic'
IpConfigurationReferences []VirtualNetworkPropertiesResponseIpConfigurationReferences
IPConfigurationReferences - list of IPConfigurationReferences
Name string
Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
RouteTable VirtualNetworkPropertiesResponseRouteTable
RouteTable for the subnet
Vlan int
Vlan to use for the subnet
addressPrefix String
Cidr for this subnet - IPv4, IPv6
addressPrefixes List<String>
AddressPrefixes - List of address prefixes for the subnet.
ipAllocationMethod String
IPAllocationMethod - The IP address allocation method. Possible values include: 'Static', 'Dynamic'
ipConfigurationReferences List<VirtualNetworkPropertiesResponseIpConfigurationReferences>
IPConfigurationReferences - list of IPConfigurationReferences
name String
Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
routeTable VirtualNetworkPropertiesResponseRouteTable
RouteTable for the subnet
vlan Integer
Vlan to use for the subnet
addressPrefix string
Cidr for this subnet - IPv4, IPv6
addressPrefixes string[]
AddressPrefixes - List of address prefixes for the subnet.
ipAllocationMethod string
IPAllocationMethod - The IP address allocation method. Possible values include: 'Static', 'Dynamic'
ipConfigurationReferences VirtualNetworkPropertiesResponseIpConfigurationReferences[]
IPConfigurationReferences - list of IPConfigurationReferences
name string
Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
routeTable VirtualNetworkPropertiesResponseRouteTable
RouteTable for the subnet
vlan number
Vlan to use for the subnet
address_prefix str
Cidr for this subnet - IPv4, IPv6
address_prefixes Sequence[str]
AddressPrefixes - List of address prefixes for the subnet.
ip_allocation_method str
IPAllocationMethod - The IP address allocation method. Possible values include: 'Static', 'Dynamic'
ip_configuration_references Sequence[VirtualNetworkPropertiesResponseIpConfigurationReferences]
IPConfigurationReferences - list of IPConfigurationReferences
name str
Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
route_table VirtualNetworkPropertiesResponseRouteTable
RouteTable for the subnet
vlan int
Vlan to use for the subnet
addressPrefix String
Cidr for this subnet - IPv4, IPv6
addressPrefixes List<String>
AddressPrefixes - List of address prefixes for the subnet.
ipAllocationMethod String
IPAllocationMethod - The IP address allocation method. Possible values include: 'Static', 'Dynamic'
ipConfigurationReferences List<Property Map>
IPConfigurationReferences - list of IPConfigurationReferences
name String
Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
routeTable Property Map
RouteTable for the subnet
vlan Number
Vlan to use for the subnet

VirtualNetworkPropertiesRouteTable
, VirtualNetworkPropertiesRouteTableArgs

Id string
Etag - Gets a unique read-only string that changes whenever the resource is updated.
Name string
Name - READ-ONLY; Resource name.
Routes List<Pulumi.AzureNative.AzureStackHCI.Inputs.VirtualNetworkPropertiesRoutes>
Routes - Collection of routes contained within a route table.
Type string
Type - READ-ONLY; Resource type.
Id string
Etag - Gets a unique read-only string that changes whenever the resource is updated.
Name string
Name - READ-ONLY; Resource name.
Routes []VirtualNetworkPropertiesRoutes
Routes - Collection of routes contained within a route table.
Type string
Type - READ-ONLY; Resource type.
id String
Etag - Gets a unique read-only string that changes whenever the resource is updated.
name String
Name - READ-ONLY; Resource name.
routes List<VirtualNetworkPropertiesRoutes>
Routes - Collection of routes contained within a route table.
type String
Type - READ-ONLY; Resource type.
id string
Etag - Gets a unique read-only string that changes whenever the resource is updated.
name string
Name - READ-ONLY; Resource name.
routes VirtualNetworkPropertiesRoutes[]
Routes - Collection of routes contained within a route table.
type string
Type - READ-ONLY; Resource type.
id str
Etag - Gets a unique read-only string that changes whenever the resource is updated.
name str
Name - READ-ONLY; Resource name.
routes Sequence[VirtualNetworkPropertiesRoutes]
Routes - Collection of routes contained within a route table.
type str
Type - READ-ONLY; Resource type.
id String
Etag - Gets a unique read-only string that changes whenever the resource is updated.
name String
Name - READ-ONLY; Resource name.
routes List<Property Map>
Routes - Collection of routes contained within a route table.
type String
Type - READ-ONLY; Resource type.

VirtualNetworkPropertiesRoutes
, VirtualNetworkPropertiesRoutesArgs

AddressPrefix string
AddressPrefix - The destination CIDR to which the route applies.
Name string
Name - name of the subnet
NextHopIpAddress string
NextHopIPAddress - The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.
AddressPrefix string
AddressPrefix - The destination CIDR to which the route applies.
Name string
Name - name of the subnet
NextHopIpAddress string
NextHopIPAddress - The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.
addressPrefix String
AddressPrefix - The destination CIDR to which the route applies.
name String
Name - name of the subnet
nextHopIpAddress String
NextHopIPAddress - The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.
addressPrefix string
AddressPrefix - The destination CIDR to which the route applies.
name string
Name - name of the subnet
nextHopIpAddress string
NextHopIPAddress - The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.
address_prefix str
AddressPrefix - The destination CIDR to which the route applies.
name str
Name - name of the subnet
next_hop_ip_address str
NextHopIPAddress - The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.
addressPrefix String
AddressPrefix - The destination CIDR to which the route applies.
name String
Name - name of the subnet
nextHopIpAddress String
NextHopIPAddress - The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.

VirtualNetworkPropertiesSubnets
, VirtualNetworkPropertiesSubnetsArgs

AddressPrefix string
Cidr for this subnet - IPv4, IPv6
AddressPrefixes List<string>
AddressPrefixes - List of address prefixes for the subnet.
IpAllocationMethod string | Pulumi.AzureNative.AzureStackHCI.IpAllocationMethodEnum
IPAllocationMethod - The IP address allocation method. Possible values include: 'Static', 'Dynamic'
IpConfigurationReferences List<Pulumi.AzureNative.AzureStackHCI.Inputs.VirtualNetworkPropertiesIpConfigurationReferences>
IPConfigurationReferences - list of IPConfigurationReferences
Name string
Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
RouteTable Pulumi.AzureNative.AzureStackHCI.Inputs.VirtualNetworkPropertiesRouteTable
RouteTable for the subnet
Vlan int
Vlan to use for the subnet
AddressPrefix string
Cidr for this subnet - IPv4, IPv6
AddressPrefixes []string
AddressPrefixes - List of address prefixes for the subnet.
IpAllocationMethod string | IpAllocationMethodEnum
IPAllocationMethod - The IP address allocation method. Possible values include: 'Static', 'Dynamic'
IpConfigurationReferences []VirtualNetworkPropertiesIpConfigurationReferences
IPConfigurationReferences - list of IPConfigurationReferences
Name string
Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
RouteTable VirtualNetworkPropertiesRouteTable
RouteTable for the subnet
Vlan int
Vlan to use for the subnet
addressPrefix String
Cidr for this subnet - IPv4, IPv6
addressPrefixes List<String>
AddressPrefixes - List of address prefixes for the subnet.
ipAllocationMethod String | IpAllocationMethodEnum
IPAllocationMethod - The IP address allocation method. Possible values include: 'Static', 'Dynamic'
ipConfigurationReferences List<VirtualNetworkPropertiesIpConfigurationReferences>
IPConfigurationReferences - list of IPConfigurationReferences
name String
Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
routeTable VirtualNetworkPropertiesRouteTable
RouteTable for the subnet
vlan Integer
Vlan to use for the subnet
addressPrefix string
Cidr for this subnet - IPv4, IPv6
addressPrefixes string[]
AddressPrefixes - List of address prefixes for the subnet.
ipAllocationMethod string | IpAllocationMethodEnum
IPAllocationMethod - The IP address allocation method. Possible values include: 'Static', 'Dynamic'
ipConfigurationReferences VirtualNetworkPropertiesIpConfigurationReferences[]
IPConfigurationReferences - list of IPConfigurationReferences
name string
Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
routeTable VirtualNetworkPropertiesRouteTable
RouteTable for the subnet
vlan number
Vlan to use for the subnet
address_prefix str
Cidr for this subnet - IPv4, IPv6
address_prefixes Sequence[str]
AddressPrefixes - List of address prefixes for the subnet.
ip_allocation_method str | IpAllocationMethodEnum
IPAllocationMethod - The IP address allocation method. Possible values include: 'Static', 'Dynamic'
ip_configuration_references Sequence[VirtualNetworkPropertiesIpConfigurationReferences]
IPConfigurationReferences - list of IPConfigurationReferences
name str
Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
route_table VirtualNetworkPropertiesRouteTable
RouteTable for the subnet
vlan int
Vlan to use for the subnet
addressPrefix String
Cidr for this subnet - IPv4, IPv6
addressPrefixes List<String>
AddressPrefixes - List of address prefixes for the subnet.
ipAllocationMethod String | "Dynamic" | "Static"
IPAllocationMethod - The IP address allocation method. Possible values include: 'Static', 'Dynamic'
ipConfigurationReferences List<Property Map>
IPConfigurationReferences - list of IPConfigurationReferences
name String
Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.
routeTable Property Map
RouteTable for the subnet
vlan Number
Vlan to use for the subnet

VirtualNetworkStatusResponse
, VirtualNetworkStatusResponseArgs

ErrorCode string
VirtualNetwork provisioning error code
ErrorMessage string
Descriptive error message
ProvisioningStatus VirtualNetworkStatusResponseProvisioningStatus
errorCode String
VirtualNetwork provisioning error code
errorMessage String
Descriptive error message
provisioningStatus VirtualNetworkStatusResponseProvisioningStatus
errorCode string
VirtualNetwork provisioning error code
errorMessage string
Descriptive error message
provisioningStatus VirtualNetworkStatusResponseProvisioningStatus
error_code str
VirtualNetwork provisioning error code
error_message str
Descriptive error message
provisioning_status VirtualNetworkStatusResponseProvisioningStatus
errorCode String
VirtualNetwork provisioning error code
errorMessage String
Descriptive error message
provisioningStatus Property Map

VirtualNetworkStatusResponseProvisioningStatus
, VirtualNetworkStatusResponseProvisioningStatusArgs

OperationId string
The ID of the operation performed on the virtual network
Status string
The status of the operation performed on the virtual network [Succeeded, Failed, InProgress]
OperationId string
The ID of the operation performed on the virtual network
Status string
The status of the operation performed on the virtual network [Succeeded, Failed, InProgress]
operationId String
The ID of the operation performed on the virtual network
status String
The status of the operation performed on the virtual network [Succeeded, Failed, InProgress]
operationId string
The ID of the operation performed on the virtual network
status string
The status of the operation performed on the virtual network [Succeeded, Failed, InProgress]
operation_id str
The ID of the operation performed on the virtual network
status str
The status of the operation performed on the virtual network [Succeeded, Failed, InProgress]
operationId String
The ID of the operation performed on the virtual network
status String
The status of the operation performed on the virtual network [Succeeded, Failed, InProgress]

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:azurestackhci:VirtualNetwork test-vnet /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualNetworks/{virtualNetworkName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi