az logicapp

Manage logic apps.

Commands

az logicapp config

Configure a logic app.

az logicapp config appsettings

Configure logic app settings.

az logicapp config appsettings delete

Delete a logic app's settings.

az logicapp config appsettings list

Show settings for a logic app.

az logicapp config appsettings set

Update a logic app's settings.

az logicapp create

Create a logic app.

az logicapp delete

Delete a logic app.

az logicapp deployment

Manage logic app deployments.

az logicapp deployment source

Manage logicapp app deployment via source control.

az logicapp deployment source config-zip

Perform deployment using the kudu zip push deployment for a logic app.

az logicapp list

List logic apps.

az logicapp restart

Restart a logic app.

az logicapp scale

Scale a logic app.

az logicapp show

Get the details of a logic app.

az logicapp start

Start a logic app.

az logicapp stop

Stop a logic app.

az logicapp update

Update a logic app.

az logicapp create

Create a logic app.

The logic app's name must be able to produce a unique FQDN as AppName.azurewebsites.net.

az logicapp create --name
                   --resource-group
                   --storage-account
                   [--app-insights]
                   [--app-insights-key]
                   [--deployment-container-image-name]
                   [--deployment-local-git]
                   [--deployment-source-branch]
                   [--deployment-source-url]
                   [--disable-app-insights {false, true}]
                   [--docker-registry-server-password]
                   [--docker-registry-server-user]
                   [--https-only {false, true}]
                   [--plan]
                   [--tags]

Examples

Create a basic logic app.

az logicapp create -g myRG --subscription mySubscription -p MyPlan -n myLogicApp -s myStorageAccount

Required Parameters

--name -n

Name of the new logic app.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--storage-account -s

Provide a string value of a Storage Account in the provided Resource Group. Or Resource ID of a Storage Account in a different Resource Group.

Optional Parameters

--app-insights

Name of the existing App Insights project to be added to the logic app. Must be in the same resource group.

--app-insights-key

Instrumentation key of App Insights to be added.

--deployment-container-image-name -i

Container image name from Docker Hub, e.g. publisher/image-name:tag.

--deployment-local-git -l

Enable local git.

--deployment-source-branch -b

The branch to deploy.

default value: master
--deployment-source-url -u

Git repository URL to link with manual integration.

--disable-app-insights

Disable creating application insights resource during logicapp create. No logs will be available.

accepted values: false, true
--docker-registry-server-password -w

The container registry server password. Required for private registries.

--docker-registry-server-user -d

The container registry server username.

--https-only

Redirect all traffic made to an app using HTTP to HTTPS.

accepted values: false, true
--plan -p

Name or resource id of the logicapp app service plan. Use 'appservice plan create' to get one. If using an App Service plan from a different resource group, the full resource id must be used and not the plan name.

--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.

az logicapp delete

Delete a logic app.

az logicapp delete --name
                   --resource-group
                   [--slot]
                   [--yes]

Examples

Delete a logic app.

az logicapp delete --name myLogicApp --resource-group myRG --subscription mySubscription

Required Parameters

--name -n

Name of the logic app.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--slot -s

The name of the slot. Default to the productions slot if not specified.

--yes -y

Do not prompt for confirmation.

az logicapp list

List logic apps.

az logicapp list [--resource-group]

Examples

List default host name and state for all logic apps.

az logicapp list --query "[].hostName: defaultHostName, state: state"

List all running logic apps.

az logicapp list --query "[?state=='Running']"

Optional Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

az logicapp restart

Restart a logic app.

az logicapp restart --name
                    --resource-group
                    [--slot]

Examples

Restart a logic app.

az logicapp restart --name myLogicApp --resource-group myRG

Required Parameters

--name -n

Name of the logic app.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--slot -s

The name of the slot. Default to the productions slot if not specified.

az logicapp scale

Scale a logic app.

az logicapp scale --name
                  --resource-group
                  [--max-instances]
                  [--min-instances]
                  [--slot]

Examples

Scale a logic app.

az logicapp scale --name myLogicApp --resource-group myRG --subscription mySubscription --min-instances 2 --max-instances 4

Required Parameters

--name -n

Name of the logic app.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--max-instances

The maximum number of instances this logic app can scale out to under load.

--min-instances

The number of instances that are always ready and warm for this logic app.

--slot -s

The name of the slot. Default to the productions slot if not specified.

az logicapp show

Get the details of a logic app.

az logicapp show --name
                 --resource-group

Examples

Get the details of a logic app.

az logicapp show --name myLogicApp --resource-group myRG --subscription mySubscription

Required Parameters

--name -n

Name of the logic app.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

az logicapp start

Start a logic app.

az logicapp start --name
                  --resource-group
                  [--slot]

Examples

Start a logic app

az logicapp start --name myLogicApp --resource-group myRG

Required Parameters

--name -n

Name of the logic app.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--slot -s

The name of the slot. Default to the productions slot if not specified.

az logicapp stop

Stop a logic app.

az logicapp stop --name
                 --resource-group
                 [--slot]

Examples

Stop a logic app.

az logicapp stop --name myLogicApp --resource-group myRG

Required Parameters

--name -n

Name of the logic app.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--slot -s

The name of the slot. Default to the productions slot if not specified.

az logicapp update

Update a logic app.

az logicapp update --name
                   --resource-group
                   [--add]
                   [--force-string]
                   [--plan]
                   [--remove]
                   [--set]
                   [--slot]

Examples

Update a logic app. (autogenerated)

az logicapp update --name myLogicApp --resource-group myRG

Required Parameters

--name -n

Name of the logic app.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--add

Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>.

--force-string

When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.

--plan

The name or resource id of the plan to update the logicapp with.

--remove

Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.

--set

Update an object by specifying a property path and value to set. Example: --set property1.property2=.

--slot -s

The name of the slot. Default to the productions slot if not specified.