Share via


az functionapp flex-migration

Manage migration of Linux Consumption function apps to the Flex Consumption plan.

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 start

Create a Flex Consumption app with the same settings as the provided Linux Consumption function app.

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
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az functionapp flex-migration start

Create a Flex Consumption app with the same settings as the provided Linux Consumption function app.

az functionapp flex-migration start --resource-group
                                    --source-name
                                    --source-resource-group
                                    [--ids]
                                    [--maximum-instance-count]
                                    [--name]
                                    [--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.

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

Required Parameters

--resource-group

The resource group of the target function app to migrate to.

--source-name

The name of the source function app to migrate from.

--source-resource-group

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.

--ids

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
--maximum-instance-count

The maximum number of instances.

--name -n

The name of the target function app to migrate to.

Property Value
Parameter group: Resource Id Arguments
--sar --skip-access-restrictions

Skip migrating access restrictions.

Property Value
Default value: False
Accepted values: false, true
--sc --skip-cors

Skip migrating CORS settings.

Property Value
Default value: False
Accepted values: false, true
--sh --skip-hostnames

Skip migrating hostnames.

Property Value
Default value: False
Accepted values: false, true
--skip-managed-identities --smi

Skip migrating managed identities.

Property Value
Default value: False
Accepted values: false, true
--skip-storage-mount --ssm

Skip migrating storage mounts.

Property Value
Default value: False
Accepted values: false, true
--storage-account

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.

--subscription

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
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False