Redigera

Dela via


New-AzNetworkWatcherConnectionMonitorEndpointObject

Creates connection monitor endpoint.

Syntax

New-AzNetworkWatcherConnectionMonitorEndpointObject
   -Name <String>
   [-AzureVM]
   -ResourceId <String>
   [-Address <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzNetworkWatcherConnectionMonitorEndpointObject
   -Name <String>
   [-AzureVNet]
   -ResourceId <String>
   [-IncludeItem <PSNetworkWatcherConnectionMonitorEndpointScopeItem[]>]
   [-ExcludeItem <PSNetworkWatcherConnectionMonitorEndpointScopeItem[]>]
   [-CoverageLevel <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzNetworkWatcherConnectionMonitorEndpointObject
   -Name <String>
   [-AzureSubnet]
   -ResourceId <String>
   [-ExcludeItem <PSNetworkWatcherConnectionMonitorEndpointScopeItem[]>]
   [-CoverageLevel <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzNetworkWatcherConnectionMonitorEndpointObject
   -Name <String>
   [-ExternalAddress]
   -Address <String>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzNetworkWatcherConnectionMonitorEndpointObject
   -Name <String>
   [-MMAWorkspaceMachine]
   -ResourceId <String>
   -Address <String>
   [-IncludeItem <PSNetworkWatcherConnectionMonitorEndpointScopeItem[]>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzNetworkWatcherConnectionMonitorEndpointObject
   -Name <String>
   [-MMAWorkspaceNetwork]
   -ResourceId <String>
   -IncludeItem <PSNetworkWatcherConnectionMonitorEndpointScopeItem[]>
   [-ExcludeItem <PSNetworkWatcherConnectionMonitorEndpointScopeItem[]>]
   [-CoverageLevel <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzNetworkWatcherConnectionMonitorEndpointObject
   -Name <String>
   [-AzureVMSS]
   -ResourceId <String>
   [-IncludeItem <PSNetworkWatcherConnectionMonitorEndpointScopeItem[]>]
   [-ExcludeItem <PSNetworkWatcherConnectionMonitorEndpointScopeItem[]>]
   [-CoverageLevel <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzNetworkWatcherConnectionMonitorEndpointObject
   -Name <String>
   [-AzureArcVM]
   -ResourceId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

New-AzNetworkWatcherConnectionMonitorEndpointObject cmdlet creates connection monitor endpoint.

Examples

Example 1

$MySrcResourceId1 = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myresourceGroup/providers/Microsoft.OperationalInsights/workspaces/myworkspace"
$SrcEndpointScopeItem1 = New-AzNetworkWatcherConnectionMonitorEndpointScopeItemObject -Address "WIN-P0HGNDO2S1B"
$SourceEndpointObject1 = New-AzNetworkWatcherConnectionMonitorEndpointObject -Name "workspaceEndpoint" -MMAWorkspaceMachine -ResourceId $MySrcResourceId1 -IncludeItem $SrcEndpointScopeItem1

Name       : workspaceEndpoint
Type       : MMAWorkspaceMachine
ResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myresourceGroup/providers/Microsoft.OperationalInsights/workspaces/myworkspace
Address    :
Scope     : {
               "Include": [
                 {
                   "Address": "WIN-P0HGNDO2S1B"
                 }
               ]
             }

Parameters

-Address

Address of the connection monitor endpoint (IP or domain name).

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-AzureArcVM

AzureArc VM endpoint switch

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-AzureSubnet

Azure Subnet endpoint switch.

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-AzureVM

Azure VM endpoint switch.

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-AzureVMSS

Azure Virtual Machine Scale sets.

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-AzureVNet

Azure Vnet endpoint switch.

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-CoverageLevel

Test coverage for the endpoint. Supported values are Default, Low, BelowAverage, Average, AboveAvergae, Full.

Type:String
Position:Named
Default value:None
Required:False
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
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ExcludeItem

List of items which need to be excluded from endpoint scope.

Type:PSNetworkWatcherConnectionMonitorEndpointScopeItem[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ExternalAddress

External Address endpoint switch.

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-IncludeItem

List of items which need to be included into endpont scope.

Type:PSNetworkWatcherConnectionMonitorEndpointScopeItem[]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-MMAWorkspaceMachine

MMA Workspace Machine endpoint switch.

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-MMAWorkspaceNetwork

MMA Workspace Network endpoint switch.

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Name

The name of the connection monitor endpoint.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceId

Resource ID of the connection monitor endpoint.

Type:String
Position:Named
Default value:None
Required:True
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
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

PSNetworkWatcherConnectionMonitorEndpointObject