Get-AzVirtualWan
Gets a Virtual WAN or all Virtual WANs in a resource group or subscription.
Syntax
Get-AzVirtualWan
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzVirtualWan
[-ResourceGroupName <String>]
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Gets a Virtual WAN or all Virtual WANs in a resource group or subscription.
Examples
Example 1
New-AzResourceGroup -Location "West US" -Name "testRG"
New-AzVirtualWan -ResourceGroupName "testRG" -Name "myVirtualWAN" -Location "West US" -AllowBranchToBranchTraffic
Get-AzVirtualWan -Name "myVirtualWAN" -ResourceGroupName "testRG"
Name : myVirtualWAN
Id : /subscriptions/{SubscriptionId}/resourceGroups/testRG/providers/Microsoft.Network/virtualWans/myVirtualWAN
AllowVnetToVnetTraffic : False
AllowBranchToBranchTraffic : True
Location : West US
Type : Microsoft.Network/virtualWans
ProvisioningState : Succeeded
This command gets the Virtual WAN named myVirtualWAN in the resource group testRG.
Example 2
Get-AzVirtualWan -Name test*
Name : test1
Id : /subscriptions/{SubscriptionId}/resourceGroups/testRG/providers/Microsoft.Network/virtualWans/test1
AllowVnetToVnetTraffic : False
AllowBranchToBranchTraffic : True
Location : West US
Type : Microsoft.Network/virtualWans
ProvisioningState : Succeeded
Name : test2
Id : /subscriptions/{SubscriptionId}/resourceGroups/testRG/providers/Microsoft.Network/virtualWans/test2
AllowVnetToVnetTraffic : False
AllowBranchToBranchTraffic : True
Location : West US
Type : Microsoft.Network/virtualWans
ProvisioningState : Succeeded
This command gets all Virtual WANs starting with "test".
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
The resource name.
Type: | String |
Aliases: | ResourceName |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | True |
-ResourceGroupName
The resource group name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | True |
Inputs
None
Outputs
Related Links
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure PowerShell