Get-AzNetworkWatcherFlowLog

取得流量記錄資源,或指定訂用帳戶和區域中的流量記錄資源清單。

Syntax

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

Description

取得流量記錄資源,或指定訂用帳戶和區域中的流量記錄資源清單。

範例

範例 1

Get-AzNetworkWatcherFlowLog -Location eastus -Name pstest

名稱:pstest 標識符: /subscriptions/bbbbbb-bbbb-bbbb-bb/resourceGroups/NetworkWatcherRG/provid ers/Microsoft.Network/networkWatchers/NetworkWatcher_eastus/FlowLogs/pstest Etag : W/“f6047360-d797-4ca6-a9ec-28b5aec5c768” ProvisioningState : Succeeded Location : eastus TargetResourceId : /subscriptions/56abfbd6-ec72-4ce9-831f-bc2b6f2c5505/resourceGroups/MyFlowLog/provide rs/Microsoft.Network/networkSecurityGroups/MyNSG 儲存體標識符:/subscriptions/56abfbd6-ec72-4ce9-831f-bc2b6f2c5505/resourceGroups/FlowLogsV2Demo/provider s/Microsoft。儲存體/storageAccounts/MySTorage Enabled : True RetentionPolicy : { “Days”: 5, “Enabled”: true } Format: { “Type”: “JSON”, “Version”: 2 } FlowAnalyticsConfiguration : { “networkWatcherFlowAnalyticsConfiguration”: { “enabled”: true, “workspaceId”: “bbbbbb-bbbb-bbbb-bb”, “workspaceRegion”: “eastus”, “workspaceResourceId”: “/subscriptions/bb-bb-bb/resourcegr oups/flowlogsv2demo/providers/Microsoft.OperationalInsights/workspaces/MyWorkspace“, ”trafficAnalyticsInterval“: 60 }

範例 2

取得流量記錄資源,或指定訂用帳戶和區域中的流量記錄資源清單。 ( 自動產生 )

Get-AzNetworkWatcherFlowLog -NetworkWatcherName nw1 -ResourceGroupName myresourcegroup

參數

-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:FlowLogName
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

輸出

PSFlowLogResource