We recommend using Azure Native.
azure.devtest.VirtualNetwork
Explore with Pulumi AI
Manages a Virtual Network within a DevTest Lab.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const exampleLab = new azure.devtest.Lab("example", {
    name: "example-devtestlab",
    location: example.location,
    resourceGroupName: example.name,
    tags: {
        Sydney: "Australia",
    },
});
const exampleVirtualNetwork = new azure.devtest.VirtualNetwork("example", {
    name: "example-network",
    labName: exampleLab.name,
    resourceGroupName: example.name,
    subnet: {
        usePublicIpAddress: "Allow",
        useInVirtualMachineCreation: "Allow",
    },
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
example_lab = azure.devtest.Lab("example",
    name="example-devtestlab",
    location=example.location,
    resource_group_name=example.name,
    tags={
        "Sydney": "Australia",
    })
example_virtual_network = azure.devtest.VirtualNetwork("example",
    name="example-network",
    lab_name=example_lab.name,
    resource_group_name=example.name,
    subnet={
        "use_public_ip_address": "Allow",
        "use_in_virtual_machine_creation": "Allow",
    })
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/devtest"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleLab, err := devtest.NewLab(ctx, "example", &devtest.LabArgs{
			Name:              pulumi.String("example-devtestlab"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			Tags: pulumi.StringMap{
				"Sydney": pulumi.String("Australia"),
			},
		})
		if err != nil {
			return err
		}
		_, err = devtest.NewVirtualNetwork(ctx, "example", &devtest.VirtualNetworkArgs{
			Name:              pulumi.String("example-network"),
			LabName:           exampleLab.Name,
			ResourceGroupName: example.Name,
			Subnet: &devtest.VirtualNetworkSubnetArgs{
				UsePublicIpAddress:          pulumi.String("Allow"),
				UseInVirtualMachineCreation: pulumi.String("Allow"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });
    var exampleLab = new Azure.DevTest.Lab("example", new()
    {
        Name = "example-devtestlab",
        Location = example.Location,
        ResourceGroupName = example.Name,
        Tags = 
        {
            { "Sydney", "Australia" },
        },
    });
    var exampleVirtualNetwork = new Azure.DevTest.VirtualNetwork("example", new()
    {
        Name = "example-network",
        LabName = exampleLab.Name,
        ResourceGroupName = example.Name,
        Subnet = new Azure.DevTest.Inputs.VirtualNetworkSubnetArgs
        {
            UsePublicIpAddress = "Allow",
            UseInVirtualMachineCreation = "Allow",
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.devtest.Lab;
import com.pulumi.azure.devtest.LabArgs;
import com.pulumi.azure.devtest.VirtualNetwork;
import com.pulumi.azure.devtest.VirtualNetworkArgs;
import com.pulumi.azure.devtest.inputs.VirtualNetworkSubnetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-resources")
            .location("West Europe")
            .build());
        var exampleLab = new Lab("exampleLab", LabArgs.builder()
            .name("example-devtestlab")
            .location(example.location())
            .resourceGroupName(example.name())
            .tags(Map.of("Sydney", "Australia"))
            .build());
        var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
            .name("example-network")
            .labName(exampleLab.name())
            .resourceGroupName(example.name())
            .subnet(VirtualNetworkSubnetArgs.builder()
                .usePublicIpAddress("Allow")
                .useInVirtualMachineCreation("Allow")
                .build())
            .build());
    }
}
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resources
      location: West Europe
  exampleLab:
    type: azure:devtest:Lab
    name: example
    properties:
      name: example-devtestlab
      location: ${example.location}
      resourceGroupName: ${example.name}
      tags:
        Sydney: Australia
  exampleVirtualNetwork:
    type: azure:devtest:VirtualNetwork
    name: example
    properties:
      name: example-network
      labName: ${exampleLab.name}
      resourceGroupName: ${example.name}
      subnet:
        usePublicIpAddress: Allow
        useInVirtualMachineCreation: Allow
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,
                   description: Optional[str] = None,
                   name: Optional[str] = None,
                   subnet: Optional[VirtualNetworkSubnetArgs] = 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:devtest:VirtualNetwork
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 VirtualNetworkArgs
- 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 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 string
- The unique name of the resource.
- args VirtualNetworkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VirtualNetworkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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 Azure.DevTest.VirtualNetwork("virtualNetworkResource", new()
{
    LabName = "string",
    ResourceGroupName = "string",
    Description = "string",
    Name = "string",
    Subnet = new Azure.DevTest.Inputs.VirtualNetworkSubnetArgs
    {
        Name = "string",
        SharedPublicIpAddress = new Azure.DevTest.Inputs.VirtualNetworkSubnetSharedPublicIpAddressArgs
        {
            AllowedPorts = new[]
            {
                new Azure.DevTest.Inputs.VirtualNetworkSubnetSharedPublicIpAddressAllowedPortArgs
                {
                    BackendPort = 0,
                    TransportProtocol = "string",
                },
            },
        },
        UseInVirtualMachineCreation = "string",
        UsePublicIpAddress = "string",
    },
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := devtest.NewVirtualNetwork(ctx, "virtualNetworkResource", &devtest.VirtualNetworkArgs{
	LabName:           pulumi.String("string"),
	ResourceGroupName: pulumi.String("string"),
	Description:       pulumi.String("string"),
	Name:              pulumi.String("string"),
	Subnet: &devtest.VirtualNetworkSubnetArgs{
		Name: pulumi.String("string"),
		SharedPublicIpAddress: &devtest.VirtualNetworkSubnetSharedPublicIpAddressArgs{
			AllowedPorts: devtest.VirtualNetworkSubnetSharedPublicIpAddressAllowedPortArray{
				&devtest.VirtualNetworkSubnetSharedPublicIpAddressAllowedPortArgs{
					BackendPort:       pulumi.Int(0),
					TransportProtocol: pulumi.String("string"),
				},
			},
		},
		UseInVirtualMachineCreation: pulumi.String("string"),
		UsePublicIpAddress:          pulumi.String("string"),
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var virtualNetworkResource = new VirtualNetwork("virtualNetworkResource", VirtualNetworkArgs.builder()
    .labName("string")
    .resourceGroupName("string")
    .description("string")
    .name("string")
    .subnet(VirtualNetworkSubnetArgs.builder()
        .name("string")
        .sharedPublicIpAddress(VirtualNetworkSubnetSharedPublicIpAddressArgs.builder()
            .allowedPorts(VirtualNetworkSubnetSharedPublicIpAddressAllowedPortArgs.builder()
                .backendPort(0)
                .transportProtocol("string")
                .build())
            .build())
        .useInVirtualMachineCreation("string")
        .usePublicIpAddress("string")
        .build())
    .tags(Map.of("string", "string"))
    .build());
virtual_network_resource = azure.devtest.VirtualNetwork("virtualNetworkResource",
    lab_name="string",
    resource_group_name="string",
    description="string",
    name="string",
    subnet={
        "name": "string",
        "shared_public_ip_address": {
            "allowed_ports": [{
                "backend_port": 0,
                "transport_protocol": "string",
            }],
        },
        "use_in_virtual_machine_creation": "string",
        "use_public_ip_address": "string",
    },
    tags={
        "string": "string",
    })
const virtualNetworkResource = new azure.devtest.VirtualNetwork("virtualNetworkResource", {
    labName: "string",
    resourceGroupName: "string",
    description: "string",
    name: "string",
    subnet: {
        name: "string",
        sharedPublicIpAddress: {
            allowedPorts: [{
                backendPort: 0,
                transportProtocol: "string",
            }],
        },
        useInVirtualMachineCreation: "string",
        usePublicIpAddress: "string",
    },
    tags: {
        string: "string",
    },
});
type: azure:devtest:VirtualNetwork
properties:
    description: string
    labName: string
    name: string
    resourceGroupName: string
    subnet:
        name: string
        sharedPublicIpAddress:
            allowedPorts:
                - backendPort: 0
                  transportProtocol: string
        useInVirtualMachineCreation: string
        usePublicIpAddress: string
    tags:
        string: string
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 string
- Specifies the name of the Dev Test Lab in which the Virtual Network should be created. Changing this forces a new resource to be created.
- ResourceGroup stringName 
- The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
- Description string
- A description for the Virtual Network.
- Name string
- Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
- Subnet
VirtualNetwork Subnet 
- A subnetblock as defined below.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- LabName string
- Specifies the name of the Dev Test Lab in which the Virtual Network should be created. Changing this forces a new resource to be created.
- ResourceGroup stringName 
- The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
- Description string
- A description for the Virtual Network.
- Name string
- Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
- Subnet
VirtualNetwork Subnet Args 
- A subnetblock as defined below.
- map[string]string
- A mapping of tags to assign to the resource.
- labName String
- Specifies the name of the Dev Test Lab in which the Virtual Network should be created. Changing this forces a new resource to be created.
- resourceGroup StringName 
- The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
- description String
- A description for the Virtual Network.
- name String
- Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
- subnet
VirtualNetwork Subnet 
- A subnetblock as defined below.
- Map<String,String>
- A mapping of tags to assign to the resource.
- labName string
- Specifies the name of the Dev Test Lab in which the Virtual Network should be created. Changing this forces a new resource to be created.
- resourceGroup stringName 
- The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
- description string
- A description for the Virtual Network.
- name string
- Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
- subnet
VirtualNetwork Subnet 
- A subnetblock as defined below.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- lab_name str
- Specifies the name of the Dev Test Lab in which the Virtual Network should be created. Changing this forces a new resource to be created.
- resource_group_ strname 
- The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
- description str
- A description for the Virtual Network.
- name str
- Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
- subnet
VirtualNetwork Subnet Args 
- A subnetblock as defined below.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- labName String
- Specifies the name of the Dev Test Lab in which the Virtual Network should be created. Changing this forces a new resource to be created.
- resourceGroup StringName 
- The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
- description String
- A description for the Virtual Network.
- name String
- Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
- subnet Property Map
- A subnetblock as defined below.
- Map<String>
- A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the VirtualNetwork resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- UniqueIdentifier string
- The unique immutable identifier of the Dev Test Virtual Network.
- Id string
- The provider-assigned unique ID for this managed resource.
- UniqueIdentifier string
- The unique immutable identifier of the Dev Test Virtual Network.
- id String
- The provider-assigned unique ID for this managed resource.
- uniqueIdentifier String
- The unique immutable identifier of the Dev Test Virtual Network.
- id string
- The provider-assigned unique ID for this managed resource.
- uniqueIdentifier string
- The unique immutable identifier of the Dev Test Virtual Network.
- id str
- The provider-assigned unique ID for this managed resource.
- unique_identifier str
- The unique immutable identifier of the Dev Test Virtual Network.
- id String
- The provider-assigned unique ID for this managed resource.
- uniqueIdentifier String
- The unique immutable identifier of the Dev Test Virtual Network.
Look up Existing VirtualNetwork Resource
Get an existing VirtualNetwork resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: VirtualNetworkState, opts?: CustomResourceOptions): VirtualNetwork@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        lab_name: Optional[str] = None,
        name: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        subnet: Optional[VirtualNetworkSubnetArgs] = None,
        tags: Optional[Mapping[str, str]] = None,
        unique_identifier: Optional[str] = None) -> VirtualNetworkfunc GetVirtualNetwork(ctx *Context, name string, id IDInput, state *VirtualNetworkState, opts ...ResourceOption) (*VirtualNetwork, error)public static VirtualNetwork Get(string name, Input<string> id, VirtualNetworkState? state, CustomResourceOptions? opts = null)public static VirtualNetwork get(String name, Output<String> id, VirtualNetworkState state, CustomResourceOptions options)resources:  _:    type: azure:devtest:VirtualNetwork    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Description string
- A description for the Virtual Network.
- LabName string
- Specifies the name of the Dev Test Lab in which the Virtual Network should be created. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
- ResourceGroup stringName 
- The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
- Subnet
VirtualNetwork Subnet 
- A subnetblock as defined below.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- UniqueIdentifier string
- The unique immutable identifier of the Dev Test Virtual Network.
- Description string
- A description for the Virtual Network.
- LabName string
- Specifies the name of the Dev Test Lab in which the Virtual Network should be created. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
- ResourceGroup stringName 
- The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
- Subnet
VirtualNetwork Subnet Args 
- A subnetblock as defined below.
- map[string]string
- A mapping of tags to assign to the resource.
- UniqueIdentifier string
- The unique immutable identifier of the Dev Test Virtual Network.
- description String
- A description for the Virtual Network.
- labName String
- Specifies the name of the Dev Test Lab in which the Virtual Network should be created. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
- resourceGroup StringName 
- The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
- subnet
VirtualNetwork Subnet 
- A subnetblock as defined below.
- Map<String,String>
- A mapping of tags to assign to the resource.
- uniqueIdentifier String
- The unique immutable identifier of the Dev Test Virtual Network.
- description string
- A description for the Virtual Network.
- labName string
- Specifies the name of the Dev Test Lab in which the Virtual Network should be created. Changing this forces a new resource to be created.
- name string
- Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
- resourceGroup stringName 
- The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
- subnet
VirtualNetwork Subnet 
- A subnetblock as defined below.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- uniqueIdentifier string
- The unique immutable identifier of the Dev Test Virtual Network.
- description str
- A description for the Virtual Network.
- lab_name str
- Specifies the name of the Dev Test Lab in which the Virtual Network should be created. Changing this forces a new resource to be created.
- name str
- Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
- resource_group_ strname 
- The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
- subnet
VirtualNetwork Subnet Args 
- A subnetblock as defined below.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- unique_identifier str
- The unique immutable identifier of the Dev Test Virtual Network.
- description String
- A description for the Virtual Network.
- labName String
- Specifies the name of the Dev Test Lab in which the Virtual Network should be created. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
- resourceGroup StringName 
- The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
- subnet Property Map
- A subnetblock as defined below.
- Map<String>
- A mapping of tags to assign to the resource.
- uniqueIdentifier String
- The unique immutable identifier of the Dev Test Virtual Network.
Supporting Types
VirtualNetworkSubnet, VirtualNetworkSubnetArgs      
- Name string
- Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
- 
VirtualNetwork Subnet Shared Public Ip Address 
- A shared_public_ip_addressblock as defined below.
- UseIn stringVirtual Machine Creation 
- Can this subnet be used for creating Virtual Machines? Possible values are Allow,DefaultandDeny. Defaults toAllow.
- UsePublic stringIp Address 
- Can Virtual Machines in this Subnet use Public IP Addresses? Possible values are Allow,DefaultandDeny. Defaults toAllow.
- Name string
- Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
- 
VirtualNetwork Subnet Shared Public Ip Address 
- A shared_public_ip_addressblock as defined below.
- UseIn stringVirtual Machine Creation 
- Can this subnet be used for creating Virtual Machines? Possible values are Allow,DefaultandDeny. Defaults toAllow.
- UsePublic stringIp Address 
- Can Virtual Machines in this Subnet use Public IP Addresses? Possible values are Allow,DefaultandDeny. Defaults toAllow.
- name String
- Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
- 
VirtualNetwork Subnet Shared Public Ip Address 
- A shared_public_ip_addressblock as defined below.
- useIn StringVirtual Machine Creation 
- Can this subnet be used for creating Virtual Machines? Possible values are Allow,DefaultandDeny. Defaults toAllow.
- usePublic StringIp Address 
- Can Virtual Machines in this Subnet use Public IP Addresses? Possible values are Allow,DefaultandDeny. Defaults toAllow.
- name string
- Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
- 
VirtualNetwork Subnet Shared Public Ip Address 
- A shared_public_ip_addressblock as defined below.
- useIn stringVirtual Machine Creation 
- Can this subnet be used for creating Virtual Machines? Possible values are Allow,DefaultandDeny. Defaults toAllow.
- usePublic stringIp Address 
- Can Virtual Machines in this Subnet use Public IP Addresses? Possible values are Allow,DefaultandDeny. Defaults toAllow.
- name str
- Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
- 
VirtualNetwork Subnet Shared Public Ip Address 
- A shared_public_ip_addressblock as defined below.
- use_in_ strvirtual_ machine_ creation 
- Can this subnet be used for creating Virtual Machines? Possible values are Allow,DefaultandDeny. Defaults toAllow.
- use_public_ strip_ address 
- Can Virtual Machines in this Subnet use Public IP Addresses? Possible values are Allow,DefaultandDeny. Defaults toAllow.
- name String
- Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
- Property Map
- A shared_public_ip_addressblock as defined below.
- useIn StringVirtual Machine Creation 
- Can this subnet be used for creating Virtual Machines? Possible values are Allow,DefaultandDeny. Defaults toAllow.
- usePublic StringIp Address 
- Can Virtual Machines in this Subnet use Public IP Addresses? Possible values are Allow,DefaultandDeny. Defaults toAllow.
VirtualNetworkSubnetSharedPublicIpAddress, VirtualNetworkSubnetSharedPublicIpAddressArgs              
- AllowedPorts List<VirtualNetwork Subnet Shared Public Ip Address Allowed Port> 
- A list of allowed_portsblocks as defined below.
- AllowedPorts []VirtualNetwork Subnet Shared Public Ip Address Allowed Port 
- A list of allowed_portsblocks as defined below.
- allowedPorts List<VirtualNetwork Subnet Shared Public Ip Address Allowed Port> 
- A list of allowed_portsblocks as defined below.
- allowedPorts VirtualNetwork Subnet Shared Public Ip Address Allowed Port[] 
- A list of allowed_portsblocks as defined below.
- allowed_ports Sequence[VirtualNetwork Subnet Shared Public Ip Address Allowed Port] 
- A list of allowed_portsblocks as defined below.
- allowedPorts List<Property Map>
- A list of allowed_portsblocks as defined below.
VirtualNetworkSubnetSharedPublicIpAddressAllowedPort, VirtualNetworkSubnetSharedPublicIpAddressAllowedPortArgs                  
- BackendPort int
- The port on the Virtual Machine that the traffic will be sent to.
- TransportProtocol string
- The transport protocol that the traffic will use. Possible values are TCPandUDP.
- BackendPort int
- The port on the Virtual Machine that the traffic will be sent to.
- TransportProtocol string
- The transport protocol that the traffic will use. Possible values are TCPandUDP.
- backendPort Integer
- The port on the Virtual Machine that the traffic will be sent to.
- transportProtocol String
- The transport protocol that the traffic will use. Possible values are TCPandUDP.
- backendPort number
- The port on the Virtual Machine that the traffic will be sent to.
- transportProtocol string
- The transport protocol that the traffic will use. Possible values are TCPandUDP.
- backend_port int
- The port on the Virtual Machine that the traffic will be sent to.
- transport_protocol str
- The transport protocol that the traffic will use. Possible values are TCPandUDP.
- backendPort Number
- The port on the Virtual Machine that the traffic will be sent to.
- transportProtocol String
- The transport protocol that the traffic will use. Possible values are TCPandUDP.
Import
DevTest Virtual Networks can be imported using the resource id, e.g.
$ pulumi import azure:devtest/virtualNetwork:VirtualNetwork network1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DevTestLab/labs/lab1/virtualNetworks/network1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.