< Back

New-AzureRmNetworkWatcher

Tue Jan 29, 2019 9:56 pm

NAME New-AzureRmNetworkWatcher



SYNOPSIS

Creates a new Network Watcher resource.





SYNTAX

New-AzureRmNetworkWatcher [-DefaultProfile <IAzureContextContainer>] -Location <String> -Name <String> -ResourceGroupName <String> [-Tag

<Hashtable>] [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The New-AzureRmNetworkWatcher cmdlet creates a new Network Watcher resource.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Location <String>

Location.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Name <String>

The network watcher name.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

The resource group name.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Tag <Hashtable>

Key-value pairs in the form of a hash table. For example:



@{key0="value0";key1=$null;key2="value2"}



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String

System.Collections.Hashtable





OUTPUTS

Microsoft.Azure.Commands.Network.Models.PSNetworkWatcher







NOTES





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



Example 1: Create a Network Watcher



New-AzureRmResourceGroup -Name NetworkWatcherRG -Location westcentralus

New-AzureRmNetworkWatcher -Name NetworkWatcher_westcentralus -ResourceGroup NetworkWatcherRG



Name : NetworkWatcher_westcentralus

Id : /subscriptions/bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb/resourceGroups/NetworkWatcherRG/providers/Microsoft.Network/networkWatchers

/NetworkWatcher_westcentralus

Etag : W/"7cf1f2fe-8445-4aa7-9bf5-c15347282c39"

Location : westcentralus

Tags :

ProvisioningState : Succeeded



This example creates a new Network Watcher inside a newly created Resource Group. Note that only one Network Watcher can be created per region per

subscription.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... orkwatcher

Get-AzureRmNetworkWatcher

Remove-AzureRmNetworkWatcher

New-AzureRmNetworkWatcherPacketCapture

New-AzureRmPacketCaptureFilterConfig

Get-AzureRmNetworkWatcherPacketCapture

Remove-AzureRmNetworkWatcherPacketCapture

Stop-AzureRmNetworkWatcherPacketCapture

Test-AzureRmNetworkWatcherIPFlow

Get-AzureRmNetworkWatcherNextHop

Get-AzureRmNetworkWatcherSecurityGroupView

Get-AzureRmNetworkWatcherTopology

Start-AzureRmNetworkWatcherResourceTroubleshooting