Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Get-AzNetworkWatcher

Gets the properties of a Network Watcher

Syntax

List

Get-AzNetworkWatcher
 [-Name <String>]
 [-ResourceGroupName <String>]
 [-DefaultProfile <IAzureContextContainer>]
 [<CommonParameters>]

SetByLocation

Get-AzNetworkWatcher
 -Location <String>
 [-DefaultProfile <IAzureContextContainer>]
 [<CommonParameters>]

Description

The Get-AzNetworkWatcher cmdlet gets one or more Azure Network Watcher resources.

Examples

Example 1: Get a Network Watcher

Get-AzNetworkWatcher -Name NetworkWatcher_westcentralus -ResourceGroupName NetworkWatcherRG
Name : NetworkWatcher_westcentralus
Id : /subscriptions/bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb/resourceGroups/NetworkWatcherRG/providers/Microsoft.Network/networkWatchers/NetworkWatcher_westcentralus
Etag : W/"ac624778-0214-49b9-a04c-794863485fa6"
Location : westcentralus
Tags :
ProvisioningState : Succeeded

Gets the Network Watcher named NetworkWatcher_westcentralus in the resource group NetworkWatcherRG.

Example 2: List Network Watchers using filtering

Get-AzNetworkWatcher -Name NetworkWatcher*
Name : NetworkWatcher_westcentralus1
Id : /subscriptions/bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb/resourceGroups/NetworkWatcherRG/providers/Microsoft.Network/networkWatchers/NetworkWatcher_westcentralus1
Etag : W/"ac624778-0214-49b9-a04c-794863485fa6"
Location : westcentralus
Tags :
ProvisioningState : Succeeded

Name : NetworkWatcher_westcentralus2
Id : /subscriptions/bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb/resourceGroups/NetworkWatcherRG/providers/Microsoft.Network/networkWatchers/NetworkWatcher_westcentralus2
Etag : W/"ac624778-0214-49b9-a04c-794863485fa6"
Location : westcentralus
Tags :
ProvisioningState : Succeeded

Gets the Network Watchers that start with "NetworkWatcher"

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure.

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

-Location

Location of the network watcher.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Name

The network watcher name.

Parameter properties

Type:String
Default value:None
Supports wildcards:True
DontShow:False
Aliases:ResourceName

Parameter sets

-ResourceGroupName

The resource group name.

Parameter properties

Type:String
Default value:None
Supports wildcards:True
DontShow:False

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

PSNetworkWatcher

Notes

Keywords: azure, azurerm, arm, resource, management, manager, network, networking, network watcher

Related Links


Feedback

Was this page helpful?