Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 4.32 KB

File metadata and controls

31 lines (24 loc) · 4.32 KB
author mattchenderson
ms.service azure-functions
ms.topic include
ms.date 10/08/2021
ms.author mahender

You need to create a role assignment that provides access to the storage account for "AzureWebJobsStorage" at runtime. Management roles like Owner aren't sufficient. The Storage Blob Data Owner role covers the basic needs of Functions host storage - the runtime needs both read and write access to blobs and the ability to create containers. Several extensions use this connection as a default location for blobs, queues, and tables, and these uses may add requirements as noted in the table below. You may also need other permissions if you use "AzureWebJobsStorage" for any other purposes.

Extension Roles required Explanation
No extension (host only) Storage Blob Data Owner Functions uses blob storage for general coordination and as a default key store.

This scenario represents the minimum set of permissions for normal operation, but it doesn't include support for diagnostic events1.
No extension (host only), with support for diagnostic events1 Storage Blob Data Owner,
Storage Table Data Contributor
Diagnostic events are persisted in table storage using the AzureWebJobsStorage connection.
Azure Blobs (trigger only) All of:
Storage Account Contributor,
Storage Blob Data Owner,
Storage Queue Data Contributor
The blob trigger internally uses Azure Queues and writes blob receipts. It uses the AzureWebJobsStorage connection for these purposes, regardless of the connection configured for the trigger.
Azure Event Hubs (trigger only) (no change from default requirement)
Storage Blob Data Owner
Checkpoints are persisted in blobs using the AzureWebJobsStorage connection.
Timer trigger (no change from default requirement)
Storage Blob Data Owner
To ensure one execution per event, locks are taken with blobs using the AzureWebJobsStorage connection.
Durable Functions All of:
Storage Blob Data Contributor,
Storage Queue Data Contributor,
Storage Table Data Contributor
Durable Functions uses blobs, queues, and tables to coordinate activity functions and maintain orchestration state. It uses the AzureWebJobsStorage connection by default, but you can specify a different connection in the Durable Functions extension configuration.

1 For some types of issues, Azure Functions can raise a diagnostic event that can assist with troubleshooting, even when the issue prevents the function app from starting. If Storage Table Data Contributor isn't assigned, you might see warnings in your logs about the inability to write these events.