为什么 Web 作业需要两个不同的存储帐户?

Why do we need two different storage accounts for Web Jobs?

为两个目的使用相同的存储连接字符串是否有任何副作用?

  1. AzureWebJobsDashboard
  2. AzureWebJobsStorage

Is there any side effect of using same storage connection string for both purposes?

简短的回答是,您可以为它们使用相同的存储连接。根据我的理解,Webjob 允许使用不同的存储来保存 Webjob 仪表板和 Webjob 信息。我们可以从 AzureWebJobsDashboard and AzureWebJobsStorage

获得更多信息

AzureWebJobsDashboard

This storage account is primarily used by Azure WebJob SDK to store logs from the WebJobs Dashboard. This connection string is optional and is required only if you are planning to use the dashboard for monitoring WebJobs.

The WebJob runtime creates two containers under this storage account with the names ‘azure-webjobs-dashboard’ and ‘azure-jobs-host-archive’. The azure-webJobs-dashboard container is used by the WebJob dashboard to store host and execution endpoint (function) details. Azure-jobs-host-archive is used as an archive for execution logs.

AzureWebJobsStorage

AzureWebJobsStorage should point to a storage account which will be primarily used for logging. WebJob runtime creates two containers in this storage account with the names ‘azure-jobs-host-output’ and ‘azure-webjobs-host’. If you point AzureWebJobsDashboard and AzureWebJobsStorage at two different storage accounts, you will notice that these two containers are duplicated in both the storage accounts.