重置有故障的 ExpressRoute 线路Reset a failed ExpressRoute circuit

针对 ExpressRoute 线路执行的某个操作未成功完成时,该线路可能进入“故障”状态。When an operation on an ExpressRoute circuit does not complete successfully, the circuit may go into a 'failed' state. 本文帮助你重置有故障的 Azure ExpressRoute 线路。This article helps you reset a failed Azure ExpressRoute circuit.

Note

本文进行了更新,以便使用新的 Azure PowerShell Az 模块。This article has been updated to use the new Azure PowerShell Az module. 你仍然可以使用 AzureRM 模块,至少在 2020 年 12 月之前,它将继续接收 bug 修补程序。You can still use the AzureRM module, which will continue to receive bug fixes until at least December 2020. 若要详细了解新的 Az 模块和 AzureRM 兼容性,请参阅新 Azure Powershell Az 模块简介To learn more about the new Az module and AzureRM compatibility, see Introducing the new Azure PowerShell Az module. 有关 Az 模块安装说明,请参阅安装 Azure PowerShellFor Az module installation instructions, see Install Azure PowerShell.

重置线路Reset a circuit

  1. 安装最新版本的 Azure Resource Manager PowerShell cmdlet。Install the latest version of the Azure Resource Manager PowerShell cmdlets. 有关详细信息,请参阅安装和配置 Azure PowerShellFor more information, see Install and configure Azure PowerShell.

  2. 使用提升的权限打开 PowerShell 控制台,并连接到帐户。Open your PowerShell console with elevated privileges, and connect to your account. 使用下面的示例来帮助连接:Use the following example to help you connect:

    Connect-AzAccount
    
  3. 如果有多个 Azure 订阅,请查看该帐户的订阅。If you have multiple Azure subscriptions, check the subscriptions for the account.

    Get-AzSubscription
    
  4. 指定要使用的订阅。Specify the subscription that you want to use.

    Select-AzSubscription -SubscriptionName "Replace_with_your_subscription_name"
    
  5. 运行以下命令可重置处于故障状态的线路:Run the following commands to reset a circuit that is in a failed state:

    $ckt = Get-AzExpressRouteCircuit -Name "ExpressRouteARMCircuit" -ResourceGroupName "ExpressRouteResourceGroup"
    
    Set-AzExpressRouteCircuit -ExpressRouteCircuit $ckt
    

现在,该线路应已恢复正常。The circuit should now be healthy. 如果线路仍处于故障状态,请向 Microsoft 支持部门开具支持票证。Open a support ticket with Microsoft support if the circuit is still in a failed state.

后续步骤Next steps

如果仍然存在问题,请通过 Microsoft 支持部门 开具一个支持票证。Open a support ticket with Microsoft support if you are still experiencing issues.