Skip to content

Commit 021eed5

Browse files
committed
Adding note
1 parent 4cf805b commit 021eed5

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,6 +1588,8 @@ When migrating your IaC from Consumption to Flex Consumption, consider these imp
15881588
| Configuration | App settings | `functionAppConfig` section |
15891589
| Storage content share | `WEBSITE_CONTENTSHARE` setting | `deployment.storage` in `functionAppConfig` |
15901590

1591+
The examples below demonstrate the key differences between Consumption and Flex Consumption plan resource definitions, and use system assigned managed identity, but they are not complete. They don't include all required resources such as storage accounts, Application Insights, or all necessary role assignments. For complete, production-ready examples, review the [Flex Consumption IaC samples](https://github.com/Azure-Samples/azure-functions-flex-consumption-samples/tree/main/IaC).
1592+
15911593
#### [Bicep](#tab/bicep)
15921594

15931595
**Consumption plan (before):**
@@ -1621,6 +1623,7 @@ resource functionApp 'Microsoft.Web/sites@2022-03-01' = {
16211623
{ name: 'WEBSITE_CONTENTAZUREFILECONNECTIONSTRING__accountName', value: storageAccount.name }
16221624
{ name: 'WEBSITE_CONTENTSHARE', value: functionAppName }
16231625
{ name: 'APPLICATIONINSIGHTS_CONNECTION_STRING', value: appInsights.properties.ConnectionString }
1626+
{ name: 'APPLICATIONINSIGHTS_AUTHENTICATION_STRING', value: 'Authorization=AAD' }
16241627
]
16251628
}
16261629
}
@@ -1730,7 +1733,8 @@ resource "azurerm_linux_function_app" "consumption" {
17301733
}
17311734
17321735
app_settings = {
1733-
"FUNCTIONS_WORKER_RUNTIME" = "dotnet-isolated"
1736+
"FUNCTIONS_WORKER_RUNTIME" = "dotnet-isolated"
1737+
"APPLICATIONINSIGHTS_AUTHENTICATION_STRING" = "Authorization=AAD"
17341738
}
17351739
}
17361740
```
@@ -1778,8 +1782,9 @@ resource "azurerm_function_app_flex_consumption" "flex" {
17781782
}
17791783
17801784
app_settings = {
1781-
"AzureWebJobsStorage" = "" # Required: see note below
1782-
"AzureWebJobsStorage__accountName" = azurerm_storage_account.sa.name
1785+
"AzureWebJobsStorage" = "" # Required: see note below
1786+
"AzureWebJobsStorage__accountName" = azurerm_storage_account.sa.name
1787+
"APPLICATIONINSIGHTS_AUTHENTICATION_STRING" = "Authorization=AAD"
17831788
}
17841789
}
17851790

0 commit comments

Comments
 (0)