How to delete Azure WebJob?

Damir Dobric Posts

Next talks:

 

    

Follow me on Twitter: #ddobric



 

 

Archives

Sometimes you want to delete Azure WebJob. It is not the best way, but it is the way which always works, independent on which portal or VS tools version you use.
Connect to your WebSite via FTP client and navigate to folder shown below.

Devil" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;margin:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="image_thumbDevil" src="http://developers.de/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/damir_5F00_dobric/image_5F00_thumb6_5F00_thumb_5F00_3315099F.png" width="321" height="250" />

I had previously deployed a continuous job, which for some reason didn't want to stop. So I had to delete the job process files. I navigated folder continuous and deleted all files. After that you can go to Azure Portal and you will notice that the job is deleted.

image_thumb[4]

Note, if you want to stop the job or to update job executable file (i.e.: myjob.exe) you can simply delete executable file. This will cause the process to be stopped.
Internally this will create following error:

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.HostingProcess.Utilities.Sync, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.”


Posted May 19 2016, 12:02 PM by Damir Dobric
developers.de is a .Net Community Blog powered by daenet GmbH.