az functionapp flex-migration
Manage migration between Linux Consumption and Flex Consumption plans.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az functionapp flex-migration list |
List all Linux Consumption function apps that are eligible for migration to the Flex Consumption plan. |
Core | GA |
| az functionapp flex-migration revert |
Revert an in-place upgraded Flex Consumption function app to Linux Consumption. |
Core | Preview |
| az functionapp flex-migration start |
Migrate a Linux Consumption function app to Flex Consumption. Supports side-by-side (new app) or in-place (same app) upgrade. |
Core | GA |
az functionapp flex-migration list
List all Linux Consumption function apps that are eligible for migration to the Flex Consumption plan.
az functionapp flex-migration list
Examples
List all Linux Consumption function apps that are eligible for migration to the Flex Consumption plan.
az functionapp flex-migration list
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az functionapp flex-migration revert
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Revert an in-place upgraded Flex Consumption function app to Linux Consumption.
az functionapp flex-migration revert --source-name
--source-resource-group
[--acquire-policy-token]
[--change-reference]
Examples
Revert a function app to Linux Consumption within its revert window.
az functionapp flex-migration revert --source-name MyFunctionApp --source-resource-group MyResourceGroup
Required Parameters
The name of the function app to revert.
The resource group of the function app to revert.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az functionapp flex-migration start
Migrate a Linux Consumption function app to Flex Consumption. Supports side-by-side (new app) or in-place (same app) upgrade.
az functionapp flex-migration start --source-name
--source-resource-group
[--acquire-policy-token]
[--always-ready-instances]
[--change-reference]
[--deployment-storage-auth-type --dsat {StorageAccountConnectionString, SystemAssignedIdentity, UserAssignedIdentity}]
[--deployment-storage-auth-value --dsav]
[--deployment-storage-container-name --dscn]
[--deployment-storage-name --dsn]
[--ids]
[--in-place {false, true}]
[--instance-memory]
[--maximum-instance-count]
[--name]
[--resource-group]
[--sar --skip-access-restrictions {false, true}]
[--sc --skip-cors {false, true}]
[--sh --skip-hostnames {false, true}]
[--skip-managed-identities --smi {false, true}]
[--skip-storage-mount --ssm {false, true}]
[--storage-account]
[--subscription]
Examples
Migrate a Linux Consumption function app to the Flex Consumption plan (side-by-side, creates a new app).
az functionapp flex-migration start --source-name MyLinuxConsumptionApp --source-resource-group MyLinuxConsumptionResourceGroup --name MyFunctionApp --resource-group MyResourceGroup --storage-account MyStorageAccount
Migrate a Linux Consumption function app to the Flex Consumption plan without migrating managed identity configurations.
az functionapp flex-migration start --source-name MyLinuxConsumptionApp --source-resource-group MyLinuxConsumptionResourceGroup --name MyFunctionApp --resource-group MyResourceGroup --storage-account MyStorageAccount --skip-managed-identities
Upgrade a Linux Consumption function app to Flex Consumption in place (same app, same name).
az functionapp flex-migration start --source-name MyLinuxConsumptionApp --source-resource-group MyLinuxConsumptionResourceGroup --in-place
Required Parameters
The name of the source function app to migrate from.
The resource group of the source function app to migrate from.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Space-separated configuration for the number of pre-allocated instances in the format <name>=<value>.
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The deployment storage account authentication type.
| Property | Value |
|---|---|
| Accepted values: | StorageAccountConnectionString, SystemAssignedIdentity, UserAssignedIdentity |
The deployment storage account authentication value. For the user-assigned managed identity authentication type, this should be the user assigned identity resource id. For the storage account connection string authentication type, this should be the name of the app setting that will contain the storage account connection string. For the system assigned managed-identity authentication type, this parameter is not applicable and should be left empty.
The deployment storage account container name.
The deployment storage account name.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Upgrade the source app to Flex Consumption in place (same app, same name, same hostname). Cannot be used with --name or --resource-group.
| Property | Value |
|---|---|
| Default value: | False |
| Accepted values: | false, true |
The instance memory size in MB. See https://aka.ms/flex-instance-sizes for more information on the supported values.
The maximum number of instances.
The name of the target function app to migrate to. Not applicable with --in-place.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
The resource group of the target function app to migrate to. Not applicable with --in-place.
Skip migrating access restrictions.
| Property | Value |
|---|---|
| Default value: | False |
| Accepted values: | false, true |
Skip migrating CORS settings.
| Property | Value |
|---|---|
| Default value: | False |
| Accepted values: | false, true |
Skip migrating hostnames.
| Property | Value |
|---|---|
| Default value: | False |
| Accepted values: | false, true |
Skip migrating managed identities.
| Property | Value |
|---|---|
| Default value: | False |
| Accepted values: | false, true |
Skip migrating storage mounts.
| Property | Value |
|---|---|
| Default value: | False |
| Accepted values: | false, true |
The storage account to use for the target function app. If no storage account is provided, the storage account of the source function app will be used.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |