小智 10
或者使用 AZ CLI(这解决了后端池的弹跳问题)
az network application-gateway stop --id /subscriptions/<sub-id>/resourceGroups/<resource-group>/providers/Microsoft.Network/applicationGateways/<waf-name>
az network application-gateway start --id /subscriptions/<sub-id>/resourceGroups/<resource-group>/providers/Microsoft.Network/applicationGateways/<waf-name>
Get-AzureRmApplicationGateway | Stop-AzureRmApplicationGateway | Start-AzureRmApplicationGateway
或者您可以跳过获取并只指定开始\停止的内容。以上将重新启动子中的所有网关。所以如果这不是你的目标,你应该更具体。
附:为什么要重启?
小智 5
打开安装了 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
| 归档时间: | 
 | 
| 查看次数: | 7285 次 | 
| 最近记录: |