<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Swetha Alampally on Medium]]></title>
        <description><![CDATA[Stories by Swetha Alampally on Medium]]></description>
        <link>https://medium.com/@alampallyswetha19?source=rss-c0b075e12cae------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*I5Q95C_YEywaPmUHr8s8Xw.jpeg</url>
            <title>Stories by Swetha Alampally on Medium</title>
            <link>https://medium.com/@alampallyswetha19?source=rss-c0b075e12cae------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 17:12:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alampallyswetha19/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Migrating Azure Functions from Linux Consumption to Flex Consumption for .NET 10]]></title>
            <link>https://medium.com/@alampallyswetha19/migrating-azure-functions-from-linux-consumption-to-flex-consumption-for-net-10-4286b131c49b?source=rss-c0b075e12cae------2</link>
            <guid isPermaLink="false">https://medium.com/p/4286b131c49b</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[dotnet]]></category>
            <dc:creator><![CDATA[Swetha Alampally]]></dc:creator>
            <pubDate>Tue, 01 Sep 2026 15:11:01 GMT</pubDate>
            <atom:updated>2026-09-01T15:11:01.902Z</atom:updated>
            <content:encoded><![CDATA[<p>This article outlines the migration of Azure Functions from the Linux Consumption hosting plan to Flex Consumption, undertaken as a prerequisite for upgrading to .NET 10 isolated. It covers the infrastructure and pipeline changes required, the problems encountered during the migration, and the validation steps used to confirm the new Function Apps were working correctly.</p><p>.NET 10 isolated does not run on Linux Consumption (Y1) at all — the plan doesn’t support it. Flex Consumption is Microsoft’s recommended target for most Consumption workloads moving forward.</p><h3>1. Why Flex Consumption</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1UiyoLHbGKWRxwKhnzGYGw.png" /></figure><p>If a function needs to reach a resource inside a private network — a database or API with no public endpoint — Linux Consumption cannot do this at all, while Flex Consumption can. Even without a VNet requirement, the memory and scaling controls make Flex the better default for new and migrated workloads.</p><p>Beyond VNet access, the other differences in the table above translate into real operational benefits. Fixed instance memory on Linux Consumption means you either overpay for headroom you don’t need, or risk out-of-memory failures during traffic spikes with no way to size up. Flex Consumption’s configurable memory (512 MB to 4,096 MB) lets you match the plan to actual usage. Scaling is similarly coarse on Linux Consumption — the whole app scales as a single unit, which makes it hard to reason about throughput when one function is busy and others are idle. Flex Consumption scales each function independently, and Always-ready instances let latency-sensitive functions skip cold starts entirely, something Linux Consumption has no equivalent for.</p><p>None of this is optional if .NET 10 is the target, since Linux Consumption doesn’t support it at all — but even without that constraint, the memory and scaling improvements alone make Flex Consumption the better choice for most workloads moving off Consumption.</p><p>Docs: <a href="https://learn.microsoft.com/azure/azure-functions/functions-versions">Azure Functions runtime versions</a> · <a href="https://github.com/microsoft/GitHub-Copilot-for-Azure/blob/main/plugin/skills/azure-upgrade/references/services/functions/consumption-to-flex.md">Consumption to Flex migration reference</a></p><h3>2. Choosing a Migration Approach</h3><p><strong>Two-step migration (recommended)</strong> — a seamless migration for an app that must stay running. The existing Linux Consumption app is left untouched while the new Flex app is built and validated alongside it; cutover happens only once the new app is confirmed working.</p><ol><li>Create the Flex Consumption plan and a new Function App.</li><li>Deploy the existing .NET 8 build (no runtime change yet). Validate all functions and triggers.</li><li>Update the runtime to .NET 10 isolated, deploy a .NET 10 build, and validate again.</li><li>Remove the old Linux Consumption app and plan.</li></ol><p><strong>Single-step migration</strong> — create the Flex plan, deploy .NET 10 directly, validate, remove old resources. Faster, but only viable for apps that can be paused for the migration window, and harder to debug since the plan change and runtime change land together.</p><h3>3. Reviewing Current Usage</h3><p>Before sizing the new Function App, pull real numbers from Application Insights rather than guessing at instance memory, timeout, or scale settings. The following are <strong>KQL (kusto) </strong>queries, run from the Application Insights Logs blade.</p><p>Execution duration and failure count:</p><pre>requests <br>| summarize <br>    Count = count(), <br>    AvgDurationMs = avg(duration), <br>    MaxDurationMs = max(duration), <br>    FailureCount = countif(success == false) <br>by name <br>| order by MaxDurationMs desc</pre><p>Memory usage:</p><pre>performanceCounters<br>| where cloud_RoleName == &quot;&lt;FunctionAppName&gt;&quot;<br>| where name == &quot;Private Bytes&quot;<br>| summarize<br>    AvgMemoryMB = avg(value) / 1024 / 1024,<br>    MaxMemoryMB = max(value) / 1024 / 1024<br>by bin(timestamp, 1d)<br>| order by timestamp desc</pre><p>CPU usage:</p><pre>performanceCounters<br>| where name == &quot;% Processor Time&quot;<br>| summarize<br>    AvgCPU = avg(value),<br>    MaxCPU = max(value)<br>by bin(timestamp, 1h)<br>| order by timestamp desc</pre><p>Out-of-memory exceptions (any results here indicate the app is already under-provisioned):</p><pre>exceptions<br>| where type contains &quot;OutOfMemory&quot;<br>| project timestamp, type, message</pre><p>Failed executions:</p><pre>requests<br>| where success == false<br>| summarize FailureCount = count()<br>by name, resultCode<br>| order by FailureCount desc</pre><p>Cold starts:</p><pre>traces<br>| where message contains &quot;Host started&quot;<br>    or message contains &quot;cold&quot;<br>| project timestamp, message</pre><p>Note: a | where timestamp &gt; ago(...) clause can be added back to any of these to limit the time range; it&#39;s omitted above to use the full retention window by default.</p><h3>4. Infrastructure Setup (Bicep)</h3><p>Service plan:</p><pre>resource FunctionAppServicePlan &#39;Microsoft.Web/serverfarms@2024-11-01&#39; = {<br>  name: FunctionAppServicePlanName<br>  location: ResourceGroupLocation<br>  sku: {<br>    name: &#39;FC1&#39;<br>    tier: &#39;FlexConsumption&#39;<br>  }<br>  kind: &#39;functionapp&#39;<br>  properties: {<br>    reserved: true<br>  }<br>}</pre><p>On Linux Consumption, FUNCTIONS_EXTENSION_VERSION and FUNCTIONS_WORKER_RUNTIME are set as App Settings. On Flex Consumption, Azure rejects the deployment if these are set as App Settings - they move into a functionAppConfig block on the site resource instead:</p><pre>functionAppConfig: {<br>  runtime: {<br>    name: &#39;dotnet-isolated&#39;<br>    version: &#39;10.0&#39;<br>  }<br>  scaleAndConcurrency: {<br>    instanceMemoryMB: 512<br>    maximumInstanceCount: 1<br>  }<br>}</pre><h3>5. Function Timeout Defaults</h3><p>The default and maximum execution time also change between plans, controlled by functionTimeout in host.json:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*D3h85_AT0RAvufCJZBUjuA.png" /></figure><p>host.json:</p><pre>{<br>  &quot;version&quot;: &quot;2.0&quot;,<br>  &quot;functionTimeout&quot;: &quot;00:40:00&quot;<br>}</pre><p>Note: Flex Consumption has no hard maximum, but Azure still applies a 60-minute grace period during scale-in and a 10-minute grace period during platform updates — a long-running function can still be interrupted by either. Setting functionTimeout to &quot;00:00:00&quot; does not disable the timeout or override these platform-level limits.</p><p>Note: HTTP-triggered functions must respond within 230 seconds regardless of functionTimeout, due to the underlying Azure Load Balancer&#39;s idle timeout. This applies on both plans and cannot be changed via functionTimeout. Work that takes longer should return an immediate response and continue processing in the background.</p><h3>6. Deployment Storage Configuration</h3><p>Flex Consumption requires a dedicated blob container to hold the deployed code package, declared in functionAppConfig.deployment:</p><pre>functionAppConfig: {<br>  deployment: {<br>    storage: {<br>      type: &#39;blobContainer&#39;<br>      value: &#39;${StorageAccountBlobEndpoint}deployment-package&#39;<br>      authentication: {<br>        type: &#39;StorageAccountConnectionString&#39;<br>        storageAccountConnectionStringName: &#39;DEPLOYMENT_STORAGE_CONNECTION_STRING&#39;<br>      }<br>    }<br>  }<br>}</pre><p>The container must exist, be empty at first deployment, and not be shared with AzureWebJobsStorage &#39;s own container or another app&#39;s deployment.</p><p>storageAccountConnectionStringName only references the name of an App Setting - it does not create one. The setting must be added explicitly:</p><pre>resource MonitoringFunctionApp_appsettings &#39;Microsoft.Web/sites/config@2024-11-01&#39; = {<br>  parent: MonitoringFunctionApp<br>  name: &#39;appsettings&#39;<br>  properties: {<br>    AzureWebJobsStorage: StorageAccountConnectionString<br>    DEPLOYMENT_STORAGE_CONNECTION_STRING: StorageAccountConnectionString<br>    // ...other settings<br>  }<br>}</pre><p>Verify the setting deployed correctly (Azure CLI):</p><pre>az functionapp config appsettings list \<br>  --name &quot;&lt;function-app&gt;&quot; \<br>  --resource-group &quot;&lt;resource-group&gt;&quot; \<br>  --query &quot;[?name==&#39;DEPLOYMENT_STORAGE_CONNECTION_STRING&#39;]&quot;</pre><p>An empty [] result means the App Setting was never created - the app cannot authenticate to the deployment container, and deployments will fail even though the infrastructure appears to have deployed successfully.</p><h3>7. CI/CD Pipeline Updates</h3><p>This section applies specifically to Azure DevOps pipelines. Other CI/CD tools have the same underlying requirement — deploying to the Flex blob container rather than via zip-deploy — but the task/action configuration will differ.</p><p>Use Azure Functions Deploy task version 2 ( AzureFunctionApp@2). Version 1 assumes an older zip-deploy method that Flex Consumption doesn&#39;t support, and older builds of v2 that predate Flex Consumption support will also fail. This log line is informational, not an error:</p><blockquote>The Deployment Type option does not apply for Flex Consumption.</blockquote><p>isFlexConsumption: true is the input that actually routes the deployment through the Flex blob-container path - task version 2 alone is not sufficient without it.</p><pre>- task: AzureFunctionApp@2<br>  displayName: &#39;Deploy Azure Function App - Flex Consumption&#39;<br>  inputs:<br>    azureSubscription: &#39;$(azureServiceConnection)&#39;<br>    appType: &#39;functionAppLinux&#39;<br>    appName: &#39;$(functionAppName)&#39;<br>    package: &#39;$(Pipeline.Workspace)/drop/**/*.zip&#39;<br>    isFlexConsumption: true<br>    # deploymentMethod / Deployment Type is not used on Flex Consumption</pre><p>Note: the “Deployment Type does not apply” message and a 403 Ip Forbidden error (see below) can both appear in the same failed run. The first is harmless; don&#39;t let it mask the actual cause of a failure.</p><h3>8. (Optional) IP Restrictions for Deployment</h3><p>Skip this section if the Function App does not restrict inbound traffic by IP address.</p><p>If the SCM (deployment) endpoint is configured to inherit the main site’s IP restrictions, and those restrictions are scoped to specific regions, Microsoft-hosted Azure Pipelines agents — which don’t run from a fixed IP range or region — will be blocked with:</p><blockquote>Ip Forbidden (CODE: 403)</blockquote><p>Fix (Bicep, part of the site resource’s properties):</p><pre>scmIpSecurityRestrictionsUseMain: false<br>scmIpSecurityRestrictions: [<br>  {<br>    ipAddress: &#39;AzureCloud&#39;<br>    action: &#39;Allow&#39;<br>    tag: &#39;ServiceTag&#39;<br>    priority: 1000<br>    name: &#39;Allow AzureCloud for Microsoft-hosted pipeline agents&#39;<br>  }<br>  {<br>    ipAddress: &#39;Any&#39;<br>    action: &#39;Deny&#39;<br>    priority: 2147483647<br>    name: &#39;Deny all&#39;<br>  }<br>]<br>scmIpSecurityRestrictionsDefaultAction: &#39;Deny&#39;</pre><p>Note: the AzureCloud service tag allows traffic from anywhere in Azure, not just pipeline agents - there is no narrower published tag for this. Where that&#39;s too broad, a self-hosted agent with a known, fixed IP allowed instead is the tighter alternative.</p><p>Verify in the Portal under <strong>Function App → Networking → Access restriction</strong>, checking the SCM tab specifically — if it still reads “same restrictions as main site,” the change hasn’t taken effect.</p><h3>Validation Checklist</h3><ul><li>HTTP, Timer, Queue, and Service Bus triggers (plus Event Grid/Event Hub, if used)</li><li>Application Insights receiving telemetry</li><li>Managed Identity access to dependent resources</li><li>Storage connectivity — both AzureWebJobsStorage and the deployment container</li><li>Key Vault / App Configuration connectivity</li><li>Function execution logs</li><li>Scaling behaviour under load</li><li>Pipeline deploys without errors</li></ul><h3>Useful Commands</h3><p>Runtime check:</p><pre>az functionapp config show \<br>  --name &quot;&lt;function-app&gt;&quot; \<br>  --resource-group &quot;&lt;resource-group&gt;&quot; \<br>  --query linuxFxVersion</pre><p>Expected: DOTNET-ISOLATED|10.0</p><p>App settings:</p><pre>az functionapp config appsettings list \<br>  --name &quot;&lt;function-app&gt;&quot; \<br>  --resource-group &quot;&lt;resource-group&gt;&quot;</pre><p>Plan/status/kind:</p><pre>az functionapp config show \<br>  --name &quot;&lt;function-app&gt;&quot; \<br>  --resource-group &quot;&lt;resource-group&gt;&quot; \<br>  --query &quot;{sku:sku, status:status, kind:kind}&quot;</pre><p>Managed Identity role assignments:</p><pre>az role assignment list \<br>  --assignee &quot;&lt;managed-identity-id&gt;&quot; \<br>  --scope &quot;&lt;resource-id&gt;&quot; \<br>  --output table</pre><p>Update runtime version:</p><pre>az functionapp config set \<br>  --name &quot;&lt;function-app&gt;&quot; \<br>  --resource-group &quot;&lt;resource-group&gt;&quot; \<br>  --linux-fx-version &quot;DOTNET-ISOLATED|10.0&quot;</pre><h3>Future Considerations</h3><ul><li>Instance memory and maximumInstanceCount were set conservatively for a low-traffic monitoring workload; busier apps should revisit sizing after a period of production traffic on Flex.</li><li>Always-ready instances weren’t configured in this migration but are worth evaluating for functions sensitive to cold start.</li><li>The IP restriction workaround (AzureCloud on SCM) is broader than ideal; a self-hosted agent would allow tightening this further if the security baseline requires it.</li><li>A similar two-step approach is expected to apply to other apps still on Linux Consumption.</li></ul><h3>Conclusion</h3><p>Moving off Linux Consumption is a prerequisite for .NET 10, not an optional side step, but it changes more than the plan name suggests: runtime configuration moves out of App Settings and into functionAppConfig, deployment goes through a dedicated blob container instead of zip-deploy, default timeouts change, and IP-restricted apps need the SCM endpoint configured separately from the main site. None of these were individually hard to fix once identified - migrating the plan and the runtime as two separate, independently validated steps was what made the overall process manageable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4286b131c49b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Upgrading Azure Functions to .NET 10: A Practical Flex Consumption Migration Guide]]></title>
            <link>https://medium.com/villa-plus-engineering/migrating-azure-functions-from-linux-consumption-to-flex-consumption-for-net-10-bffb77e2ca58?source=rss-c0b075e12cae------2</link>
            <guid isPermaLink="false">https://medium.com/p/bffb77e2ca58</guid>
            <category><![CDATA[dotnet-10]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[azure-functions]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Swetha Alampally]]></dc:creator>
            <pubDate>Thu, 13 Aug 2026 05:15:54 GMT</pubDate>
            <atom:updated>2026-09-17T09:33:31.638Z</atom:updated>
            <content:encoded><![CDATA[<p>This article outlines the migration of Azure Functions from the Linux Consumption hosting plan to Flex Consumption, undertaken as a prerequisite for upgrading to .NET 10 isolated. It covers the infrastructure and pipeline changes required, the problems encountered during the migration, and the validation steps used to confirm the new Function Apps were working correctly.</p><p>.NET 10 isolated does not run on Linux Consumption (Y1) at all — the plan doesn’t support it. Flex Consumption is Microsoft’s recommended target for most Consumption workloads moving forward.</p><h3>1. Why Flex Consumption</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1UiyoLHbGKWRxwKhnzGYGw.png" /></figure><p>If a function needs to reach a resource inside a private network — a database or API with no public endpoint — Linux Consumption cannot do this at all, while Flex Consumption can. Even without a VNet requirement, the memory and scaling controls make Flex the better default for new and migrated workloads.</p><p>Beyond VNet access, the other differences in the table above translate into real operational benefits. Fixed instance memory on Linux Consumption means you either overpay for headroom you don’t need, or risk out-of-memory failures during traffic spikes with no way to size up. Flex Consumption’s configurable memory (512 MB to 4,096 MB) lets you match the plan to actual usage. Scaling is similarly coarse on Linux Consumption — the whole app scales as a single unit, which makes it hard to reason about throughput when one function is busy and others are idle. Flex Consumption scales each function independently, and Always-ready instances let latency-sensitive functions skip cold starts entirely, something Linux Consumption has no equivalent for.</p><p>None of this is optional if .NET 10 is the target, since Linux Consumption doesn’t support it at all — but even without that constraint, the memory and scaling improvements alone make Flex Consumption the better choice for most workloads moving off Consumption.</p><p>Docs: <a href="https://learn.microsoft.com/azure/azure-functions/functions-versions">Azure Functions runtime versions</a> · <a href="https://github.com/microsoft/GitHub-Copilot-for-Azure/blob/main/plugin/skills/azure-upgrade/references/services/functions/consumption-to-flex.md">Consumption to Flex migration reference</a></p><h3>2. Choosing a Migration Approach</h3><p><strong>Two-step migration (recommended)</strong> — a seamless migration for an app that must stay running. The existing Linux Consumption app is left untouched while the new Flex app is built and validated alongside it; cutover happens only once the new app is confirmed working.</p><ol><li>Create the Flex Consumption plan and a new Function App (One Function App per Flex Consumption Plan).</li><li>Deploy the existing .NET 8 build (no runtime change yet). Validate all functions and triggers.</li><li>Update the runtime to .NET 10 isolated, deploy a .NET 10 build, and validate again.</li><li>Remove the old Linux Consumption app and plan.</li></ol><p><strong>Single-step migration</strong> — create the Flex plan, deploy .NET 10 directly, validate, remove old resources. Faster, but only viable for apps that can be paused for the migration window, and harder to debug since the plan change and runtime change land together.</p><h3>3. Reviewing Current Usage</h3><p>Before sizing the new Function App, pull real numbers from Application Insights rather than guessing at instance memory, timeout, or scale settings. The following are <strong>KQL (kusto) </strong>queries, run from the Application Insights Logs blade.</p><p>Execution duration and failure count:</p><pre>requests <br>| summarize <br>    Count = count(), <br>    AvgDurationMs = avg(duration), <br>    MaxDurationMs = max(duration), <br>    FailureCount = countif(success == false) <br>by name <br>| order by MaxDurationMs desc</pre><p>Memory usage:</p><pre>performanceCounters<br>| where cloud_RoleName == &quot;&lt;FunctionAppName&gt;&quot;<br>| where name == &quot;Private Bytes&quot;<br>| summarize<br>    AvgMemoryMB = avg(value) / 1024 / 1024,<br>    MaxMemoryMB = max(value) / 1024 / 1024<br>by bin(timestamp, 1d)<br>| order by timestamp desc</pre><p>CPU usage:</p><pre>performanceCounters<br>| where name == &quot;% Processor Time&quot;<br>| summarize<br>    AvgCPU = avg(value),<br>    MaxCPU = max(value)<br>by bin(timestamp, 1h)<br>| order by timestamp desc</pre><p>Out-of-memory exceptions (any results here indicate the app is already under-provisioned):</p><pre>exceptions<br>| where type contains &quot;OutOfMemory&quot;<br>| project timestamp, type, message</pre><p>Failed executions:</p><pre>requests<br>| where success == false<br>| summarize FailureCount = count()<br>by name, resultCode<br>| order by FailureCount desc</pre><p>Cold starts:</p><pre>traces<br>| where message contains &quot;Host started&quot;<br>    or message contains &quot;cold&quot;<br>| project timestamp, message</pre><p>Note: a | where timestamp &gt; ago(...) clause can be added back to any of these to limit the time range; it&#39;s omitted above to use the full retention window by default.</p><h3>4. Infrastructure Setup (Bicep)</h3><p>Service plan:</p><pre>resource FunctionAppServicePlan &#39;Microsoft.Web/serverfarms@2024-11-01&#39; = {<br>  name: FunctionAppServicePlanName<br>  location: ResourceGroupLocation<br>  sku: {<br>    name: &#39;FC1&#39;<br>    tier: &#39;FlexConsumption&#39;<br>  }<br>  kind: &#39;functionapp&#39;<br>  properties: {<br>    reserved: true<br>  }<br>}</pre><p>On Linux Consumption, FUNCTIONS_EXTENSION_VERSION and FUNCTIONS_WORKER_RUNTIME are set as App Settings. On Flex Consumption, Azure rejects the deployment if these are set as App Settings - they move into a functionAppConfig block on the site resource instead:</p><pre>functionAppConfig: {<br>  runtime: {<br>    name: &#39;dotnet-isolated&#39;<br>    version: &#39;10.0&#39;<br>  }<br>  scaleAndConcurrency: {<br>    instanceMemoryMB: 512<br>    maximumInstanceCount: 1<br>  }<br>}</pre><h3>5. Function Timeout Defaults</h3><p>The default and maximum execution time also change between plans, controlled by functionTimeout in host.json:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*D3h85_AT0RAvufCJZBUjuA.png" /></figure><p>host.json:</p><pre>{<br>  &quot;version&quot;: &quot;2.0&quot;,<br>  &quot;functionTimeout&quot;: &quot;00:40:00&quot;<br>}</pre><p>Note: Flex Consumption has no hard maximum, but Azure still applies a 60-minute grace period during scale-in and a 10-minute grace period during platform updates — a long-running function can still be interrupted by either. Setting functionTimeout to &quot;00:00:00&quot; does not disable the timeout or override these platform-level limits.</p><p>Note: HTTP-triggered functions must respond within 230 seconds regardless of functionTimeout, due to the underlying Azure Load Balancer&#39;s idle timeout. This applies on both plans and cannot be changed via functionTimeout. Work that takes longer should return an immediate response and continue processing in the background.</p><h3>6. Deployment Storage Configuration</h3><p>Flex Consumption requires a dedicated blob container to hold the deployed code package, declared in functionAppConfig.deployment:</p><pre>functionAppConfig: {<br>  deployment: {<br>    storage: {<br>      type: &#39;blobContainer&#39;<br>      value: &#39;${StorageAccountBlobEndpoint}deployment-package&#39;<br>      authentication: {<br>        type: &#39;StorageAccountConnectionString&#39;<br>        storageAccountConnectionStringName: &#39;DEPLOYMENT_STORAGE_CONNECTION_STRING&#39;<br>      }<br>    }<br>  }<br>}</pre><p>The container must exist, be empty at first deployment, and not be shared with AzureWebJobsStorage &#39;s own container or another app&#39;s deployment.</p><p><strong>Note: each Function App requires its own dedicated deployment container.</strong> Two Flex Consumption apps cannot share the same blob container as their functionAppConfig.deployment.storage.value, even if they&#39;re otherwise unrelated. If a second app&#39;s serverFarmId or deployment path accidentally points at a container already in use by another app, deployments will silently overwrite or conflict with the other app&#39;s package, and both apps can end up serving inconsistent or broken code without a clear error pointing at the storage layer. When migrating multiple apps at once, name containers explicitly per app (e.g. deployment-package-&lt;app-name&gt;) rather than reusing a shared naming pattern.</p><p>storageAccountConnectionStringName only references the name of an App Setting - it does not create one. The setting must be added explicitly:</p><pre>resource MonitoringFunctionApp_appsettings &#39;Microsoft.Web/sites/config@2024-11-01&#39; = {<br>  parent: MonitoringFunctionApp<br>  name: &#39;appsettings&#39;<br>  properties: {<br>    AzureWebJobsStorage: StorageAccountConnectionString<br>    DEPLOYMENT_STORAGE_CONNECTION_STRING: StorageAccountConnectionString<br>    // ...other settings<br>  }<br>}</pre><p>Verify the setting deployed correctly (Azure CLI):</p><pre>az functionapp config appsettings list \<br>  --name &quot;&lt;function-app&gt;&quot; \<br>  --resource-group &quot;&lt;resource-group&gt;&quot; \<br>  --query &quot;[?name==&#39;DEPLOYMENT_STORAGE_CONNECTION_STRING&#39;]&quot;</pre><p>An empty [] result means the App Setting was never created - the app cannot authenticate to the deployment container, and deployments will fail even though the infrastructure appears to have deployed successfully.</p><h3>7. CI/CD Pipeline Updates</h3><p>This section applies specifically to Azure DevOps pipelines. Other CI/CD tools have the same underlying requirement — deploying to the Flex blob container rather than via zip-deploy — but the task/action configuration will differ.</p><p>Use Azure Functions Deploy task version 2 ( AzureFunctionApp@2). Version 1 assumes an older zip-deploy method that Flex Consumption doesn&#39;t support, and older builds of v2 that predate Flex Consumption support will also fail. This log line is informational, not an error:</p><blockquote>The Deployment Type option does not apply for Flex Consumption.</blockquote><p>isFlexConsumption: true is the input that actually routes the deployment through the Flex blob-container path - task version 2 alone is not sufficient without it.</p><pre>- task: AzureFunctionApp@2<br>  displayName: &#39;Deploy Azure Function App - Flex Consumption&#39;<br>  inputs:<br>    azureSubscription: &#39;$(azureServiceConnection)&#39;<br>    appType: &#39;functionAppLinux&#39;<br>    appName: &#39;$(functionAppName)&#39;<br>    package: &#39;$(Pipeline.Workspace)/drop/**/*.zip&#39;<br>    isFlexConsumption: true<br>    # deploymentMethod / Deployment Type is not used on Flex Consumption</pre><p>Note: the “Deployment Type does not apply” message and a 403 Ip Forbidden error (see below) can both appear in the same failed run. The first is harmless; don&#39;t let it mask the actual cause of a failure.</p><h3>8. (Optional) IP Restrictions for Deployment</h3><p>Skip this section if the Function App does not restrict inbound traffic by IP address.</p><p>If the SCM (deployment) endpoint is configured to inherit the main site’s IP restrictions, and those restrictions are scoped to specific regions, Microsoft-hosted Azure Pipelines agents — which don’t run from a fixed IP range or region — will be blocked with:</p><blockquote>Ip Forbidden (CODE: 403)</blockquote><p>Fix (Bicep, part of the site resource’s properties):</p><pre>scmIpSecurityRestrictionsUseMain: false<br>scmIpSecurityRestrictions: [<br>  {<br>    ipAddress: &#39;AzureCloud&#39;<br>    action: &#39;Allow&#39;<br>    tag: &#39;ServiceTag&#39;<br>    priority: 1000<br>    name: &#39;Allow AzureCloud for Microsoft-hosted pipeline agents&#39;<br>  }<br>  {<br>    ipAddress: &#39;Any&#39;<br>    action: &#39;Deny&#39;<br>    priority: 2147483647<br>    name: &#39;Deny all&#39;<br>  }<br>]<br>scmIpSecurityRestrictionsDefaultAction: &#39;Deny&#39;</pre><p>Note: the AzureCloud service tag allows traffic from anywhere in Azure, not just pipeline agents - there is no narrower published tag for this. Where that&#39;s too broad, a self-hosted agent with a known, fixed IP allowed instead is the tighter alternative.</p><p>Verify in the Portal under <strong>Function App → Networking → Access restriction</strong>, checking the SCM tab specifically — if it still reads “same restrictions as main site,” the change hasn’t taken effect.</p><h3>Validation Checklist</h3><ul><li>HTTP, Timer, Queue, and Service Bus triggers (plus Event Grid/Event Hub, if used)</li><li>Application Insights receiving telemetry</li><li>Managed Identity access to dependent resources</li><li>Storage connectivity — both AzureWebJobsStorage and the deployment container</li><li>Key Vault / App Configuration connectivity</li><li>Function execution logs</li><li>Scaling behaviour under load</li><li>Pipeline deploys without errors</li></ul><h3>Useful Commands</h3><p>Runtime check:</p><pre>az functionapp config show \<br>  --name &quot;&lt;function-app&gt;&quot; \<br>  --resource-group &quot;&lt;resource-group&gt;&quot; \<br>  --query linuxFxVersion</pre><p>Expected: DOTNET-ISOLATED|10.0</p><p>App settings:</p><pre>az functionapp config appsettings list \<br>  --name &quot;&lt;function-app&gt;&quot; \<br>  --resource-group &quot;&lt;resource-group&gt;&quot;</pre><p>Plan/status/kind:</p><pre>az functionapp config show \<br>  --name &quot;&lt;function-app&gt;&quot; \<br>  --resource-group &quot;&lt;resource-group&gt;&quot; \<br>  --query &quot;{sku:sku, status:status, kind:kind}&quot;</pre><p>Managed Identity role assignments:</p><pre>az role assignment list \<br>  --assignee &quot;&lt;managed-identity-id&gt;&quot; \<br>  --scope &quot;&lt;resource-id&gt;&quot; \<br>  --output table</pre><p>Update runtime version:</p><pre>az functionapp config set \<br>  --name &quot;&lt;function-app&gt;&quot; \<br>  --resource-group &quot;&lt;resource-group&gt;&quot; \<br>  --linux-fx-version &quot;DOTNET-ISOLATED|10.0&quot;</pre><h3>Future Considerations</h3><ul><li>Instance memory and maximumInstanceCount were set conservatively for a low-traffic monitoring workload; busier apps should revisit sizing after a period of production traffic on Flex.</li><li>Always-ready instances weren’t configured in this migration but are worth evaluating for functions sensitive to cold start.</li><li>The IP restriction workaround (AzureCloud on SCM) is broader than ideal; a self-hosted agent would allow tightening this further if the security baseline requires it.</li><li>A similar two-step approach is expected to apply to other apps still on Linux Consumption.</li><li>One Function App per Flex Consumption Plan</li></ul><h3>Conclusion</h3><p>Moving off Linux Consumption is a prerequisite for .NET 10, not an optional side step, but it changes more than the plan name suggests: runtime configuration moves out of App Settings and into functionAppConfig, deployment goes through a dedicated blob container instead of zip-deploy, default timeouts change, and IP-restricted apps need the SCM endpoint configured separately from the main site. None of these were individually hard to fix once identified - migrating the plan and the runtime as two separate, independently validated steps was what made the overall process manageable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bffb77e2ca58" width="1" height="1" alt=""><hr><p><a href="https://medium.com/villa-plus-engineering/migrating-azure-functions-from-linux-consumption-to-flex-consumption-for-net-10-bffb77e2ca58">Upgrading Azure Functions to .NET 10: A Practical Flex Consumption Migration Guide</a> was originally published in <a href="https://medium.com/villa-plus-engineering">Villa Plus Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>