New-AzNetworkWatcherConnectionMonitorTestGroupObject

Create a connection monitor test group.

Note

This is the previous version of our documentation. Please consult the most recent version for up-to-date information.

Syntax

New-AzNetworkWatcherConnectionMonitorTestGroupObject
   -Name <String>
   -TestConfiguration <PSNetworkWatcherConnectionMonitorTestConfigurationObject[]>
   -Source <PSNetworkWatcherConnectionMonitorEndpointObject[]>
   -Destination <PSNetworkWatcherConnectionMonitorEndpointObject[]>
   [-Disable]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The New-AzNetworkWatcherConnectionMonitorTestGroupObject cmdlet creates a connection monitor test group.

Examples

Example 1: Create a test group with 2 testConfigurations, w source and 2 destination endpoints

$testGroup1 = New-AzNetworkWatcherConnectionMonitorTestGroupObject -Name testGroup1 -TestConfiguration $tcpTestConfiguration, $icmpTestConfiguration -Source $vmEndpoint, $workspaceEndpoint -Destination $bingEndpoint, $googleEndpoint

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DefaultProfile

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

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

List of destination endpoints.

Type:PSNetworkWatcherConnectionMonitorEndpointObject[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Disable

Flag indicating whether test group is disabled.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

The test group name.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Source

List of source endpoints.

Type:PSNetworkWatcherConnectionMonitorEndpointObject[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TestConfiguration

List of test configuration.

Type:PSNetworkWatcherConnectionMonitorTestConfigurationObject[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

PSNetworkWatcherConnectionMonitorTestGroupObject