Get-AzNetworkVirtualApplianceConnection
取得或列出連線到網路虛擬設備的網路虛擬設備連線。
語法
Get-AzNetworkVirtualApplianceConnection
-ResourceGroupName <String>
-VirtualApplianceName <String>
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzNetworkVirtualApplianceConnection
-VirtualAppliance <PSNetworkVirtualAppliance>
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzNetworkVirtualApplianceConnection
-VirtualApplianceResourceId <String>
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzNetworkVirtualApplianceConnection 命令會取得或列出連線到網路虛擬設備的連線。
範例
範例 1
Get-AzNetworkVirtualApplianceConnection -ResourceGroupName testrg -VirtualApplianceName nva
Name : defaultConnection
ProvisioningState : Succeeded
PropagateStaticRoutes : False
EnableInternetSecurity : False
BgpPeerAddress : []
Asn : 65222
TunnelIdentifier : 0
RoutingConfiguration : {
"AssociatedRouteTable": {
"Id":"/subscriptions/{subid}/resourceGroups/{resource-group-name}/providers/Microsoft.Network/virtualHubs/{hub-name}//hubRouteTables/defaultRouteTable"
},
"PropagatedRouteTables": {
"Labels": [],
"Ids": [
{
"Id": "/subscriptions/{subid}/resourceGroups/{resource-group-name}/providers/Microsoft.Network/virtualHubs/{hub-name}//hubRouteTables/defaultRouteTable"
}
]
},
"InboundRouteMap": {},
"OutboundRouteMap": {}
}
上述會使用資源群組和父 NVA 名稱,從 「testRG」 資源群組取得連線
範例 2
$nva = Get-AzNetworkVirtualAppliance -ResourceGroupName testrg -Name nva
Get-AzNetworkVirtualApplianceConnection -VirtualAppliance $nva
Name : defaultConnection
ProvisioningState : Succeeded
PropagateStaticRoutes : False
EnableInternetSecurity : False
BgpPeerAddress : []
Asn : 65222
TunnelIdentifier : 0
RoutingConfiguration : {
"AssociatedRouteTable": {
"Id":"/subscriptions/{subid}/resourceGroups/{resource-group-name}/providers/Microsoft.Network/virtualHubs/{hub-name}//hubRouteTables/defaultRouteTable"
},
"PropagatedRouteTables": {
"Labels": [],
"Ids": [
{
"Id": "/subscriptions/{subid}/resourceGroups/{resource-group-name}/providers/Microsoft.Network/virtualHubs/{hub-name}//hubRouteTables/defaultRouteTable"
}
]
},
"InboundRouteMap": {},
"OutboundRouteMap": {}
}
此 Cmdlet 會使用網路虛擬設備物件取得 NVA 連線。
參數
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Name
資源名稱。
類型: | String |
別名: | ResourceName, NetworkVirtualApplianceConnectionName |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | True |
-ResourceGroupName
資源組名。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-VirtualAppliance
此連線的父網路虛擬設備。
類型: | PSNetworkVirtualAppliance |
別名: | ParentNva, NetworkVirtualAppliance |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-VirtualApplianceName
父虛擬設備資源名稱。
類型: | String |
別名: | ParentNvaName, NetworkVirtualApplianceName |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-VirtualApplianceResourceId
此連線之父網路虛擬設備的資源標識碼。
類型: | String |
別名: | ParentNvaId, NetworkVirtualApplianceId |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |