You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-functions/flex-consumption-how-to.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Create and manage function apps in a Flex Consumption plan
3
3
description: "Learn how to create function apps hosted in the Flex Consumption plan in Azure Functions and how to modify specific settings for an existing function app."
4
-
ms.date: 05/12/2024
4
+
ms.date: 05/21/2024
5
5
ms.topic: how-to
6
6
ms.custom:
7
7
- build-2024
@@ -321,19 +321,19 @@ When choosing a subnet, these considerations apply:
321
321
322
322
## Configure deployment settings
323
323
324
-
In the Flex Consumption plan, the deployment package that contains your app's code is maintained in a blob storage container. By default, deployments use the same storage account (`AzureWebJobsStorage`) and connection string value used by the Functions runtime to maintain your app. The connection string is stored in the `DEPLOYMENT_STORAGE_CONNECTION_STRING` application setting. However, you can instead designate a blob container in a separate storage account as the deployment source for your code or change the authentication type.
324
+
In the Flex Consumption plan, the deployment package that contains your app's code is maintained in an Azure Blob Storage container. By default, deployments use the same storage account (`AzureWebJobsStorage`) and connection string value used by the Functions runtime to maintain your app. The connection string is stored in the `DEPLOYMENT_STORAGE_CONNECTION_STRING` application setting. However, you can instead designate a blob container in a separate storage account as the deployment source for your code. You can also change the authentication method used to access the container.
325
325
326
-
A custom deployment storage account should follow these considerations:
326
+
A customized deployment source should meet this criteria:
327
327
328
328
+ The storage account must already exist.
329
329
+ The container to use for deployments must also exist.
330
-
+Each app should have its own deployment container. The deployed application package will be overwritten when multiple apps share the same container.
330
+
+When more than one app uses the same storage account, each should have its own deployment container. Using a unique container for each app prevents the deployment packages from being overwritten, which would happen if apps shared the same container.
331
331
332
332
When configuring deployment storage authentication, keep these considerations in mind:
333
333
334
-
+ When using connection string, the application setting containing the connection string for the deployment storage acccount must already exist.
335
-
+ When using user assigned managed identity, the provided identity will be linked to the function app and the `Storage Blob Data Contributor` role scoped to the deployment storage account will be assigned to it.
336
-
+ When using system assigned managed identity, a new identity will be created if one does not already exist for your app. If one exists, then the `Storage Blob Data Contributor` role scoped to the deployment storage account will be assigned to it.
334
+
+ When you use a connection string to connect to the deployment storage account, the application setting that contains the connection string must already exist.
335
+
+ When you use a user-assigned managed identity, the provided identity gets linked to the function app. The `Storage Blob Data Contributor` role scoped to the deployment storage account also gets assigned to the identity.
336
+
+ When you use a system-assigned managed identity, an identity gets created when a valid system-assigned identity doesn't already exist in your app. When a system-assigned identity does exists, the `Storage Blob Data Contributor` role scoped to the deployment storage account also gets assigned to the identity.
337
337
338
338
To configure deployment settings when you create your function app in the Flex Consumption plan:
339
339
@@ -446,7 +446,7 @@ You can't currently change the instance memory size setting for your app using V
446
446
447
447
## Set always ready instance counts
448
448
449
-
When creating an app in a Flex Consumption plan, you can set the always ready instance count for specific groups (HTTP or Durable triggers) and triggers.
449
+
When creating an app in a Flex Consumption plan, you can set the always ready instance count for specific groups (HTTP or Durable triggers) and triggers. For individual functions, use the format `function:<FUNCTION_NAME>=n`.
This example sets the always ready instance count for all Durable trigger functions to `3` and sets the always ready instance count to `2` for a service bus triggered function named `function5`:
0 commit comments