1. Packages
  2. Azure Native
  3. API Docs
  4. devtestlab
  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.devtestlab.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

A virtual network.

Uses Azure REST API version 2018-09-15. In version 2.x of the Azure Native provider, it used API version 2018-09-15.

Example Usage

VirtualNetworks_CreateOrUpdate

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

return await Deployment.RunAsync(() => 
{
    var virtualNetwork = new AzureNative.DevTestLab.VirtualNetwork("virtualNetwork", new()
    {
        LabName = "{labName}",
        Location = "{location}",
        Name = "{virtualNetworkName}",
        ResourceGroupName = "resourceGroupName",
        Tags = 
        {
            { "tagName1", "tagValue1" },
        },
    });

});
Copy
package main

import (
	devtestlab "github.com/pulumi/pulumi-azure-native-sdk/devtestlab/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := devtestlab.NewVirtualNetwork(ctx, "virtualNetwork", &devtestlab.VirtualNetworkArgs{
			LabName:           pulumi.String("{labName}"),
			Location:          pulumi.String("{location}"),
			Name:              pulumi.String("{virtualNetworkName}"),
			ResourceGroupName: pulumi.String("resourceGroupName"),
			Tags: pulumi.StringMap{
				"tagName1": pulumi.String("tagValue1"),
			},
		})
		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.devtestlab.VirtualNetwork;
import com.pulumi.azurenative.devtestlab.VirtualNetworkArgs;
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()
            .labName("{labName}")
            .location("{location}")
            .name("{virtualNetworkName}")
            .resourceGroupName("resourceGroupName")
            .tags(Map.of("tagName1", "tagValue1"))
            .build());

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

const virtualNetwork = new azure_native.devtestlab.VirtualNetwork("virtualNetwork", {
    labName: "{labName}",
    location: "{location}",
    name: "{virtualNetworkName}",
    resourceGroupName: "resourceGroupName",
    tags: {
        tagName1: "tagValue1",
    },
});
Copy
import pulumi
import pulumi_azure_native as azure_native

virtual_network = azure_native.devtestlab.VirtualNetwork("virtualNetwork",
    lab_name="{labName}",
    location="{location}",
    name="{virtualNetworkName}",
    resource_group_name="resourceGroupName",
    tags={
        "tagName1": "tagValue1",
    })
Copy
resources:
  virtualNetwork:
    type: azure-native:devtestlab:VirtualNetwork
    properties:
      labName: '{labName}'
      location: '{location}'
      name: '{virtualNetworkName}'
      resourceGroupName: resourceGroupName
      tags:
        tagName1: tagValue1
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,
                   lab_name: Optional[str] = None,
                   resource_group_name: Optional[str] = None,
                   allowed_subnets: Optional[Sequence[SubnetArgs]] = None,
                   description: Optional[str] = None,
                   external_provider_resource_id: Optional[str] = None,
                   location: Optional[str] = None,
                   name: Optional[str] = None,
                   subnet_overrides: Optional[Sequence[SubnetOverrideArgs]] = None,
                   tags: Optional[Mapping[str, 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:devtestlab: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 examplevirtualNetworkResourceResourceFromDevtestlab = new AzureNative.DevTestLab.VirtualNetwork("examplevirtualNetworkResourceResourceFromDevtestlab", new()
{
    LabName = "string",
    ResourceGroupName = "string",
    AllowedSubnets = new[]
    {
        new AzureNative.DevTestLab.Inputs.SubnetArgs
        {
            AllowPublicIp = "string",
            LabSubnetName = "string",
            ResourceId = "string",
        },
    },
    Description = "string",
    ExternalProviderResourceId = "string",
    Location = "string",
    Name = "string",
    SubnetOverrides = new[]
    {
        new AzureNative.DevTestLab.Inputs.SubnetOverrideArgs
        {
            LabSubnetName = "string",
            ResourceId = "string",
            SharedPublicIpAddressConfiguration = new AzureNative.DevTestLab.Inputs.SubnetSharedPublicIpAddressConfigurationArgs
            {
                AllowedPorts = new[]
                {
                    new AzureNative.DevTestLab.Inputs.PortArgs
                    {
                        BackendPort = 0,
                        TransportProtocol = "string",
                    },
                },
            },
            UseInVmCreationPermission = "string",
            UsePublicIpAddressPermission = "string",
            VirtualNetworkPoolName = "string",
        },
    },
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := devtestlab.NewVirtualNetwork(ctx, "examplevirtualNetworkResourceResourceFromDevtestlab", &devtestlab.VirtualNetworkArgs{
	LabName:           pulumi.String("string"),
	ResourceGroupName: pulumi.String("string"),
	AllowedSubnets: devtestlab.SubnetArray{
		&devtestlab.SubnetArgs{
			AllowPublicIp: pulumi.String("string"),
			LabSubnetName: pulumi.String("string"),
			ResourceId:    pulumi.String("string"),
		},
	},
	Description:                pulumi.String("string"),
	ExternalProviderResourceId: pulumi.String("string"),
	Location:                   pulumi.String("string"),
	Name:                       pulumi.String("string"),
	SubnetOverrides: devtestlab.SubnetOverrideArray{
		&devtestlab.SubnetOverrideArgs{
			LabSubnetName: pulumi.String("string"),
			ResourceId:    pulumi.String("string"),
			SharedPublicIpAddressConfiguration: &devtestlab.SubnetSharedPublicIpAddressConfigurationArgs{
				AllowedPorts: devtestlab.PortArray{
					&devtestlab.PortArgs{
						BackendPort:       pulumi.Int(0),
						TransportProtocol: pulumi.String("string"),
					},
				},
			},
			UseInVmCreationPermission:    pulumi.String("string"),
			UsePublicIpAddressPermission: pulumi.String("string"),
			VirtualNetworkPoolName:       pulumi.String("string"),
		},
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var examplevirtualNetworkResourceResourceFromDevtestlab = new VirtualNetwork("examplevirtualNetworkResourceResourceFromDevtestlab", VirtualNetworkArgs.builder()
    .labName("string")
    .resourceGroupName("string")
    .allowedSubnets(SubnetArgs.builder()
        .allowPublicIp("string")
        .labSubnetName("string")
        .resourceId("string")
        .build())
    .description("string")
    .externalProviderResourceId("string")
    .location("string")
    .name("string")
    .subnetOverrides(SubnetOverrideArgs.builder()
        .labSubnetName("string")
        .resourceId("string")
        .sharedPublicIpAddressConfiguration(SubnetSharedPublicIpAddressConfigurationArgs.builder()
            .allowedPorts(PortArgs.builder()
                .backendPort(0)
                .transportProtocol("string")
                .build())
            .build())
        .useInVmCreationPermission("string")
        .usePublicIpAddressPermission("string")
        .virtualNetworkPoolName("string")
        .build())
    .tags(Map.of("string", "string"))
    .build());
Copy
examplevirtual_network_resource_resource_from_devtestlab = azure_native.devtestlab.VirtualNetwork("examplevirtualNetworkResourceResourceFromDevtestlab",
    lab_name="string",
    resource_group_name="string",
    allowed_subnets=[{
        "allow_public_ip": "string",
        "lab_subnet_name": "string",
        "resource_id": "string",
    }],
    description="string",
    external_provider_resource_id="string",
    location="string",
    name="string",
    subnet_overrides=[{
        "lab_subnet_name": "string",
        "resource_id": "string",
        "shared_public_ip_address_configuration": {
            "allowed_ports": [{
                "backend_port": 0,
                "transport_protocol": "string",
            }],
        },
        "use_in_vm_creation_permission": "string",
        "use_public_ip_address_permission": "string",
        "virtual_network_pool_name": "string",
    }],
    tags={
        "string": "string",
    })
Copy
const examplevirtualNetworkResourceResourceFromDevtestlab = new azure_native.devtestlab.VirtualNetwork("examplevirtualNetworkResourceResourceFromDevtestlab", {
    labName: "string",
    resourceGroupName: "string",
    allowedSubnets: [{
        allowPublicIp: "string",
        labSubnetName: "string",
        resourceId: "string",
    }],
    description: "string",
    externalProviderResourceId: "string",
    location: "string",
    name: "string",
    subnetOverrides: [{
        labSubnetName: "string",
        resourceId: "string",
        sharedPublicIpAddressConfiguration: {
            allowedPorts: [{
                backendPort: 0,
                transportProtocol: "string",
            }],
        },
        useInVmCreationPermission: "string",
        usePublicIpAddressPermission: "string",
        virtualNetworkPoolName: "string",
    }],
    tags: {
        string: "string",
    },
});
Copy
type: azure-native:devtestlab:VirtualNetwork
properties:
    allowedSubnets:
        - allowPublicIp: string
          labSubnetName: string
          resourceId: string
    description: string
    externalProviderResourceId: string
    labName: string
    location: string
    name: string
    resourceGroupName: string
    subnetOverrides:
        - labSubnetName: string
          resourceId: string
          sharedPublicIpAddressConfiguration:
            allowedPorts:
                - backendPort: 0
                  transportProtocol: string
          useInVmCreationPermission: string
          usePublicIpAddressPermission: string
          virtualNetworkPoolName: string
    tags:
        string: 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:

LabName
This property is required.
Changes to this property will trigger replacement.
string
The name of the lab.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
AllowedSubnets List<Pulumi.AzureNative.DevTestLab.Inputs.Subnet>
The allowed subnets of the virtual network.
Description string
The description of the virtual network.
ExternalProviderResourceId string
The Microsoft.Network resource identifier of the virtual network.
Location string
The location of the resource.
Name Changes to this property will trigger replacement. string
The name of the virtual network.
SubnetOverrides List<Pulumi.AzureNative.DevTestLab.Inputs.SubnetOverride>
The subnet overrides of the virtual network.
Tags Dictionary<string, string>
The tags of the resource.
LabName
This property is required.
Changes to this property will trigger replacement.
string
The name of the lab.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
AllowedSubnets []SubnetArgs
The allowed subnets of the virtual network.
Description string
The description of the virtual network.
ExternalProviderResourceId string
The Microsoft.Network resource identifier of the virtual network.
Location string
The location of the resource.
Name Changes to this property will trigger replacement. string
The name of the virtual network.
SubnetOverrides []SubnetOverrideArgs
The subnet overrides of the virtual network.
Tags map[string]string
The tags of the resource.
labName
This property is required.
Changes to this property will trigger replacement.
String
The name of the lab.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
allowedSubnets List<Subnet>
The allowed subnets of the virtual network.
description String
The description of the virtual network.
externalProviderResourceId String
The Microsoft.Network resource identifier of the virtual network.
location String
The location of the resource.
name Changes to this property will trigger replacement. String
The name of the virtual network.
subnetOverrides List<SubnetOverride>
The subnet overrides of the virtual network.
tags Map<String,String>
The tags of the resource.
labName
This property is required.
Changes to this property will trigger replacement.
string
The name of the lab.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
allowedSubnets Subnet[]
The allowed subnets of the virtual network.
description string
The description of the virtual network.
externalProviderResourceId string
The Microsoft.Network resource identifier of the virtual network.
location string
The location of the resource.
name Changes to this property will trigger replacement. string
The name of the virtual network.
subnetOverrides SubnetOverride[]
The subnet overrides of the virtual network.
tags {[key: string]: string}
The tags of the resource.
lab_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the lab.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group.
allowed_subnets Sequence[SubnetArgs]
The allowed subnets of the virtual network.
description str
The description of the virtual network.
external_provider_resource_id str
The Microsoft.Network resource identifier of the virtual network.
location str
The location of the resource.
name Changes to this property will trigger replacement. str
The name of the virtual network.
subnet_overrides Sequence[SubnetOverrideArgs]
The subnet overrides of the virtual network.
tags Mapping[str, str]
The tags of the resource.
labName
This property is required.
Changes to this property will trigger replacement.
String
The name of the lab.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
allowedSubnets List<Property Map>
The allowed subnets of the virtual network.
description String
The description of the virtual network.
externalProviderResourceId String
The Microsoft.Network resource identifier of the virtual network.
location String
The location of the resource.
name Changes to this property will trigger replacement. String
The name of the virtual network.
subnetOverrides List<Property Map>
The subnet overrides of the virtual network.
tags Map<String>
The tags of the resource.

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.
CreatedDate string
The creation date of the virtual network.
ExternalSubnets List<Pulumi.AzureNative.DevTestLab.Outputs.ExternalSubnetResponse>
The external subnet properties.
Id string
The provider-assigned unique ID for this managed resource.
ProvisioningState string
The provisioning status of the resource.
Type string
The type of the resource.
UniqueIdentifier string
The unique immutable identifier of a resource (Guid).
AzureApiVersion string
The Azure API version of the resource.
CreatedDate string
The creation date of the virtual network.
ExternalSubnets []ExternalSubnetResponse
The external subnet properties.
Id string
The provider-assigned unique ID for this managed resource.
ProvisioningState string
The provisioning status of the resource.
Type string
The type of the resource.
UniqueIdentifier string
The unique immutable identifier of a resource (Guid).
azureApiVersion String
The Azure API version of the resource.
createdDate String
The creation date of the virtual network.
externalSubnets List<ExternalSubnetResponse>
The external subnet properties.
id String
The provider-assigned unique ID for this managed resource.
provisioningState String
The provisioning status of the resource.
type String
The type of the resource.
uniqueIdentifier String
The unique immutable identifier of a resource (Guid).
azureApiVersion string
The Azure API version of the resource.
createdDate string
The creation date of the virtual network.
externalSubnets ExternalSubnetResponse[]
The external subnet properties.
id string
The provider-assigned unique ID for this managed resource.
provisioningState string
The provisioning status of the resource.
type string
The type of the resource.
uniqueIdentifier string
The unique immutable identifier of a resource (Guid).
azure_api_version str
The Azure API version of the resource.
created_date str
The creation date of the virtual network.
external_subnets Sequence[ExternalSubnetResponse]
The external subnet properties.
id str
The provider-assigned unique ID for this managed resource.
provisioning_state str
The provisioning status of the resource.
type str
The type of the resource.
unique_identifier str
The unique immutable identifier of a resource (Guid).
azureApiVersion String
The Azure API version of the resource.
createdDate String
The creation date of the virtual network.
externalSubnets List<Property Map>
The external subnet properties.
id String
The provider-assigned unique ID for this managed resource.
provisioningState String
The provisioning status of the resource.
type String
The type of the resource.
uniqueIdentifier String
The unique immutable identifier of a resource (Guid).

Supporting Types

ExternalSubnetResponse
, ExternalSubnetResponseArgs

Id string
Gets or sets the identifier.
Name string
Gets or sets the name.
Id string
Gets or sets the identifier.
Name string
Gets or sets the name.
id String
Gets or sets the identifier.
name String
Gets or sets the name.
id string
Gets or sets the identifier.
name string
Gets or sets the name.
id str
Gets or sets the identifier.
name str
Gets or sets the name.
id String
Gets or sets the identifier.
name String
Gets or sets the name.

Port
, PortArgs

BackendPort int
Backend port of the target virtual machine.
TransportProtocol string | Pulumi.AzureNative.DevTestLab.TransportProtocol
Protocol type of the port.
BackendPort int
Backend port of the target virtual machine.
TransportProtocol string | TransportProtocol
Protocol type of the port.
backendPort Integer
Backend port of the target virtual machine.
transportProtocol String | TransportProtocol
Protocol type of the port.
backendPort number
Backend port of the target virtual machine.
transportProtocol string | TransportProtocol
Protocol type of the port.
backend_port int
Backend port of the target virtual machine.
transport_protocol str | TransportProtocol
Protocol type of the port.
backendPort Number
Backend port of the target virtual machine.
transportProtocol String | "Tcp" | "Udp"
Protocol type of the port.

PortResponse
, PortResponseArgs

BackendPort int
Backend port of the target virtual machine.
TransportProtocol string
Protocol type of the port.
BackendPort int
Backend port of the target virtual machine.
TransportProtocol string
Protocol type of the port.
backendPort Integer
Backend port of the target virtual machine.
transportProtocol String
Protocol type of the port.
backendPort number
Backend port of the target virtual machine.
transportProtocol string
Protocol type of the port.
backend_port int
Backend port of the target virtual machine.
transport_protocol str
Protocol type of the port.
backendPort Number
Backend port of the target virtual machine.
transportProtocol String
Protocol type of the port.

Subnet
, SubnetArgs

AllowPublicIp string | Pulumi.AzureNative.DevTestLab.UsagePermissionType
The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
LabSubnetName string
The name of the subnet as seen in the lab.
ResourceId string
The resource ID of the subnet.
AllowPublicIp string | UsagePermissionType
The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
LabSubnetName string
The name of the subnet as seen in the lab.
ResourceId string
The resource ID of the subnet.
allowPublicIp String | UsagePermissionType
The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
labSubnetName String
The name of the subnet as seen in the lab.
resourceId String
The resource ID of the subnet.
allowPublicIp string | UsagePermissionType
The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
labSubnetName string
The name of the subnet as seen in the lab.
resourceId string
The resource ID of the subnet.
allow_public_ip str | UsagePermissionType
The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
lab_subnet_name str
The name of the subnet as seen in the lab.
resource_id str
The resource ID of the subnet.
allowPublicIp String | "Default" | "Deny" | "Allow"
The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
labSubnetName String
The name of the subnet as seen in the lab.
resourceId String
The resource ID of the subnet.

SubnetOverride
, SubnetOverrideArgs

LabSubnetName string
The name given to the subnet within the lab.
ResourceId string
The resource ID of the subnet.
SharedPublicIpAddressConfiguration Pulumi.AzureNative.DevTestLab.Inputs.SubnetSharedPublicIpAddressConfiguration
Properties that virtual machines on this subnet will share.
UseInVmCreationPermission string | Pulumi.AzureNative.DevTestLab.UsagePermissionType
Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
UsePublicIpAddressPermission string | Pulumi.AzureNative.DevTestLab.UsagePermissionType
Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
VirtualNetworkPoolName string
The virtual network pool associated with this subnet.
LabSubnetName string
The name given to the subnet within the lab.
ResourceId string
The resource ID of the subnet.
SharedPublicIpAddressConfiguration SubnetSharedPublicIpAddressConfiguration
Properties that virtual machines on this subnet will share.
UseInVmCreationPermission string | UsagePermissionType
Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
UsePublicIpAddressPermission string | UsagePermissionType
Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
VirtualNetworkPoolName string
The virtual network pool associated with this subnet.
labSubnetName String
The name given to the subnet within the lab.
resourceId String
The resource ID of the subnet.
sharedPublicIpAddressConfiguration SubnetSharedPublicIpAddressConfiguration
Properties that virtual machines on this subnet will share.
useInVmCreationPermission String | UsagePermissionType
Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
usePublicIpAddressPermission String | UsagePermissionType
Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
virtualNetworkPoolName String
The virtual network pool associated with this subnet.
labSubnetName string
The name given to the subnet within the lab.
resourceId string
The resource ID of the subnet.
sharedPublicIpAddressConfiguration SubnetSharedPublicIpAddressConfiguration
Properties that virtual machines on this subnet will share.
useInVmCreationPermission string | UsagePermissionType
Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
usePublicIpAddressPermission string | UsagePermissionType
Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
virtualNetworkPoolName string
The virtual network pool associated with this subnet.
lab_subnet_name str
The name given to the subnet within the lab.
resource_id str
The resource ID of the subnet.
shared_public_ip_address_configuration SubnetSharedPublicIpAddressConfiguration
Properties that virtual machines on this subnet will share.
use_in_vm_creation_permission str | UsagePermissionType
Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
use_public_ip_address_permission str | UsagePermissionType
Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
virtual_network_pool_name str
The virtual network pool associated with this subnet.
labSubnetName String
The name given to the subnet within the lab.
resourceId String
The resource ID of the subnet.
sharedPublicIpAddressConfiguration Property Map
Properties that virtual machines on this subnet will share.
useInVmCreationPermission String | "Default" | "Deny" | "Allow"
Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
usePublicIpAddressPermission String | "Default" | "Deny" | "Allow"
Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
virtualNetworkPoolName String
The virtual network pool associated with this subnet.

SubnetOverrideResponse
, SubnetOverrideResponseArgs

LabSubnetName string
The name given to the subnet within the lab.
ResourceId string
The resource ID of the subnet.
SharedPublicIpAddressConfiguration Pulumi.AzureNative.DevTestLab.Inputs.SubnetSharedPublicIpAddressConfigurationResponse
Properties that virtual machines on this subnet will share.
UseInVmCreationPermission string
Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
UsePublicIpAddressPermission string
Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
VirtualNetworkPoolName string
The virtual network pool associated with this subnet.
LabSubnetName string
The name given to the subnet within the lab.
ResourceId string
The resource ID of the subnet.
SharedPublicIpAddressConfiguration SubnetSharedPublicIpAddressConfigurationResponse
Properties that virtual machines on this subnet will share.
UseInVmCreationPermission string
Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
UsePublicIpAddressPermission string
Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
VirtualNetworkPoolName string
The virtual network pool associated with this subnet.
labSubnetName String
The name given to the subnet within the lab.
resourceId String
The resource ID of the subnet.
sharedPublicIpAddressConfiguration SubnetSharedPublicIpAddressConfigurationResponse
Properties that virtual machines on this subnet will share.
useInVmCreationPermission String
Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
usePublicIpAddressPermission String
Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
virtualNetworkPoolName String
The virtual network pool associated with this subnet.
labSubnetName string
The name given to the subnet within the lab.
resourceId string
The resource ID of the subnet.
sharedPublicIpAddressConfiguration SubnetSharedPublicIpAddressConfigurationResponse
Properties that virtual machines on this subnet will share.
useInVmCreationPermission string
Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
usePublicIpAddressPermission string
Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
virtualNetworkPoolName string
The virtual network pool associated with this subnet.
lab_subnet_name str
The name given to the subnet within the lab.
resource_id str
The resource ID of the subnet.
shared_public_ip_address_configuration SubnetSharedPublicIpAddressConfigurationResponse
Properties that virtual machines on this subnet will share.
use_in_vm_creation_permission str
Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
use_public_ip_address_permission str
Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
virtual_network_pool_name str
The virtual network pool associated with this subnet.
labSubnetName String
The name given to the subnet within the lab.
resourceId String
The resource ID of the subnet.
sharedPublicIpAddressConfiguration Property Map
Properties that virtual machines on this subnet will share.
useInVmCreationPermission String
Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
usePublicIpAddressPermission String
Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
virtualNetworkPoolName String
The virtual network pool associated with this subnet.

SubnetResponse
, SubnetResponseArgs

AllowPublicIp string
The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
LabSubnetName string
The name of the subnet as seen in the lab.
ResourceId string
The resource ID of the subnet.
AllowPublicIp string
The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
LabSubnetName string
The name of the subnet as seen in the lab.
ResourceId string
The resource ID of the subnet.
allowPublicIp String
The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
labSubnetName String
The name of the subnet as seen in the lab.
resourceId String
The resource ID of the subnet.
allowPublicIp string
The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
labSubnetName string
The name of the subnet as seen in the lab.
resourceId string
The resource ID of the subnet.
allow_public_ip str
The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
lab_subnet_name str
The name of the subnet as seen in the lab.
resource_id str
The resource ID of the subnet.
allowPublicIp String
The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
labSubnetName String
The name of the subnet as seen in the lab.
resourceId String
The resource ID of the subnet.

SubnetSharedPublicIpAddressConfiguration
, SubnetSharedPublicIpAddressConfigurationArgs

AllowedPorts List<Pulumi.AzureNative.DevTestLab.Inputs.Port>
Backend ports that virtual machines on this subnet are allowed to expose
AllowedPorts []Port
Backend ports that virtual machines on this subnet are allowed to expose
allowedPorts List<Port>
Backend ports that virtual machines on this subnet are allowed to expose
allowedPorts Port[]
Backend ports that virtual machines on this subnet are allowed to expose
allowed_ports Sequence[Port]
Backend ports that virtual machines on this subnet are allowed to expose
allowedPorts List<Property Map>
Backend ports that virtual machines on this subnet are allowed to expose

SubnetSharedPublicIpAddressConfigurationResponse
, SubnetSharedPublicIpAddressConfigurationResponseArgs

AllowedPorts List<Pulumi.AzureNative.DevTestLab.Inputs.PortResponse>
Backend ports that virtual machines on this subnet are allowed to expose
AllowedPorts []PortResponse
Backend ports that virtual machines on this subnet are allowed to expose
allowedPorts List<PortResponse>
Backend ports that virtual machines on this subnet are allowed to expose
allowedPorts PortResponse[]
Backend ports that virtual machines on this subnet are allowed to expose
allowed_ports Sequence[PortResponse]
Backend ports that virtual machines on this subnet are allowed to expose
allowedPorts List<Property Map>
Backend ports that virtual machines on this subnet are allowed to expose

TransportProtocol
, TransportProtocolArgs

Tcp
Tcp
Udp
Udp
TransportProtocolTcp
Tcp
TransportProtocolUdp
Udp
Tcp
Tcp
Udp
Udp
Tcp
Tcp
Udp
Udp
TCP
Tcp
UDP
Udp
"Tcp"
Tcp
"Udp"
Udp

UsagePermissionType
, UsagePermissionTypeArgs

Default
Default
Deny
Deny
Allow
Allow
UsagePermissionTypeDefault
Default
UsagePermissionTypeDeny
Deny
UsagePermissionTypeAllow
Allow
Default
Default
Deny
Deny
Allow
Allow
Default
Default
Deny
Deny
Allow
Allow
DEFAULT
Default
DENY
Deny
ALLOW
Allow
"Default"
Default
"Deny"
Deny
"Allow"
Allow

Import

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

$ pulumi import azure-native:devtestlab:VirtualNetwork {virtualNetworkName} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualnetworks/{name} 
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