Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to force an Azure WebApp to restart after each deploy?

I have a Web Application (Java) running on Azure. Every time we deploy it (via ARM template deployment) we have to restart it manually to make it work. Is there any setting to restart it automatically after each deployment?

SOLUTION: Just added a Azure Powershell task at the end of my relase pipeline with the command: Restart-AzureRmWebApp -ResourceGroupName xxx -Name xxx

like image 467
Adriano Rocha Avatar asked Dec 07 '25 04:12

Adriano Rocha


1 Answers

I'm not aware of an ARM configuration to automatically restart the app after the deployment. However, you could consider using the Restart-AzWebAppSlot PowerShell cmdlet after your deployment to restart it.

like image 172
Martin Brandl Avatar answered Dec 08 '25 18:12

Martin Brandl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!