Stefan Zvonar
Stefan Zvonar

Reputation: 4319

How to set which storage account is used for web jobs (via Portal)

Where in the portal (classic or new) can you define which storage account to use for web jobs?

In particular, the AzureWebJobsDashboard and AzureWebJobsStorage connection strings. In my app.config, I have these set, but I want to use a different storage account for each environment (as I am using TimerTriggers which require a singleton lock on these).

After creating the storage accounts, is there a clean way to associate the hosting web app (or individual web job) with the appropriate storage account connection string via the Portal?

Kind regards,

Stefan

Upvotes: 2

Views: 778

Answers (2)

Michael Weinand
Michael Weinand

Reputation: 401

The AzureWebJobsDashboard and AzureWebJobsStorage connection strings can be found in the preview portal (https://portal.azure.com) under App Services -> [Your app that hosts the webjobs] -> Application Settings. There is a group of Connection Strings that you can editenter image description here

Upvotes: 4

Tomas Schier
Tomas Schier

Reputation: 407

You can set it in the classic portal under the web app for your web job under Application Diagnostics enter image description here

enter image description here

Or in the new portal under your web app under Diagnostics Logs enter image description here

Upvotes: 1

Related Questions