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

%3CLINGO-SUB%20id%3D%22lingo-sub-2977074%22%20slang%3D%22en-US%22%3EAzure%20(release%20pipeline)%20web%20job%20different%20names%20same%20app%20service%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2977074%22%20slang%3D%22en-US%22%3EUsing%20azure%20release%20pipeline%2C%20I%20am%20trying%20to%20deploy%26nbsp%3Bsame%20web%20job%26nbsp%3Bwith%26nbsp%3Bdifferent%20names%26nbsp%3B(as%20per%20stage)%20within%26nbsp%3Bsame%20app%20service.%20Steps%20that%20I%20follow%20(created%20a%20group%20task%20to%20repeat%20same%20steps%20in%20each%20stage)%20are%3A%3CBR%20%2F%3E%3CBR%20%2F%3E1.%20Copy%20ArtifactPath%2Ftriggered%2FSampleWebJob%20to%20ArtifactPath%2Ftriggered%2FSampleWebJob_stage%20**for%20instance%2C%20SampleWebJob_dev%3CBR%20%2F%3E%3CBR%20%2F%3E2.%20Delete%20original%20files%20and%20folder%20i.e%20SampleWebJob%3CBR%20%2F%3E%3CBR%20%2F%3E3.%20Deploy%20using%20azure%20app%20service%20deploy%20step%3CBR%20%2F%3E%3CBR%20%2F%3EProblem%3A%3CBR%20%2F%3ENext%20stage%20overwrites%20the%20web%20job%20deployed%20in%20previous%20stages.%3CBR%20%2F%3E%3CBR%20%2F%3EFor%20example%2C%26nbsp%3Bdev%26nbsp%3Bstage%20creates%20a%20new%20webjob%20SampleWebJob_dev%20but%20when%26nbsp%3Btest%26nbsp%3Bstage%20runs%20(manually)%2C%20SampleWebJob_dev%20gets%20replaced%20by%20SampleWebJob_test.%3CBR%20%2F%3E%3CBR%20%2F%3EHow%20to%20keep%20both%20webjobs%20in%20same%20app%20service%3F%3C%2FLINGO-BODY%3E
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

Problem:
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