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.47.1 published on Monday, Jun 24, 2024 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.47.1 published on Monday, Jun 24, 2024 by Pulumi
Get virtual network. Azure REST API version: 2018-09-15.
Other available API versions: 2016-05-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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:devtestlab:getVirtualNetwork
arguments:
# arguments dictionary
The following arguments are supported:
- Lab
Name string - The name of the lab.
- Name string
- The name of the virtual network.
- Resource
Group stringName - The name of the resource group.
- Expand string
- Specify the $expand query. Example: 'properties($expand=externalSubnets)'
- Lab
Name string - The name of the lab.
- Name string
- The name of the virtual network.
- Resource
Group stringName - The name of the resource group.
- Expand string
- Specify the $expand query. Example: 'properties($expand=externalSubnets)'
- lab
Name String - The name of the lab.
- name String
- The name of the virtual network.
- resource
Group StringName - The name of the resource group.
- expand String
- Specify the $expand query. Example: 'properties($expand=externalSubnets)'
- lab
Name string - The name of the lab.
- name string
- The name of the virtual network.
- resource
Group 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)'
- lab
Name String - The name of the lab.
- name String
- The name of the virtual network.
- resource
Group 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:
- Created
Date string - The creation date of the virtual network.
- External
Subnets 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.
- Provisioning
State string - The provisioning status of the resource.
- Type string
- The type of the resource.
- Unique
Identifier string - The unique immutable identifier of a resource (Guid).
- Allowed
Subnets 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.
- External
Provider stringResource Id - The Microsoft.Network resource identifier of the virtual network.
- Location string
- The location of the resource.
- Subnet
Overrides 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.
- Created
Date string - The creation date of the virtual network.
- External
Subnets []ExternalSubnet Response - The external subnet properties.
- Id string
- The identifier of the resource.
- Name string
- The name of the resource.
- Provisioning
State string - The provisioning status of the resource.
- Type string
- The type of the resource.
- Unique
Identifier string - The unique immutable identifier of a resource (Guid).
- Allowed
Subnets []SubnetResponse - The allowed subnets of the virtual network.
- Description string
- The description of the virtual network.
- External
Provider stringResource Id - The Microsoft.Network resource identifier of the virtual network.
- Location string
- The location of the resource.
- Subnet
Overrides []SubnetOverride Response - The subnet overrides of the virtual network.
- map[string]string
- The tags of the resource.
- created
Date String - The creation date of the virtual network.
- external
Subnets List<ExternalSubnet Response> - The external subnet properties.
- id String
- The identifier of the resource.
- name String
- The name of the resource.
- provisioning
State String - The provisioning status of the resource.
- type String
- The type of the resource.
- unique
Identifier String - The unique immutable identifier of a resource (Guid).
- allowed
Subnets List<SubnetResponse> - The allowed subnets of the virtual network.
- description String
- The description of the virtual network.
- external
Provider StringResource Id - The Microsoft.Network resource identifier of the virtual network.
- location String
- The location of the resource.
- subnet
Overrides List<SubnetOverride Response> - The subnet overrides of the virtual network.
- Map<String,String>
- The tags of the resource.
- created
Date string - The creation date of the virtual network.
- external
Subnets ExternalSubnet Response[] - The external subnet properties.
- id string
- The identifier of the resource.
- name string
- The name of the resource.
- provisioning
State string - The provisioning status of the resource.
- type string
- The type of the resource.
- unique
Identifier string - The unique immutable identifier of a resource (Guid).
- allowed
Subnets SubnetResponse[] - The allowed subnets of the virtual network.
- description string
- The description of the virtual network.
- external
Provider stringResource Id - The Microsoft.Network resource identifier of the virtual network.
- location string
- The location of the resource.
- subnet
Overrides 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.
- created
Date String - The creation date of the virtual network.
- external
Subnets List<Property Map> - The external subnet properties.
- id String
- The identifier of the resource.
- name String
- The name of the resource.
- provisioning
State String - The provisioning status of the resource.
- type String
- The type of the resource.
- unique
Identifier String - The unique immutable identifier of a resource (Guid).
- allowed
Subnets List<Property Map> - The allowed subnets of the virtual network.
- description String
- The description of the virtual network.
- external
Provider StringResource Id - The Microsoft.Network resource identifier of the virtual network.
- location String
- The location of the resource.
- subnet
Overrides List<Property Map> - The subnet overrides of the virtual network.
- Map<String>
- The tags of the resource.
Supporting Types
ExternalSubnetResponse
PortResponse
- Backend
Port int - Backend port of the target virtual machine.
- Transport
Protocol string - Protocol type of the port.
- Backend
Port int - Backend port of the target virtual machine.
- Transport
Protocol string - Protocol type of the port.
- backend
Port Integer - Backend port of the target virtual machine.
- transport
Protocol String - Protocol type of the port.
- backend
Port number - Backend port of the target virtual machine.
- transport
Protocol string - Protocol type of the port.
- backend_
port int - Backend port of the target virtual machine.
- transport_
protocol str - Protocol type of the port.
- backend
Port Number - Backend port of the target virtual machine.
- transport
Protocol String - Protocol type of the port.
SubnetOverrideResponse
- Lab
Subnet stringName - The name given to the subnet within the lab.
- Resource
Id 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.
- Use
In stringVm Creation Permission - Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
- Use
Public stringIp Address Permission - Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
- Virtual
Network stringPool Name - The virtual network pool associated with this subnet.
- Lab
Subnet stringName - The name given to the subnet within the lab.
- Resource
Id string - The resource ID of the subnet.
- Subnet
Shared Public Ip Address Configuration Response - Properties that virtual machines on this subnet will share.
- Use
In stringVm Creation Permission - Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
- Use
Public stringIp Address Permission - Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
- Virtual
Network stringPool Name - The virtual network pool associated with this subnet.
- lab
Subnet StringName - The name given to the subnet within the lab.
- resource
Id String - The resource ID of the subnet.
- Subnet
Shared Public Ip Address Configuration Response - Properties that virtual machines on this subnet will share.
- use
In StringVm Creation Permission - Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
- use
Public StringIp Address Permission - Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
- virtual
Network StringPool Name - The virtual network pool associated with this subnet.
- lab
Subnet stringName - The name given to the subnet within the lab.
- resource
Id string - The resource ID of the subnet.
- Subnet
Shared Public Ip Address Configuration Response - Properties that virtual machines on this subnet will share.
- use
In stringVm Creation Permission - Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
- use
Public stringIp Address Permission - Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
- virtual
Network 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.
- Subnet
Shared 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.
- lab
Subnet StringName - The name given to the subnet within the lab.
- resource
Id String - The resource ID of the subnet.
- Property Map
- Properties that virtual machines on this subnet will share.
- use
In StringVm Creation Permission - Indicates whether this subnet can be used during virtual machine creation (i.e. Allow, Deny).
- use
Public StringIp Address Permission - Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
- virtual
Network StringPool Name - The virtual network pool associated with this subnet.
SubnetResponse
- Allow
Public stringIp - The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
- Lab
Subnet stringName - The name of the subnet as seen in the lab.
- Resource
Id string - The resource ID of the subnet.
- Allow
Public stringIp - The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
- Lab
Subnet stringName - The name of the subnet as seen in the lab.
- Resource
Id string - The resource ID of the subnet.
- allow
Public StringIp - The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
- lab
Subnet StringName - The name of the subnet as seen in the lab.
- resource
Id String - The resource ID of the subnet.
- allow
Public stringIp - The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
- lab
Subnet stringName - The name of the subnet as seen in the lab.
- resource
Id 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.
- allow
Public StringIp - The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
- lab
Subnet StringName - The name of the subnet as seen in the lab.
- resource
Id String - The resource ID of the subnet.
SubnetSharedPublicIpAddressConfigurationResponse
- Allowed
Ports List<Pulumi.Azure Native. Dev Test Lab. Inputs. Port Response> - Backend ports that virtual machines on this subnet are allowed to expose
- Allowed
Ports []PortResponse - Backend ports that virtual machines on this subnet are allowed to expose
- allowed
Ports List<PortResponse> - Backend ports that virtual machines on this subnet are allowed to expose
- allowed
Ports 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
- allowed
Ports 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.47.1 published on Monday, Jun 24, 2024 by Pulumi