你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzNetworkWatcherConnectionMonitorEndpointObject
创建连接监视器终结点。
语法
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>]
说明
New-AzNetworkWatcherConnectionMonitorEndpointObject cmdlet 创建连接监视器终结点。
示例
示例 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"
}
]
}
参数
-Address
连接监视器终结点(IP 或域名)的地址。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-AzureArcVM
AzureArc VM 终结点交换机
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-AzureSubnet
Azure 子网终结点交换机。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-AzureVM
Azure VM 终结点交换机。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-AzureVMSS
Azure 虚拟机规模集。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-AzureVNet
Azure Vnet 终结点交换机。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-Confirm
提示你在运行 cmdlet 之前进行确认。
类型: | SwitchParameter |
别名: | cf |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-CoverageLevel
终结点的测试覆盖率。 支持的值为 Default、Low、BelowAverage、Average、AboveAvergae、Full。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ExcludeItem
需要从终结点范围中排除的项列表。
类型: | PSNetworkWatcherConnectionMonitorEndpointScopeItem[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ExternalAddress
外部地址终结点开关。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-IncludeItem
需要包含在 Endpont 范围中的项列表。
类型: | PSNetworkWatcherConnectionMonitorEndpointScopeItem[] |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-MMAWorkspaceMachine
MMA 工作区计算机终结点开关。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-MMAWorkspaceNetwork
MMA 工作区网络终结点交换机。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-Name
连接监视器终结点的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ResourceId
连接监视器终结点的资源 ID。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-WhatIf
显示运行该 cmdlet 时会发生什么情况。 cmdlet 未运行。
类型: | SwitchParameter |
别名: | wi |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
输入
None