< Back
Get-AzureRmVirtualNetwork
Post
NAME Get-AzureRmVirtualNetwork
SYNOPSIS
Gets a virtual network in a resource group.
SYNTAX
Get-AzureRmVirtualNetwork [-DefaultProfile <IAzureContextContainer>] -ExpandResource <String> -Name <String> -ResourceGroupName <String>
[<CommonParameters>]
Get-AzureRmVirtualNetwork [-DefaultProfile <IAzureContextContainer>] [-Name <String>] [-ResourceGroupName <String>] [<CommonParameters>]
DESCRIPTION
The Get-AzureRmVirtualNetwork cmdlet gets one or more virtual networks n a resource group.
PARAMETERS
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-ExpandResource <String>
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Name <String>
Specifies the name of the virtual network that this cmdlet gets.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of the resource group that virtual network belongs to.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.Network.Models.PSVirtualNetwork
NOTES
1: Retrieve a virtual network
Get-AzureRmVirtualNetwork -Name MyVirtualNetwork -ResourceGroupName TestResourceGroup
This command gets the virtual network named MyVirtualNetwork in the resource group TestResourceGroup
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ualnetwork
New-AzureRmVirtualNetwork
Remove-AzureRmVirtualNetwork
Reset-AzureRmVirtualNetworkGateway
SYNOPSIS
Gets a virtual network in a resource group.
SYNTAX
Get-AzureRmVirtualNetwork [-DefaultProfile <IAzureContextContainer>] -ExpandResource <String> -Name <String> -ResourceGroupName <String>
[<CommonParameters>]
Get-AzureRmVirtualNetwork [-DefaultProfile <IAzureContextContainer>] [-Name <String>] [-ResourceGroupName <String>] [<CommonParameters>]
DESCRIPTION
The Get-AzureRmVirtualNetwork cmdlet gets one or more virtual networks n a resource group.
PARAMETERS
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-ExpandResource <String>
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Name <String>
Specifies the name of the virtual network that this cmdlet gets.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of the resource group that virtual network belongs to.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.Network.Models.PSVirtualNetwork
NOTES
1: Retrieve a virtual network
Get-AzureRmVirtualNetwork -Name MyVirtualNetwork -ResourceGroupName TestResourceGroup
This command gets the virtual network named MyVirtualNetwork in the resource group TestResourceGroup
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ualnetwork
New-AzureRmVirtualNetwork
Remove-AzureRmVirtualNetwork
Reset-AzureRmVirtualNetworkGateway