1. Packages
  2. Azure Classic
  3. API Docs
  4. devtest
  5. VirtualNetwork

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.devtest.VirtualNetwork

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

    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.
    ResourceGroupName string
    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 VirtualNetworkSubnet
    A subnet block as defined below.
    Tags 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.
    ResourceGroupName string
    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 VirtualNetworkSubnetArgs
    A subnet block as defined below.
    Tags 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.
    resourceGroupName String
    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 VirtualNetworkSubnet
    A subnet block as defined below.
    tags 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.
    resourceGroupName string
    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 VirtualNetworkSubnet
    A subnet block as defined below.
    tags {[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_name str
    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 VirtualNetworkSubnetArgs
    A subnet block as defined below.
    tags 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.
    resourceGroupName String
    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 subnet block as defined below.
    tags 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) -> VirtualNetwork
    func 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)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    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.
    ResourceGroupName string
    The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
    Subnet VirtualNetworkSubnet
    A subnet block as defined below.
    Tags 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.
    ResourceGroupName string
    The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
    Subnet VirtualNetworkSubnetArgs
    A subnet block as defined below.
    Tags 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.
    resourceGroupName String
    The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
    subnet VirtualNetworkSubnet
    A subnet block as defined below.
    tags 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.
    resourceGroupName string
    The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
    subnet VirtualNetworkSubnet
    A subnet block as defined below.
    tags {[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_name str
    The name of the resource group in which the Dev Test Lab resource exists. Changing this forces a new resource to be created.
    subnet VirtualNetworkSubnetArgs
    A subnet block as defined below.
    tags 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.
    resourceGroupName String
    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 subnet block as defined below.
    tags 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.
    SharedPublicIpAddress VirtualNetworkSubnetSharedPublicIpAddress
    A shared_public_ip_address block as defined below.
    UseInVirtualMachineCreation string
    Can this subnet be used for creating Virtual Machines? Possible values are Allow, Default and Deny. Defaults to Allow.
    UsePublicIpAddress string
    Can Virtual Machines in this Subnet use Public IP Addresses? Possible values are Allow, Default and Deny. Defaults to Allow.
    Name string
    Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
    SharedPublicIpAddress VirtualNetworkSubnetSharedPublicIpAddress
    A shared_public_ip_address block as defined below.
    UseInVirtualMachineCreation string
    Can this subnet be used for creating Virtual Machines? Possible values are Allow, Default and Deny. Defaults to Allow.
    UsePublicIpAddress string
    Can Virtual Machines in this Subnet use Public IP Addresses? Possible values are Allow, Default and Deny. Defaults to Allow.
    name String
    Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
    sharedPublicIpAddress VirtualNetworkSubnetSharedPublicIpAddress
    A shared_public_ip_address block as defined below.
    useInVirtualMachineCreation String
    Can this subnet be used for creating Virtual Machines? Possible values are Allow, Default and Deny. Defaults to Allow.
    usePublicIpAddress String
    Can Virtual Machines in this Subnet use Public IP Addresses? Possible values are Allow, Default and Deny. Defaults to Allow.
    name string
    Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
    sharedPublicIpAddress VirtualNetworkSubnetSharedPublicIpAddress
    A shared_public_ip_address block as defined below.
    useInVirtualMachineCreation string
    Can this subnet be used for creating Virtual Machines? Possible values are Allow, Default and Deny. Defaults to Allow.
    usePublicIpAddress string
    Can Virtual Machines in this Subnet use Public IP Addresses? Possible values are Allow, Default and Deny. Defaults to Allow.
    name str
    Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
    shared_public_ip_address VirtualNetworkSubnetSharedPublicIpAddress
    A shared_public_ip_address block as defined below.
    use_in_virtual_machine_creation str
    Can this subnet be used for creating Virtual Machines? Possible values are Allow, Default and Deny. Defaults to Allow.
    use_public_ip_address str
    Can Virtual Machines in this Subnet use Public IP Addresses? Possible values are Allow, Default and Deny. Defaults to Allow.
    name String
    Specifies the name of the Dev Test Virtual Network. Changing this forces a new resource to be created.
    sharedPublicIpAddress Property Map
    A shared_public_ip_address block as defined below.
    useInVirtualMachineCreation String
    Can this subnet be used for creating Virtual Machines? Possible values are Allow, Default and Deny. Defaults to Allow.
    usePublicIpAddress String
    Can Virtual Machines in this Subnet use Public IP Addresses? Possible values are Allow, Default and Deny. Defaults to Allow.

    VirtualNetworkSubnetSharedPublicIpAddress, VirtualNetworkSubnetSharedPublicIpAddressArgs

    AllowedPorts List<VirtualNetworkSubnetSharedPublicIpAddressAllowedPort>
    A list of allowed_ports blocks as defined below.
    AllowedPorts []VirtualNetworkSubnetSharedPublicIpAddressAllowedPort
    A list of allowed_ports blocks as defined below.
    allowedPorts List<VirtualNetworkSubnetSharedPublicIpAddressAllowedPort>
    A list of allowed_ports blocks as defined below.
    allowedPorts VirtualNetworkSubnetSharedPublicIpAddressAllowedPort[]
    A list of allowed_ports blocks as defined below.
    allowedPorts List<Property Map>
    A list of allowed_ports blocks 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 TCP and UDP.
    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 TCP and UDP.
    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 TCP and UDP.
    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 TCP and UDP.
    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 TCP and UDP.
    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 TCP and UDP.

    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 azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi