Disable-AzTrafficManagerEndpoint
语法
Fields
Disable-AzTrafficManagerEndpoint
-Name <String>
-Type <String>
-ProfileName <String>
-ResourceGroupName <String>
[-Force]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Object
Disable-AzTrafficManagerEndpoint
-TrafficManagerEndpoint <TrafficManagerEndpoint>
[-Force]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
Disable-AzTrafficManagerEndpoint cmdlet 禁用Azure 流量管理器配置文件中的终结点。
可以使用管道运算符将 TrafficManagerEndpoint 对象传递给此 cmdlet,也可以使用 TrafficManagerEndpoint 参数传递 TrafficManagerEndpoint 对象。
或者,可以使用 Name 和 Type 参数以及 ProfileName 和 ResourceGroupName 参数来指定终结点名称和类型。
示例
示例 1:按名称禁用终结点
Disable-AzTrafficManagerEndpoint -Name "contoso" -ProfileName "ContosoProfile" -ResourceGroupName ResourceGroup11 -Type ExternalEndpoints
此命令在资源组 ResourceGroup11 中名为 ContosoProfile 的配置文件中禁用名为 contoso 的外部终结点。
该命令会提示你进行确认。
示例 2:使用管道禁用终结点
Get-AzTrafficManagerEndpoint -Name "contoso" -Type ExternalEndpoints -ProfileName "ContosoProfile" -ResourceGroupName "ResourceGroup11" | Disable-AzTrafficManagerEndpoint -Force
此命令从 ResourceGroup11 中名为 ContosoProfile 的配置文件中获取名为 Contoso 的外部终结点。
然后,该命令使用管道运算符将该终结点传递给 Disable-AzTrafficManagerEndpoint cmdlet。
该 cmdlet 禁用该终结点。
该命令指定 Force 参数。
因此,它不会提示你进行确认。
参数
-Confirm
在运行 cmdlet 之前,提示你进行确认。
参数属性
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
参数属性
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-Force
强制命令运行而不要求用户确认。
参数属性
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-Name
指定此 cmdlet 禁用的流量管理器终结点的名称。
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
Fields
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-ProfileName
指定此 cmdlet 禁用终结点的流量管理器配置文件的名称。
若要获取配置文件,请使用 Get-AzTrafficManagerProfile cmdlet。
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
Fields
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-ResourceGroupName
指定资源组的名称。
此 cmdlet 禁用此参数指定的组中的流量管理器终结点。
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
Fields
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-TrafficManagerEndpoint
指定此 cmdlet 禁用的流量管理器终结点。
若要获取 TrafficManagerEndpoint 对象,请使用 Get-AzTrafficManagerEndpoint cmdlet。
参数属性
参数集
Object
| Position: | Named |
| 必需: | True |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-Type
指定此 cmdlet 添加到流量管理器配置文件的终结点类型。
有效值为:
- AzureEndpoints
- ExternalEndpoints
- NestedEndpoints
参数属性
| 类型: | String
|
| 默认值: | None |
| 接受的值: | AzureEndpoints, ExternalEndpoints, NestedEndpoints |
| 支持通配符: | False |
| 不显示: | False |
参数集
Fields
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-WhatIf
显示 cmdlet 运行时会发生什么情况。
命令脚本未运行。
参数属性
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持以下常用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。
输出