Skip to content

Commit 9f8411c

Browse files
committed
Fix some build issues
1 parent 25ac6d0 commit 9f8411c

File tree

2 files changed

+48
-39
lines changed

2 files changed

+48
-39
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,6 @@ az monitor metrics list --resource <ResourceId> --metric "InstanceCount" --inter
693693
az monitor metrics list --resource <ResourceId> --metric "CpuPercentage" --interval PT1H --output table
694694
```
695695

696-
> **Note**: Flex Consumption metrics are different from Linux Consumption metrics. When comparing performance before and after migration, keep in mind that you'll need to use different metrics to track similar performance characteristics.
697696

698697
##### [Azure portal](#tab/azure-portal)
699698

@@ -733,6 +732,10 @@ az monitor metrics list --resource <ResourceId> --metric "CpuPercentage" --inter
733732
| summarize successCount=countif(success == true), failureCount=countif(success == false) by bin(timestamp, 1h), cloud_RoleName
734733
| render timechart
735734
```
735+
### [Visual Studio Code](#tab/vs-code)
736+
737+
You can't currently review and set metrics using Visual Studio Code.
738+
736739
---
737740
738741
## Related content

articles/azure-functions/migration/migrate-plan-consumption-to-flex.md

Lines changed: 44 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ description: Learn how to migrate an existing function app in Azure running in a
44
ms.service: azure-functions
55
ms.collection:
66
- migration
7-
ms.date: 06/13/2025
7+
ms.date: 06/18/2025
88
ms.topic: concept-article
9-
zone_pivot_groups: programming-languages-set-functions
109

1110
#customer intent: As a developer, I want to learn how to migrate my existing serverless applications in Azure Functions from the Consumption host plan to the Flex Consumption hosting plan.
1211
---
@@ -15,15 +14,23 @@ zone_pivot_groups: programming-languages-set-functions
1514

1615
This article provides step-by-step instructions for migrating your existing function apps hosted in the [Consumption plan](../consumption-plan.md) in Azure Functions to instead use the [Flex Consumption plan](../flex-consumption-plan.md).
1716

