This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.3 published on Thursday, Mar 20, 2025 by Pulumi
azure-native.devtestlab.getVirtualNetwork
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.3 published on Thursday, Mar 20, 2025 by Pulumi
Get virtual network. Azure REST API version: 2018-09-15.
Using getVirtualNetwork
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVirtualNetwork(args: GetVirtualNetworkArgs, opts?: InvokeOptions): Promise<GetVirtualNetworkResult>
function getVirtualNetworkOutput(args: GetVirtualNetworkOutputArgs, opts?: InvokeOptions): Output<GetVirtualNetworkResult>def get_virtual_network(expand: Optional[str] = None,
                        lab_name: Optional[str] = None,
                        name: Optional[str] = None,
                        resource_group_name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetVirtualNetworkResult
def get_virtual_network_output(expand: Optional[pulumi.Input[str]] = None,
                        lab_name: Optional[pulumi.Input[str]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        resource_group_name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetVirtualNetworkResult]func LookupVirtualNetwork(ctx *Context, args *LookupVirtualNetworkArgs, opts ...InvokeOption) (*LookupVirtualNetworkResult, error)
func LookupVirtualNetworkOutput(ctx *Context, args *LookupVirtualNetworkOutputArgs, opts ...InvokeOption) LookupVirtualNetworkResultOutput> Note: This function is named LookupVirtualNetwork in the Go SDK.
public static class GetVirtualNetwork 
{
    public static Task<GetVirtualNetworkResult> InvokeAsync(GetVirtualNetworkArgs args, InvokeOptions? opts = null)
    public static Output<GetVirtualNetworkResult> Invoke(GetVirtualNetworkInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVirtualNetworkResult> getVirtualNetwork(GetVirtualNetworkArgs args, InvokeOptions options)
public static Output<GetVirtualNetworkResult> getVirtualNetwork(GetVirtualNetworkArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:devtestlab:getVirtualNetwork
  arguments:
    # arguments dictionaryThe following arguments are supported:
- LabName string
- The name of the lab.
- Name string
- The name of the virtual network.
- ResourceGroup stringName 
- The name of the resource group.
- Expand string
- Specify the $expand query. Example: 'properties($expand=externalSubnets)'
- LabName string
- The name of the lab.
- Name string
- The name of the virtual network.
- ResourceGroup stringName 
- The name of the resource group.
- Expand string
- Specify the $expand query. Example: 'properties($expand=externalSubnets)'
- labName String
- The name of the lab.
- name String
- The name of the virtual network.
- resourceGroup StringName 
- The name of the resource group.
- expand String
- Specify the $expand query. Example: 'properties($expand=externalSubnets)'
- labName string
- The name of the lab.
- name string
- The name of the virtual network.
- resourceGroup stringName 
- The name of the resource group.
- expand string
- Specify the $expand query. Example: 'properties($expand=externalSubnets)'
- lab_name str
- The name of the lab.
- name str
- The name of the virtual network.
- resource_group_ strname 
- The name of the resource group.
- expand str
- Specify the $expand query. Example: 'properties($expand=externalSubnets)'
- labName String
- The name of the lab.
- name String
- The name of the virtual network.
- resourceGroup StringName 
- The name of the resource group.
- expand String
- Specify the $expand query. Example: 'properties($expand=externalSubnets)'
getVirtualNetwork Result
The following output properties are available:
- 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 identifier of the resource.
- Name string
- The name of the 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).
- AllowedSubnets List<Pulumi.Azure Native. Dev Test Lab. Outputs. Subnet Response> 
- 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.
- SubnetOverrides List<Pulumi.Azure Native. Dev Test Lab. Outputs. Subnet Override Response> 
- The subnet overrides of the virtual network.
- Dictionary<string, string>
- The tags of the resource.
- CreatedDate string
- The creation date of the virtual network.
- ExternalSubnets []ExternalSubnet Response 
- The external subnet properties.
- Id string
- The identifier of the resource.
- Name string
- The name of the 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).
- AllowedSubnets []SubnetResponse 
- 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.
- SubnetOverrides []SubnetOverride Response 
- The subnet overrides of the virtual network.
- map[string]string
- The tags of the resource.
- createdDate String
- The creation date of the virtual network.
- externalSubnets List<ExternalSubnet Response> 
- The external subnet properties.
- id String
- The identifier of the resource.
- name String
- The name of the 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).
- allowedSubnets List<SubnetResponse> 
- 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.
- subnetOverrides List<SubnetOverride Response> 
- The subnet overrides of the virtual network.
- Map<String,String>
- The tags of the resource.
- createdDate string
- The creation date of the virtual network.
- externalSubnets ExternalSubnet Response[] 
- The external subnet properties.
- id string
- The identifier of the resource.
- name string
- The name of the 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).
- allowedSubnets SubnetResponse[] 
- 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.
- subnetOverrides SubnetOverride Response[] 
- The subnet overrides of the virtual network.
- {[key: string]: string}
- The tags of the resource.
- created_date str
- The creation date of the virtual network.
- external_subnets Sequence[ExternalSubnet Response] 
- The external subnet properties.
- id str
- The identifier of the resource.
- name str
- The name of the 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).
- allowed_subnets Sequence[SubnetResponse] 
- 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.
- subnet_overrides Sequence[SubnetOverride Response] 
- The subnet overrides of the virtual network.
- Mapping[str, str]
- The tags of the resource.
- createdDate String
- The creation date of the virtual network.
- externalSubnets List<Property Map>
- The external subnet properties.
- id String
- The identifier of the resource.
- name String
- The name of the 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).
- 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.
- subnetOverrides List<Property Map>
- The subnet overrides of the virtual network.
- Map<String>
- The tags of the resource.
Supporting Types
ExternalSubnetResponse  
PortResponse 
- 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.
SubnetOverrideResponse  
- 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 
- 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.
SubnetSharedPublicIpAddressConfigurationResponse      
- 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
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.3 published on Thursday, Mar 20, 2025 by Pulumi