Microsoft Azure – 重新启动应用程序网关
在本文中,我们将了解如何在 azure 中重新启动应用程序网关。截至目前,Azure 门户中没有重新启动应用程序网关资源(停止和启动)的选项。
现在我们将使用 Azure 云外壳来重新启动应用程序网关。让我们开始吧。
执行:
步骤 1:登录 Azure 门户
步骤 2:从 Azure 门户访问Azure Cloud Shell
第 3 步:登录后,我们应该转到部署资源的 Azure 订阅。为此,请使用以下命令。
Set-AzureRmContext -SubscriptionName "subscription_name" | Out-Null
样本:
第 4 步:获取 Azure 应用程序网关并将变量存储在 $appgw
$appgw=Get-AzApplicationGateway -ResourceGroupName -Name
样本:
步骤 5:停止 Azure 应用程序网关
Stop-AzApplicationGateway -ApplicationGateway $appgw
样本:
步骤 6:获取 Azure 应用程序网关并将变量存储在 $appgw
$appgw=Get-AzApplicationGateway -ResourceGroupName -Name
样本:
步骤 7:启动 Azure 应用程序网关
Start-AzApplicationGateway -ApplicationGateway $appgw
样本:
您可以在 Azure 应用程序网关活动日志中验证状态以进行确认。参考下图:
就是这样!至此,我们已经成功重启了我们的 Azure 网关。