你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Remove-AzTrafficManagerEndpoint
从流量管理器中删除终结点。
语法
Remove-AzTrafficManagerEndpoint
-Name <String>
-Type <String>
-ProfileName <String>
-ResourceGroupName <String>
[-Force]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-AzTrafficManagerEndpoint
-TrafficManagerEndpoint <TrafficManagerEndpoint>
[-Force]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
Remove-AzTrafficManagerEndpoint cmdlet 从 Azure 流量管理器中删除终结点。
此 cmdlet 将每个更改提交到流量管理器服务。 若要从本地流量管理器配置文件对象中删除多个终结点并在单个操作中提交更改,请使用 Remove-AzTrafficManagerEndpointConfig cmdlet。
可以使用管道运算符将 TrafficManagerEndpoint 对象传递给此 cmdlet,也可以使用 TrafficManagerEndpoint 参数指定 TrafficManagerEndpoint 对象。
或者,可以使用 名称 和 类型 参数以及 ProfileName 和 ResourceGroupName 参数来指定终结点名称和类型。
示例
示例 1:从配置文件中删除终结点
Remove-AzTrafficManagerEndpoint -Name "contoso" -ProfileName "ContosoProfile" -ResourceGroupName "ResourceGroup11" -Type AzureEndpoints
此命令从名为 ResourceGroup11 的资源组中名为 ContosoProfile 的配置文件中删除名为 contoso 的 Azure 终结点。
参数
-Confirm
在运行 cmdlet 之前,提示你进行确认。
类型: | SwitchParameter |
别名: | cf |
Position: | Named |
默认值: | False |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Force
强制命令运行而不要求用户确认。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Name
指定此 cmdlet 删除的流量管理器终结点的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ProfileName
指定此 cmdlet 从中删除终结点的流量管理器配置文件的名称。 若要获取配置文件,请使用 Get-AzTrafficManagerProfile cmdlet。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
指定资源组的名称。 此 cmdlet 从此参数指定的组中的流量管理器配置文件中删除流量管理器终结点。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-TrafficManagerEndpoint
指定此 cmdlet 删除的流量管理器终结点。 若要获取 TrafficManagerEndpoint 对象,请使用 Get-AzTrafficManagerEndpoint cmdlet。
类型: | TrafficManagerEndpoint |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Type
指定此 cmdlet 添加到流量管理器配置文件的终结点类型。 有效值为:
- AzureEndpoints
- ExternalEndpoints
- NestedEndpoints
类型: | String |
接受的值: | AzureEndpoints, ExternalEndpoints, NestedEndpoints |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-WhatIf
显示 cmdlet 运行时会发生什么情况。 cmdlet 未运行。
类型: | SwitchParameter |
别名: | wi |
Position: | Named |
默认值: | False |
必需: | False |
接受管道输入: | False |
接受通配符: | False |