azure-native.devtestlab.VirtualNetwork
Explore with Pulumi AI
A virtual network. Azure REST API version: 2018-09-15. Prior API version in Azure Native 1.x: 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" },
        },
    });
});
package main
import (
	devtestlab "github.com/pulumi/pulumi-azure-native-sdk/devtestlab/v2"
	"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
	})
}
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());
    }
}
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",
    },
});
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",
    })
resources:
  virtualNetwork:
    type: azure-native:devtestlab:VirtualNetwork
    properties:
      labName: '{labName}'
      location: '{location}'
      name: '{virtualNetworkName}'
      resourceGroupName: resourceGroupName
      tags:
        tagName1: tagValue1
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 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 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" },
    },
});
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"),
	},
})
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());
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",
    })
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",
    },
});
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
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
- The name of the lab.
- ResourceGroup stringName 
- The name of the resource group.
- AllowedSubnets List<Pulumi.Azure Native. Dev Test Lab. Inputs. Subnet> 
- The allowed subnets of the virtual network.
- Description string
- The description of the virtual network.
- ExternalProvider stringResource Id 
- The Microsoft.Network resource identifier of the virtual network.
- Location string
- The location of the resource.
- Name string
- The name of the virtual network.
- SubnetOverrides List<Pulumi.Azure Native. Dev Test Lab. Inputs. Subnet Override> 
- The subnet overrides of the virtual network.
- Dictionary<string, string>
- The tags of the resource.
- LabName string
- The name of the lab.
- ResourceGroup stringName 
- The name of the resource group.
- AllowedSubnets []SubnetArgs 
- The allowed subnets of the virtual network.
- Description string
- The description of the virtual network.
- ExternalProvider stringResource Id 
- The Microsoft.Network resource identifier of the virtual network.
- Location string
- The location of the resource.
- Name string
- The name of the virtual network.
- SubnetOverrides []SubnetOverride Args 
- The subnet overrides of the virtual network.
- map[string]string
- The tags of the resource.
- labName String
- The name of the lab.
- resourceGroup StringName 
- The name of the resource group.
- allowedSubnets List<Subnet>
- The allowed subnets of the virtual network.
- description String
- The description of the virtual network.
- externalProvider StringResource Id 
- The Microsoft.Network resource identifier of the virtual network.
- location String
- The location of the resource.
- name String
- The name of the virtual network.
- subnetOverrides List<SubnetOverride> 
- The subnet overrides of the virtual network.
- Map<String,String>
- The tags of the resource.
- labName string
- The name of the lab.
- resourceGroup stringName 
- The name of the resource group.
- allowedSubnets Subnet[]
- The allowed subnets of the virtual network.
- description string
- The description of the virtual network.
- externalProvider stringResource Id 
- The Microsoft.Network resource identifier of the virtual network.
- location string
- The location of the resource.
- name string
- The name of the virtual network.
- subnetOverrides SubnetOverride[] 
- The subnet overrides of the virtual network.
- {[key: string]: string}
- The tags of the resource.
- lab_name str
- The name of the lab.
- resource_group_ strname 
- 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_ strresource_ id 
- The Microsoft.Network resource identifier of the virtual network.
- location str
- The location of the resource.
- name str
- The name of the virtual network.
- subnet_overrides Sequence[SubnetOverride Args] 
- The subnet overrides of the virtual network.
- Mapping[str, str]
- The tags of the resource.
- labName String
- The name of the lab.
- resourceGroup StringName 
- 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.
- externalProvider StringResource Id 
- The Microsoft.Network resource identifier of the virtual network.
- location String
- The location of the resource.
- name String
- The name of the virtual network.
- subnetOverrides List<Property Map>
- The subnet overrides of the virtual network.
- 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:
- CreatedDate string
- The creation date of the virtual network.
- ExternalSubnets List<Pulumi.Azure Native. Dev Test Lab. Outputs. External Subnet Response> 
- 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).
- CreatedDate string
- The creation date of the virtual network.
- ExternalSubnets []ExternalSubnet Response 
- 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).
- createdDate String
- The creation date of the virtual network.
- externalSubnets List<ExternalSubnet Response> 
- 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).
- createdDate string
- The creation date of the virtual network.
- externalSubnets ExternalSubnet Response[] 
- 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).
- created_date str
- The creation date of the virtual network.
- external_subnets Sequence[ExternalSubnet Response] 
- 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).
- 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      
Port, PortArgs  
- BackendPort int
- Backend port of the target virtual machine.
- TransportProtocol string | Pulumi.Azure Native. Dev Test Lab. Transport Protocol 
- 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  
- AllowPublic string | Pulumi.Ip Azure Native. Dev Test Lab. Usage Permission Type 
- The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
- LabSubnet stringName 
- The name of the subnet as seen in the lab.
- ResourceId string
- The resource ID of the subnet.
- AllowPublic string | UsageIp Permission Type 
- The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
- LabSubnet stringName 
- The name of the subnet as seen in the lab.
- ResourceId string
- The resource ID of the subnet.
- allowPublic String | UsageIp Permission Type 
- The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
- labSubnet StringName 
- The name of the subnet as seen in the lab.
- resourceId String
- The resource ID of the subnet.
- allowPublic string | UsageIp Permission Type 
- The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
- labSubnet stringName 
- The name of the subnet as seen in the lab.
- resourceId string
- The resource ID of the subnet.
- allow_public_ str | Usageip Permission Type 
- The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
- lab_subnet_ strname 
- The name of the subnet as seen in the lab.
- resource_id str
- The resource ID of the subnet.
- allowPublic String | "Default" | "Deny" | "Allow"Ip 
- The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
- labSubnet StringName 
- The name of the subnet as seen in the lab.
- resourceId String
- The resource ID of the subnet.
SubnetOverride, SubnetOverrideArgs    
- LabSubnet stringName 
- The name given to the subnet within the lab.
- ResourceId string
- The resource ID of the subnet.
- 
Pulumi.Azure Native. Dev Test Lab. Inputs. Subnet Shared Public Ip Address Configuration 
- Properties that virtual machines on this subnet will share.
- UseIn string | Pulumi.Vm Creation Permission Azure Native. Dev Test Lab. Usage Permission Type 
- Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
- UsePublic string | Pulumi.Ip Address Permission Azure Native. Dev Test Lab. Usage Permission Type 
- Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
- VirtualNetwork stringPool Name 
- The virtual network pool associated with this subnet.
- LabSubnet stringName 
- The name given to the subnet within the lab.
- ResourceId string
- The resource ID of the subnet.
- 
SubnetShared Public Ip Address Configuration 
- Properties that virtual machines on this subnet will share.
- UseIn string | UsageVm Creation Permission Permission Type 
- Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
- UsePublic string | UsageIp Address Permission Permission Type 
- Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
- VirtualNetwork stringPool Name 
- The virtual network pool associated with this subnet.
- labSubnet StringName 
- The name given to the subnet within the lab.
- resourceId String
- The resource ID of the subnet.
- 
SubnetShared Public Ip Address Configuration 
- Properties that virtual machines on this subnet will share.
- useIn String | UsageVm Creation Permission Permission Type 
- Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
- usePublic String | UsageIp Address Permission Permission Type 
- Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
- virtualNetwork StringPool Name 
- The virtual network pool associated with this subnet.
- labSubnet stringName 
- The name given to the subnet within the lab.
- resourceId string
- The resource ID of the subnet.
- 
SubnetShared Public Ip Address Configuration 
- Properties that virtual machines on this subnet will share.
- useIn string | UsageVm Creation Permission Permission Type 
- Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
- usePublic string | UsageIp Address Permission Permission Type 
- Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
- virtualNetwork stringPool Name 
- The virtual network pool associated with this subnet.
- lab_subnet_ strname 
- The name given to the subnet within the lab.
- resource_id str
- The resource ID of the subnet.
- 
SubnetShared Public Ip Address Configuration 
- Properties that virtual machines on this subnet will share.
- use_in_ str | Usagevm_ creation_ permission Permission Type 
- Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
- use_public_ str | Usageip_ address_ permission Permission Type 
- Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
- virtual_network_ strpool_ name 
- The virtual network pool associated with this subnet.
- labSubnet StringName 
- The name given to the subnet within the lab.
- resourceId String
- The resource ID of the subnet.
- Property Map
- Properties that virtual machines on this subnet will share.
- useIn String | "Default" | "Deny" | "Allow"Vm Creation Permission 
- Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
- usePublic String | "Default" | "Deny" | "Allow"Ip Address Permission 
- Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
- virtualNetwork StringPool Name 
- The virtual network pool associated with this subnet.
SubnetOverrideResponse, SubnetOverrideResponseArgs      
- LabSubnet stringName 
- The name given to the subnet within the lab.
- ResourceId string
- The resource ID of the subnet.
- 
Pulumi.Azure Native. Dev Test Lab. Inputs. Subnet Shared Public Ip Address Configuration Response 
- Properties that virtual machines on this subnet will share.
- UseIn stringVm Creation Permission 
- Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
- UsePublic stringIp Address Permission 
- Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
- VirtualNetwork stringPool Name 
- The virtual network pool associated with this subnet.
- LabSubnet stringName 
- The name given to the subnet within the lab.
- ResourceId string
- The resource ID of the subnet.
- 
SubnetShared Public Ip Address Configuration Response 
- Properties that virtual machines on this subnet will share.
- UseIn stringVm Creation Permission 
- Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
- UsePublic stringIp Address Permission 
- Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
- VirtualNetwork stringPool Name 
- The virtual network pool associated with this subnet.
- labSubnet StringName 
- The name given to the subnet within the lab.
- resourceId String
- The resource ID of the subnet.
- 
SubnetShared Public Ip Address Configuration Response 
- Properties that virtual machines on this subnet will share.
- useIn StringVm Creation Permission 
- Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
- usePublic StringIp Address Permission 
- Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
- virtualNetwork StringPool Name 
- The virtual network pool associated with this subnet.
- labSubnet stringName 
- The name given to the subnet within the lab.
- resourceId string
- The resource ID of the subnet.
- 
SubnetShared Public Ip Address Configuration Response 
- Properties that virtual machines on this subnet will share.
- useIn stringVm Creation Permission 
- Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
- usePublic stringIp Address Permission 
- Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
- virtualNetwork stringPool Name 
- The virtual network pool associated with this subnet.
- lab_subnet_ strname 
- The name given to the subnet within the lab.
- resource_id str
- The resource ID of the subnet.
- 
SubnetShared Public Ip Address Configuration Response 
- Properties that virtual machines on this subnet will share.
- use_in_ strvm_ creation_ permission 
- Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
- use_public_ strip_ address_ permission 
- Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
- virtual_network_ strpool_ name 
- The virtual network pool associated with this subnet.
- labSubnet StringName 
- The name given to the subnet within the lab.
- resourceId String
- The resource ID of the subnet.
- Property Map
- Properties that virtual machines on this subnet will share.
- useIn StringVm Creation Permission 
- Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
- usePublic StringIp Address Permission 
- Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
- virtualNetwork StringPool Name 
- The virtual network pool associated with this subnet.
SubnetResponse, SubnetResponseArgs    
- AllowPublic stringIp 
- The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
- LabSubnet stringName 
- The name of the subnet as seen in the lab.
- ResourceId string
- The resource ID of the subnet.
- AllowPublic stringIp 
- The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
- LabSubnet stringName 
- The name of the subnet as seen in the lab.
- ResourceId string
- The resource ID of the subnet.
- allowPublic StringIp 
- The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
- labSubnet StringName 
- The name of the subnet as seen in the lab.
- resourceId String
- The resource ID of the subnet.
- allowPublic stringIp 
- The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
- labSubnet stringName 
- The name of the subnet as seen in the lab.
- resourceId string
- The resource ID of the subnet.
- allow_public_ strip 
- The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
- lab_subnet_ strname 
- The name of the subnet as seen in the lab.
- resource_id str
- The resource ID of the subnet.
- allowPublic StringIp 
- The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
- labSubnet StringName 
- The name of the subnet as seen in the lab.
- resourceId String
- The resource ID of the subnet.
SubnetSharedPublicIpAddressConfiguration, SubnetSharedPublicIpAddressConfigurationArgs            
- AllowedPorts List<Pulumi.Azure Native. Dev Test Lab. 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.Azure Native. Dev Test Lab. Inputs. Port Response> 
- 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
- TransportProtocol Tcp 
- Tcp
- TransportProtocol Udp 
- 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
- UsagePermission Type Default 
- Default
- UsagePermission Type Deny 
- Deny
- UsagePermission Type Allow 
- 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} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0