你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
IotHubDescriptionResource.ManualFailoverIotHub 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
手动启动IoT 中心到其次要区域的故障转移。 若要了解更多信息,请参阅 https://aka.ms/manualfailover
- 请求路径/订阅/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/failover
- 操作IdIotHub_ManualFailover
public virtual Azure.ResourceManager.ArmOperation ManualFailoverIotHub (Azure.WaitUntil waitUntil, Azure.ResourceManager.IotHub.Models.IotHubFailoverContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member ManualFailoverIotHub : Azure.WaitUntil * Azure.ResourceManager.IotHub.Models.IotHubFailoverContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
override this.ManualFailoverIotHub : Azure.WaitUntil * Azure.ResourceManager.IotHub.Models.IotHubFailoverContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
Public Overridable Function ManualFailoverIotHub (waitUntil As WaitUntil, content As IotHubFailoverContent, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation
参数
- waitUntil
- WaitUntil
Completed 如果方法应在服务上完成长时间运行的操作之前等待返回,则为 ; Started 如果它在启动操作后应返回,则为 。 有关长时间运行的操作的详细信息,请参阅 Azure.Core Long-Running 操作示例。
- content
- IotHubFailoverContent
要故障转移到的区域。 必须是 Azure 配对区域。 从位置属性中的辅助位置获取值。 若要了解详细信息,请参阅 https://aka.ms/manualfailover/region。
- cancellationToken
- CancellationToken
要使用的取消标记。
返回
例外
content
为 null。