Azure (release pipeline) web job different names same app service

Occasional Visitor
Using azure release pipeline, I am trying to deploy same web job with different names (as per stage) within same app service. Steps that I follow (created a group task to repeat same steps in each stage) are:

1. Copy ArtifactPath/triggered/SampleWebJob to ArtifactPath/triggered/SampleWebJob_stage **for instance, SampleWebJob_dev

2. Delete original files and folder i.e SampleWebJob

3. Deploy using azure app service deploy step

Next stage overwrites the web job deployed in previous stages.

For example, dev stage creates a new webjob SampleWebJob_dev but when test stage runs (manually), SampleWebJob_dev gets replaced by SampleWebJob_test.

How to keep both webjobs in same app service?
0 Replies