Get-AzNetworkWatcherConnectionMonitor

傳回具有指定名稱或連接監視器清單的連接監視器

Syntax

Get-AzNetworkWatcherConnectionMonitor
   -NetworkWatcherName <String>
   -ResourceGroupName <String>
   [-Name <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzNetworkWatcherConnectionMonitor
   -NetworkWatcher <PSNetworkWatcher>
   [-Name <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzNetworkWatcherConnectionMonitor
   -Location <String>
   [-Name <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzNetworkWatcherConnectionMonitor
   -ResourceId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Get-AzNetworkWatcher 連線 ionMonitor Cmdlet 會傳回具有指定名稱/resourceId 的連接監視器,或對應至指定網路監看員/位置的連接監視器清單。

範例

範例 1

Get-AzNetworkWatcherConnectionMonitor -Location centraluseuap -Name cm

名称:cm 标识符:/subscriptions/0000000-0000-0000-0000-00000000000/resourceGro ups/NetworkWatcherRG/providers/Microsoft.Network/networkWatcher s/NetworkWatcher_centraluseuap/connectionMonitors/cm Etag : W/“40961b58-e379-4204-a47b-0c477739b095” ProvisioningState : Succeeded Source : { “ResourceId”: “/subscriptions/96e68903-0a56-4819-9987-8d08ad6 a1f99/resourceGroups/VarunRgCentralUSEUAP/providers/Microsoft.C ompute/virtualMachines/irinavm”, “Port”: 0 } 目的地: { ”Address“: ”google.com“, ”Port“: 80 } MonitoringIntervalInSeconds : 60 AutoStart : True StartTime : 1/12/2018 7:19:28 PM MonitoringStatus : Stopped Location : centraluseuap Type : Microsoft.Network/networkWatchers/connectionMonitors Tags : { ”key1“: ”value1“ }

參數

-DefaultProfile

用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Location

網路監看員的位置。

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Name

線上監視器名稱。

Type:String
Aliases:ConnectionMonitorName
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:True

-NetworkWatcher

網路監看員資源。

Type:PSNetworkWatcher
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-NetworkWatcherName

網路監看員的名稱。

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

網路監看員資源群組的名稱。

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceId

資源標識碼。

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

輸入

PSNetworkWatcher

String

輸出

PSConnectionMonitorResultV1

PSConnectionMonitorResultV2