Hi,
I was wondering what the recommendation is to stop deployment failures to Azure Web Site due to locked files, at the moment we manually stop and start the sites but I wondering if there’s a better way to automate the process ?
Thanks
John
Hi,
I was wondering what the recommendation is to stop deployment failures to Azure Web Site due to locked files, at the moment we manually stop and start the sites but I wondering if there’s a better way to automate the process ?
Thanks
John
Hi John,
Thanks for getting in touch! You could use Azure PowerShell steps in Octopus 3.1 to stop and start the sites automatically via Azure’s PowerShell modules.
Some information on those steps is here:
Hope that helps!
Paul
Hi Paul,
For other reading this I have (as yet untested) :
Stop Services Step
Stop-AzureWebsiteJob –Name notifications – This is the name of our webjob
Stop-AzureWebSite –Name #{WebSite} – This is a variable in our project
Start Services Step
Start-AzureWebSite –Name #{WebSite} – This is a variable in our project
Start-AzureWebsiteJob –Name notifications – This is the name of our webjob
Thanks Paul!
Hi John,
That should do the trick. In case it doesn’t, let us know.
Thanks,
Dalmiro
This worked brilliantly! Thanks