< Back

Set-AzureRmNetworkWatcherConnectionMonitor

Tue Jan 29, 2019 9:58 pm

NAME Set-AzureRmNetworkWatcherConnectionMonitor



SYNOPSIS

Update a connection monitor.





SYNTAX

Set-AzureRmNetworkWatcherConnectionMonitor [-AsJob] [-Confirm] [-DefaultProfile <IAzureContextContainer>] [-DestinationAddress <String>]

[-DestinationPort <Int32>] [-DestinationResourceId <String>] -InputObject <PSConnectionMonitorResult> [-MonitoringIntervalInSeconds <Int32>]

[-SourcePort <Int32>] -SourceResourceId <String> [-Tag <Hashtable>] [-WhatIf] [-ConfigureOnly] [<CommonParameters>]



Set-AzureRmNetworkWatcherConnectionMonitor [-AsJob] [-Confirm] [-DefaultProfile <IAzureContextContainer>] [-DestinationAddress <String>]

[-DestinationPort <Int32>] [-DestinationResourceId <String>] -Location <String> [-MonitoringIntervalInSeconds <Int32>] -Name <String> [-SourcePort

<Int32>] -SourceResourceId <String> [-Tag <Hashtable>] [-WhatIf] [-ConfigureOnly] [<CommonParameters>]



Set-AzureRmNetworkWatcherConnectionMonitor [-AsJob] [-Confirm] [-DefaultProfile <IAzureContextContainer>] [-DestinationAddress <String>]

[-DestinationPort <Int32>] [-DestinationResourceId <String>] [-MonitoringIntervalInSeconds <Int32>] -Name <String> -NetworkWatcherName <String>

-ResourceGroupName <String> [-SourcePort <Int32>] -SourceResourceId <String> [-Tag <Hashtable>] [-WhatIf] [-ConfigureOnly] [<CommonParameters>]



Set-AzureRmNetworkWatcherConnectionMonitor [-AsJob] [-Confirm] [-DefaultProfile <IAzureContextContainer>] [-DestinationAddress <String>]

[-DestinationPort <Int32>] [-DestinationResourceId <String>] [-MonitoringIntervalInSeconds <Int32>] -Name <String> -NetworkWatcher

<PSNetworkWatcher> [-SourcePort <Int32>] -SourceResourceId <String> [-Tag <Hashtable>] [-WhatIf] [-ConfigureOnly] [<CommonParameters>]



Set-AzureRmNetworkWatcherConnectionMonitor [-AsJob] [-Confirm] [-DefaultProfile <IAzureContextContainer>] [-DestinationAddress <String>]

[-DestinationPort <Int32>] [-DestinationResourceId <String>] [-MonitoringIntervalInSeconds <Int32>] -ResourceId <String> [-SourcePort <Int32>]

-SourceResourceId <String> [-Tag <Hashtable>] [-WhatIf] [-ConfigureOnly] [<CommonParameters>]





DESCRIPTION

The Set-AzureRmNetworkWatcherConnectionMonitor cmdlet updates the specified connection monitor.





PARAMETERS

-AsJob [<SwitchParameter>]

Run cmdlet in the background



Required? false

Position? named

Default value False

Accept pipeline input? False

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



-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



-DestinationAddress <String>

The Ip address of the connection monitor destination.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-DestinationPort <Int32>

Destination port.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-DestinationResourceId <String>

The ID of the connection monitor destination.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-InputObject <PSConnectionMonitorResult>

Connection monitor object.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Location <String>

Location of the network watcher.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-MonitoringIntervalInSeconds <Int32>

Monitoring interval in seconds.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

The connection monitor name.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-NetworkWatcher <PSNetworkWatcher>

The network watcher resource.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-NetworkWatcherName <String>

The name of network watcher.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ResourceGroupName <String>

The name of the network watcher resource group.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ResourceId <String>

Resource ID.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-SourcePort <Int32>

Source port.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-SourceResourceId <String>

The ID of the connection monitor source.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Tag <Hashtable>

A hashtable which represents resource tags.



Required? false

Position? named

Default value None

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



-ConfigureOnly [<SwitchParameter>]

Configure connection monitor, but do not start it



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

Microsoft.Azure.Commands.Network.Models.PSNetworkWatcher

System.String Microsoft.Azure.Commands.Network.Models.PSConnectionMonitorResult





OUTPUTS

Microsoft.Azure.Commands.Network.Models.PSConnectionMonitorResult







NOTES





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



Example 1: Update a connection monitor



PS C:\\> Set-AzureRmNetworkWatcherConnectionMonitor -Location centraluseuap -Name cm -SourceResourceId

/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RgCentralUSEUAP/providers/Microsoft.Compute/virtualMachines/vm

-DestinationAddress google.com -DestinationPort 80 -Tag @{"key1" = "value1"}



Name : cm

Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGro

ups/NetworkWatcherRG/providers/Microsoft.Network/networkWatcher

s/NetworkWatcher_centraluseuap/connectionMonitors/cm

Etag : W/"5b2b20e8-0ce0-417e-9607-76208149bb67"

ProvisioningState : Succeeded

Source : {

"ResourceId": "/subscriptions/00000000-0000-0000-0000-0000000

00000/RgCentralUSEUAP/providers/Microsoft.Compute/virtualMach

ines/vm",

"Port": 0

}

Destination : {

"Address": "google.com",

"Port": 80

}

MonitoringIntervalInSeconds : 60

AutoStart : True

StartTime : 1/12/2018 7:19:28 PM

MonitoringStatus : Running

Location : centraluseuap

Type : Microsoft.Network/networkWatchers/connectionMonitors

Tags : {

"key1": "value1"

}



In this example we update existing connection monitor by changing destinationAddress and adding tags.







RELATED LINKS

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

New-AzureRmNetworkWatcher

Get-AzureRmNetworkWatcher

Remove-AzureRmNetworkWatcher

Get-AzureRmNetworkWatcherNextHop

Get-AzureRmNetworkWatcherSecurityGroupView

Get-AzureRmNetworkWatcherTopology

Get-AzureRmNetworkWatcherTroubleshootingResult

New-AzureRmNetworkWatcherPacketCapture

New-AzureRmPacketCaptureFilterConfig

Get-AzureRmNetworkWatcherPacketCapture

Remove-AzureRmNetworkWatcherPacketCapture

Stop-AzureRmNetworkWatcherPacketCapture

Get-AzureRmNetworkWatcherConnectionMonitor

Get-AzureRmNetworkWatcherConnectionMonitorReport

Remove-AzureRmNetworkWatcherConnectionMonitor

Start-AzureRmNetworkWatcherConnectionMonitor

Stop-AzureRmNetworkWatcherConnectionMonitor

New-AzureRmNetworkWatcherConnectionMonitor