17+
By migrating your existing serverless apps, your functions can easily take advantage of these benefits of the Flex Consumption plan:
18+
19+
+ Improved scalability
20+
+ Enhanced performance
21+
+ Improved security and networking.
22+
23+
For more information, see [Flex Consumption plan benefits](../flex-consumption-plan.md#benefits). For a detailed comparison between hosting plans, see [Azure Functions hosting options](../functions-scale.md).
24+
1825
## Considerations
1926

20-
+ Due to the significant configuration and behavior differences between the two plans, you aren't able to simply _shift_ an existing Consumption plan app to the Flex Consumption plan. The migration process instead has you create a new Flex Consumption plan app that is equivalent to your current app and running in the same resource group and with the same dependencies.
27+
Before staring a migration, keep these considerations in mind:
2128

22-
+ By migrating your existing serverless apps, your functions can take advantage of the benefits of the Flex Consumption plan, such as improved scalability, enhanced performance, and improved security and networking. For more information about, see [Flex Consumption plan benefits](../flex-consumption-plan.md#benefits). For a detailed comparison between hosting plans, see [Azure Functions hosting options](../functions-scale.md).
29+
+ Due to the significant configuration and behavior differences between the two plans, you aren't able to simply _shift_ an existing Consumption plan app to the Flex Consumption plan. The migration process instead has you create a new Flex Consumption plan app that is equivalent to your current app and running in the same resource group and with the same dependencies.
2330

2431
+ You should prioritize the migration of your apps that run in a Consumption plan on Linux.
2532

26-
+ This article assumes that you have a general understanding of Functions concepts and architectures and are familiar with features of any apps being migrated, such as triggers and bindings, authentication, and any networking customizations.
33+
+ This article assumes that you have a general understanding of Functions concepts and architectures and are familiar with features of your apps being migrated. Such concepts include triggers and bindings, authentication, and networking customization.
2734

2835
+ Where possible, this article is targeted to a specific language runtime stack. Make sure to choose your app's language at the top of the article.
2936

@@ -48,7 +55,7 @@ This article provides step-by-step instructions for migrating your existing func
4855

4956
+ [Azure CLI](/cli/azure), version v2.71.0, or a later version. Scripts are testing using Azure CLI in [Azure Cloud Shell](/azure/cloud-shell/overview).
5057

51-
+ The [resource-graph](https://learn.microsoft.com/en-us/azure/governance/resource-graph/first-query-azurecli) extension, which you can install by using the [`az extension add`](/cli/azure/extension#az-extension-add) command:
58+
+ The [resource-graph](../../governance/resource-graph/first-query-azurecli.md) extension, which you can install by using the [`az extension add`](/cli/azure/extension#az-extension-add) command:
5259

5360
```azurecli
5461
az extension add --name resource-graph
@@ -117,10 +124,10 @@ az graph query -q "resources | where subscriptionId == '$(az account show --quer
117124
--query data --output table
118125
```
119126

120-
This command generates a table with the app name, location, and resource group for all Consumption apps running on Windows in the current subscription.
121-
122127
---
123128

129+
This command generates a table with the app name, location, and resource group for all Consumption apps running on Windows in the current subscription.
130+
124131
You're promoted to install the [resource-graph extension](/cli/azure/graph), if it isn't already installed.
125132

126133
#### [Azure portal](#tab/azure-portal)
@@ -152,6 +159,8 @@ You're promoted to install the [resource-graph extension](/cli/azure/graph), if
152159
| project name, location, resourceGroup
153160
```
154161
162+
---
163+
155164
This command generates a table with the app name, location, and resource group for all Consumption apps running on Windows in the current subscription.
156165
157166
---
@@ -215,33 +224,22 @@ The Flex Consupmtion plan doesn't currently support all of the language stack ve
215224

216225
Use this [`az functionapp list-flexconsumption-runtimes`](/cli/azure/functionapp#az-functionapp-list-flexconsumption-runtimes) command to verify Flex Consumption plan support for your language stack version in a specific region:
217226

218-
::: zone pivot="programming-language-csharp"
219227
```azurecli
220-
az functionapp list-flexconsumption-runtimes --location <REGION> --runtime dotnet-isolated --query '[].{version:version}' -o tsv
228+
az functionapp list-flexconsumption-runtimes --location <REGION> --runtime <LANGUAGE_STACK> --query '[].{version:version}' -o tsv
221229
```
222-
::: zone-end
223-
::: zone pivot="programming-language-python"
224-
```azurecli
225-
az functionapp list-flexconsumption-runtimes --location <REGION> --runtime python --query '[].{version:version}' -o tsv
226-
```
227-
::: zone-end
228-
::: zone pivot="programming-language-javascript,programming-language-typescript"
229-
```azurecli
230-
az functionapp list-flexconsumption-runtimes --location <REGION> --runtime node --query '[].{version:version}' -o tsv
231-
```
232-
::: zone-end
233-
::: zone pivot="programming-language-java"
234-
```azurecli
235-
az functionapp list-flexconsumption-runtimes --location <REGION> --runtime java --query '[].{version:version}' -o tsv
236-
```
237-
::: zone-end
238-
::: zone pivot="programming-language-powershell"
239-
```azurecli
240-
az functionapp list-flexconsumption-runtimes --location <REGION> --runtime powershell --query '[].{version:version}' -o tsv
241-
```
242-
::: zone-end
243230

244-
In this example, replace `<REGION>` with your current region. This command displays all versions of the specified language stack supported by the Flex Consumption plan in your region.
231+
In this example, replace `<REGION>` with your current region and `<LANGUAGE_STACK>` with one of these vaules:
232+
233+
| Language stack | Value |
234+
| ------- | ----- |
235+
| [C# (isolated worker model)](../dotnet-isolated-process-guide.md) | `dotnet-isolated` |
236+
| [Java](../functions-reference-java.md) | `java` |
237+
| [JavaScript](../functions-reference-node.md) | `node` |
238+
| [PowerShell](../functions-reference-powershell.md) | `powershell` |
239+
| [Python](../functions-reference-python.md) | `python` |
240+
| [TypeScript](../functions-reference-node.md) | `node` |
241+
242+
This command displays all versions of the specified language stack supported by the Flex Consumption plan in your region.
245243

246244
#### [Azure portal](#tab/azure-portal)
247245

@@ -814,7 +812,7 @@ There are various ways to create a function app in the Flex Consumption plan alo
814812
+ [azd](../create-first-function-azure-developer-cli.md)
815813
+ [Bicep](../functions-create-first-function-bicep.md)
816814
+ [Terraform](../functions-create-first-function-terraform.md)
817-
+ [Visual Studio Code](../functions-develop-vs-code.md#create-azure-resources)
815+
+ [Visual Studio Code](../functions-develop-vs-code.md#publish-to-azure)
818816
+ [Visual Studio](../functions-develop-vs.md#publish-to-azure)
819817
820818
>[!TIP]
@@ -831,10 +829,10 @@ Before deploying your code, you must configure the new app with the relevant Fle
831829
832830
Run this script that performs these tasks:
833831
834-
1. Gets app settings from the old app, ignoring settings that don't apply in a Flex Consumption plan or that already exist in the new app.
835-
1. Writes the collected settings locally to a temporary file.
836-
1. Applies settings from the file to your new app.
837-
1. Deletes the temporary file.
832+
1. Gets app settings from the old app, ignoring settings that don't apply in a Flex Consumption plan or that already exist in the new app.
833+
1. Writes the collected settings locally to a temporary file.
834+
1. Applies settings from the file to your new app.
835+
1. Deletes the temporary file.
838836
839837
```azurecli
840838
sourceAppName=<SOURCE_APP_NAME>
@@ -1414,10 +1412,14 @@ If your app hasn't
14141412
14151413
After migrating to Flex Consumption, implement a structured monitoring approach to ensure optimal performance and detect any issues. For more information, see [Configure monitoring](../flex-consumption-how-to.md#configure-monitoring).
14161414
1417-
### Capture performance and cost benchmarks
14181415
14191416
14201417
1418+
### Capture performance and cost benchmarks
1419+
1420+
>[!NOTE]
1421+
>Flex Consumption plan metrics differ from Consumption plan metrics. When comparing performance before and after migration, keep in mind that you must use different metrics to track similar performance characteristics.
1422+
14211423
### Shut down the original app (optional)
14221424
14231425
After thoroughly testing your new Flex Consumption function app and validating that everything is working as expected, you may want to clean up resources to avoid unnecessary costs. This should only be done once you're completely confident that the migration has been successful and all functionality has been verified over a sufficient period.
@@ -1595,6 +1597,10 @@ Thank you for following this migration guide. Your investment in modernizing you
15951597
15961598
Happy coding!
15971599
1600+
## Providing feedback
1601+
1602+
If you encounter issues with your migration using this article or want to provide other feedback on this guidance, please use this Microsoft Q&A question to provide your feedback: `<<QUESTION>>`
1603+
15981604
## Related articles
15991605
16001606
+ [Flex Consumption plan overview](../flex-consumption-plan.md)

0 commit comments

Comments
 (0)