如何在azure中重新启动应用程序网关
我的安装的当前结构 我必须在azure中重新启动应用程序网关如何在azure中重新启动应用程序网关,azure,azure-web-app-service,Azure,Azure Web App Service,我的安装的当前结构 我必须在azure中重新启动应用程序网关 Get-AzureRmApplicationGateway | Stop-AzureRmApplicationGateway | Start-AzureRmApplicationGateway 或者,您可以跳过get,只指定开始\停止的内容。以上内容将重新启动子系统中的所有网关。因此,如果这不是您的目标,您应该更具体 ps.为什么重新启动它?或使用AZ CLI(这解决了后端池反弹问题) az网络应用程序网关停止--id/subsc
Get-AzureRmApplicationGateway | Stop-AzureRmApplicationGateway | Start-AzureRmApplicationGateway
或者,您可以跳过get,只指定开始\停止的内容。以上内容将重新启动子系统中的所有网关。因此,如果这不是您的目标,您应该更具体
ps.为什么重新启动它?或使用AZ CLI(这解决了后端池反弹问题)
az网络应用程序网关停止--id/subscriptions//resourceGroups//providers/Microsoft.network/applicationGateways/
az网络应用程序网关启动--id/subscriptions//resourceGroups//providers/Microsoft.network/applicationGateways/
打开安装了Az模块的Azure Cloud Shell或本地PowerShell,并使用以下命令:
# Get Azure Application Gateway
$appgw=Get-AzApplicationGateway -Name <appgw_name> -ResourceGroupName <rg_name>
# Stop the Azure Application Gateway
Stop-AzApplicationGateway -ApplicationGateway $appgw
# Start the Azure Application Gateway (optional)
Start-AzApplicationGateway -ApplicationGateway $appgw
#获取Azure应用程序网关
$appgw=获取AzApplicationGateway-Name-ResourceGroupName
#停止Azure应用程序网关
停止AzApplicationGateway-ApplicationGateway$appgw
#启动Azure应用程序网关(可选)
启动AzApplicationGateway-ApplicationGateway$appgw
如果修改ILB ASE使用的vnet中的DNS,则需要重新启动appgw。否则,它将无法解析webapp的fqdn。这就是重新启动它的原因
# Get Azure Application Gateway
$appgw=Get-AzApplicationGateway -Name <appgw_name> -ResourceGroupName <rg_name>
# Stop the Azure Application Gateway
Stop-AzApplicationGateway -ApplicationGateway $appgw
# Start the Azure Application Gateway (optional)
Start-AzApplicationGateway -ApplicationGateway $appgw