Skip to content

Commit 401eb37

Browse files
authored
Merge pull request #275603 from ggailey777/release-flex
[ASK MODE][Build 2024][Functions] Remove unsupported instance size before Build
2 parents 6967661 + 48b4d05 commit 401eb37

9 files changed

+11
-13
lines changed

articles/azure-functions/event-driven-scaling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ You might decide to restrict the maximum number of instances an app can use for
5555

5656
### Flex Consumption plan
5757

58-
By default, apps running in a Flex Consumption plan have limit of `100` overall instances. Currently the lowest maximum instance count value is `40`, and the highest supported maximum instance count value is `1000`. When you use the [`az functionapp create`] command to create a function app in the Flex Consumption plan, use the `--maximum-instance-count` parameter to set this maximum instance count for of your app. This example creates an app with a maximum instance count of `200`:
58+
By default, apps running in a Flex Consumption plan have limit of `100` overall instances. Currently the lowest maximum instance count value is `40`, and the highest supported maximum instance count value is `1000`. When you use the [`az functionapp create`](/cli/azure/functionapp#az-functionapp-create) command to create a function app in the Flex Consumption plan, use the `--maximum-instance-count` parameter to set this maximum instance count for of your app. This example creates an app with a maximum instance count of `200`:
5959

6060
```azurecli
6161
az functionapp create --resource-group <RESOURCE_GROUP> --name <APP_NAME> --storage <STORAGE_ACCOUNT_NAME> --runtime <LANGUAGE_RUNTIME> --runtime-version <RUNTIME_VERSION> --flexconsumption-location <REGION> --maximum-instance-count 200

articles/azure-functions/flex-consumption-how-to.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,10 +415,10 @@ At any point, you can change the instance memory size setting used by your app.
415415

416416
### [Azure CLI](#tab/azure-cli)
417417

418-
This example uses the [`az functionapp scale config set`](/cli/azure/functionapp/scale/config#az-functionapp-scale-config-set) command to change the instance memory size setting to 512 MB:
418+
This example uses the [`az functionapp scale config set`](/cli/azure/functionapp/scale/config#az-functionapp-scale-config-set) command to change the instance memory size setting to 4,096 MB:
419419

420420
```azurecli
421-
az functionapp scale config set --resource-group <resourceGroup> --name <APP_NAME> --instance-memory 512
421+
az functionapp scale config set --resource-group <resourceGroup> --name <APP_NAME> --instance-memory 4096
422422
```
423423

424424
### [Azure portal](#tab/azure-portal)

articles/azure-functions/flex-consumption-plan.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ Flex Consumption expands on the traditional benefits of Consumption plan by addi
4848

4949
When you create your function app in a Flex Consumption plan, you can select the memory size of the instances on which your app runs. See [Billing](#billing) to learn how instance memory sizes affect the costs of your function app.
5050

51-
Currently, Flex Consumption offers these instance memory size options: 512 MB, 2,048 MB, and 4,096 MB.
51+
Currently, Flex Consumption offers instance memory size options of both 2,048 MB and 4,096 MB.
5252

5353
When deciding on which instance memory size to use with your apps, here are some things to consider:
5454

55-
+ The 2,048-MB instance memory size is the default and should be used for most scenarios. The 512 MB and 4,096-MB instance memory sizes are available for scenarios that best suit your application's concurrency or processing power requirements. For more information, see [Configure instance memory](flex-consumption-how-to.md#configure-instance-memory).
55+
+ The 2,048-MB instance memory size is the default and should be used for most scenarios. Use the 4,096-MB instance memory size for scenarios where your app requires more concurrency or higher processing power. For more information, see [Configure instance memory](flex-consumption-how-to.md#configure-instance-memory).
5656
+ You can change the instance memory size at any time. For more information, see [Configure instance memory](flex-consumption-how-to.md#configure-instance-memory).
5757
+ Instance resources are shared between your function code and the Functions host.
5858
+ The larger the instance memory size, the more each instance can handle as far as concurrent executions or more intensive CPU or memory workloads. Specific scale decisions are workload-specific.
@@ -116,7 +116,6 @@ Currently, each region in a given subscription has a memory limit of 512,000 MB
116116

117117
| Instance memory size (MB) | Max instance counts (per region) |
118118
| ----- | ---- |
119-
| `512 MB` | 1,000 |
120119
| `2048 MB` | 250 |
121120
| `4096 MB` | 125 |
122121

articles/azure-functions/functions-app-settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ In the [Flex Consumption plan](./flex-consumption-plan.md), these site propertie
838838
| `properties.IsXenon` |Not valid|
839839
| `properties.windowsFxVersion` |Not valid|
840840
| `properties.alwaysOn` |Not valid|
841-
| `properties.siteConfig.preWarmedInstanceCount` | Renamed as `` |
841+
| `properties.siteConfig.preWarmedInstanceCount` | Renamed as `alwaysReadyInstances` |
842842
| `properties.siteConfig.functionAppScaleLimit` |Renamed as `maximumInstanceCount`|
843843
| `properties.containerSize` |Renamed as `instanceMemoryMB`|
844844
| `properties.javaVersion` | Replaced by `version` in `properties.functionAppConfig.runtime`|

articles/azure-functions/functions-concurrency.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ The Flex Consumption plan scales all HTTP trigger functions together as a group.
3939

4040
| Instance size (MB) | Default concurrency<sup>*</sup> |
4141
| ---- | ---- |
42-
| `512` | `4` |
4342
| `2048` | `16` |
4443
| `4096` | `32` |
4544

articles/azure-functions/functions-scale.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The following is a summary of the benefits of the various options for Azure Func
3939
|**[Flex Consumption plan]**| Get high scalability with compute choices, virtual networking, and pay-as-you-go billing.<br/><br/>On the Flex Consumption plan, instances of the Functions host are dynamically added and removed based on the configured per instance concurrency and the number of incoming events. <br/><br/> ✔ Reduce cold starts by specifying a number of pre-provisioned (always ready) instances.<br/> ✔ Supports virtual networking for added security.<br/>✔ Pay when your functions are running.<br/>✔ Scales automatically, even during periods of high load.|
4040
|**[Premium plan]**|Automatically scales based on demand using prewarmed workers, which run applications with no delay after being idle, runs on more powerful instances, and connects to virtual networks. <br/><br/>Consider the Azure Functions Premium plan in the following situations: <br/><br/>✔ Your function apps run continuously, or nearly continuously.<br/>✔ You want more control of your instances and want to deploy multiple function apps on the same plan with event-driven scaling.<br/>✔ You have a high number of small executions and a high execution bill, but low GB seconds in the Consumption plan.<br/>✔ You need more CPU or memory options than are provided by consumption plans.<br/>✔ Your code needs to run longer than the maximum execution time allowed on the Consumption plan.<br/>✔ You require virtual network connectivity.<br/>✔ You want to provide a custom Linux image in which to run your functions. |
4141
|**[Dedicated plan]** |Run your functions within an App Service plan at regular [App Service plan rates](https://azure.microsoft.com/pricing/details/app-service/windows/).<br/><br/>Best for long-running scenarios where [Durable Functions](durable/durable-functions-overview.md) can't be used. Consider an App Service plan in the following situations:<br/><br/>✔ You have existing and underutilized virtual machines that are already running other App Service instances.<br/>✔ You must have fully predictable billing, or you need to manually scale instances.<br/>✔ You want to run multiple web apps and function apps on the same plan<br/>✔ You need access to larger compute size choices.<br/>✔ Full compute isolation and secure network access provided by an App Service Environment (ASE).<br/>✔ Very high memory usage and high scale (ASE).|
42-
| **[Container Apps]** | Create and deploy containerized function apps in a fully managed environment hosted by Azure Container Apps.<br/><br/>Use the Azure Functions programming model to build event-driven, serverless, cloud native function apps. Run your functions alongside other microservices, APIs, websites, and workflows as container-hosted programs. Consider the Azure Functions Premium plan in the following situations:<br/><br/>✔ You want to package custom libraries with your function code to support line-of-business apps.<br/>✔ You need to migration code execution from on-premises or legacy apps to cloud native microservices running in containers.<br/>✔ When you want to avoid the overhead and complexity of managing Kubernetes clusters and dedicated compute.<br/>✔ Your functions need high-end processing power provided by dedicated GPU compute resources. |
42+
| **[Container Apps]** | Create and deploy containerized function apps in a fully managed environment hosted by Azure Container Apps.<br/><br/>Use the Azure Functions programming model to build event-driven, serverless, cloud native function apps. Run your functions alongside other microservices, APIs, websites, and workflows as container-hosted programs. Consider hosting your functions on Container Apps in the following situations:<br/><br/>✔ You want to package custom libraries with your function code to support line-of-business apps.<br/>✔ You need to migration code execution from on-premises or legacy apps to cloud native microservices running in containers.<br/>✔ When you want to avoid the overhead and complexity of managing Kubernetes clusters and dedicated compute.<br/>✔ Your functions need high-end processing power provided by dedicated GPU compute resources. |
4343

4444
The remaining tables in this article compare hosting options based on various features and behaviors.
4545

articles/azure-functions/monitor-functions-reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ These metrics are used specifically when [estimating Consumption plan costs](fun
3131

3232
#### [Flex Consumption plan](#tab/flex-consumption-plan)
3333

34-
These metrics are used to estimate the costs associated with _on demand_ and _always ready_ meters used for billing:
34+
These metrics are used to estimate the costs associated with _on demand_ and _always ready_ meters used for billing in a [Flex Consumption plan]:
3535

3636
| Metric | Description | Meter calculation |
3737
| ------ | ---------- | ----------------- |
@@ -41,7 +41,7 @@ These metrics are used to estimate the costs associated with _on demand_ and _al
4141
| **AlwaysReadyFunctionExecutionUnits** | Total MB-millseconds from always ready instances while actively executing functions. | `AlwaysReadyFunctionExecutionUnits / 1,024,000` is the Always Ready Execution Time meter, in GB-seconds. |
4242
| **AlwaysReadyUnits** | The total MB-millseconds of always ready instances assigned to the app, whether or not functions are actively executing. | `AlwaysReadyUnits / 1,024,000` is the Always Ready Baseline meter, in GB-seconds. |
4343

44-
In this table, all execution units are calculated by multipling the fixed instance memory size, such as 512 MB and 2,048 MB, by total execution times, in milliseconds.
44+
In this table, all execution units are calculated by multipling the fixed instance memory size, such as 2,048 MB or 4,096 MB, by total execution times, in milliseconds.
4545

4646
---
4747

includes/functions-limits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ Notes on service limits:
3737
10. Including the production slot.
3838
11. There's currently a limit of 5000 function apps in a given subscription.
3939
12. The Flex Consumption plan is currently in preview.
40-
13. Flex Consumption plan instance sizes are defined as: 512 MB, 2,048 MB, and 4,096 MB. For more information, see [Instance memory](../articles/azure-functions/flex-consumption-plan.md#instance-memory).
40+
13. Flex Consumption plan instance sizes are currently defined as either 2,048 MB or 4,096 MB. For more information, see [Instance memory](../articles/azure-functions/flex-consumption-plan.md#instance-memory).
4141
14. Flex Consumption plan during preview has a regional subscription quota that limits the total memory usage of all instances across a given region. For more information, see [Instance memory](../articles/azure-functions/flex-consumption-plan.md#instance-memory).
4242
15. In a Flex Consumption plan, the host doesn't enforce an execution time limit. However, there are currently no guarantees because the platform might need to terminate your instances during scale-in, deployments, or to apply updates.

includes/functions-publish-project-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ ms.author: glenga
88

99
## Deploy the function project to Azure
1010

11-
After you've successfully created your function app in Azure, you're now ready to deploy your local functions project by using the [func azure functionapp publish](../articles/azure-functions/functions-run-local.md#project-file-deployment) command.
11+
After you've successfully created your function app in Azure, you're now ready to deploy your local functions project by using the [`func azure functionapp publish`](../articles/azure-functions/functions-run-local.md#project-file-deployment) command.
1212

1313
[!INCLUDE [functions-publish-project-cli-clean](functions-publish-project-cli-clean.md)]

0 commit comments

Comments
 (0)