Reputation: 383
I have a staging and a production slot on a Azure "Cloud Service (classic)".
My app polls a hangfire db for jobs. I don't want the staging instance to also pick up jobs. An "App Service" appears to have slot specific settings but there is no option in the portal for the "Cloud Service".
Is there a way to set slot specific settings for a Cloud Service in Azure?
Upvotes: 1
Views: 564
Reputation: 136196
Is there a way to set slot specific settings for a Cloud Service in Azure?
AFAIK, No. Other than the DNS name a staging slot is similar to production slot. The main purpose behind having staging and production slot is to quickly test the application in production like environment without actually deploying the code in production.
You could consume Azure Service Management API inside your Cloud Service code to decide whether the current code is running in production or staging environment and accordingly pick up the job.
Upvotes: 1