Hello @Siddharth Joshi
Web Apps are designed to run multiple Web Jobs and there is no platform limit.
Zip deployment will fully overwrite the code. If you have webjob A already deployed and you then deploy a zip which only had webjob B, you will end up with just webjob B. You need to deploy a single zip file with both webjob A and webjob B to retain both of them.
You may use the approach described below:
Assume your Git project looks like this:
1. Add a variable (such as buildporj
with default value none
) to record the changed webJob project package.
2. Add NuGet restore task for the WebJob1/WebJob1.sln
.
3. Add Build task with the MSBuild arguments:
/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:SkipInvalidConfigurations=true /p:PackageLocation="$(Build.BinariesDirectory)\\"
4. Publish Build Artifacts (Path to Publish: $(build.artifactstagingdirectory); Artifact Name: drop; Artifact Type: Server)
5.Add Azure App Service Deploy task by specifing the Package or folder option as $(Build.ArtifactStagingDirectory)\**\$(buildproj)
.