重置有故障的 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.

本文中的步骤和示例使用 Azure PowerShell Az 模块。The steps and examples in this article use Azure PowerShell Az modules. 若要在计算机上本地安装 Az 模块,请参阅安装 Azure PowerShellTo install the Az modules locally on your computer, see Install Azure PowerShell. 若要详细了解新 Az 模块,请参阅新 Azure Powershell Az 模块简介To learn more about the new Az module, see Introducing the new Azure PowerShell Az module. PowerShell cmdlet 经常更新。PowerShell cmdlets are updated frequently. 如果未运行最新版本,在说明中指定的值可能无法使用。If you are not running the latest version, the values specified in the instructions may fail. 若要在系统上查找已安装的 PowerShell 版本,请使用 Get-Module -ListAvailable Az cmdlet。To find the installed versions of PowerShell on your system, use the Get-Module -ListAvailable Az cmdlet.

重置线路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.