CmdID

CmdID / az / az logicapp / az logicapp connection

az logicapp connection delete

Remove a connection from a deployed Logic App. Azure CLI extensions reference

Removes the connections.json entry. For a managed API connection, only access policies matching the entry's exclusively owned system-assigned identity can be removed, and the resource is deleted only when exclusive ownership is established. User-assigned identities can be shared by multiple apps, so their policies and connection resource are retained, with a reason reported. Identities merely assigned to this app are not evidence of connection ownership. Pass --keep-resource to keep the resource even for an exclusively owned policy; this flag does not revoke shared user-assigned identity access. App settings referenced by a service provider connection are never deleted, only reported, since other connections may still read them. Removal requires a strong ETag from the current connections.json reread and sends that exact revision. Missing/weak ETags or a revision conflict stop the command without ARM cleanup or an unconditional retry. VFS receipt/readback checks remain required; these are not a cross-resource transaction. The authored managed connection ID must be a canonical relative resource ID in the selected subscription and resource group. Absolute, malformed or cross-scope IDs refuse before connection-resource ARM access or unlink, including with --keep-resource. Manage cross-scope resources explicitly.

3 examples 6 options Its page in the Azure CLI extensions reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Remove a connection from an app, without prompting.

az logicapp connection delete -g rg-lacli-ri2bg8 -n la-cli-pilot-ri2bg8 --connection cliPilotBlob --yesIdentify
-gName of resource group containing the Logic App Standard site.
-nName of the Logic App Standard site.
--connectionConnection name in connections.json.
--yesDo not prompt for confirmation.

Remove this app's entry and exclusively owned policies, keeping the resource.

az logicapp connection delete -g rg-lacli-ri2bg8 -n la-cli-pilot-ri2bg8 --connection sharedBlob --keep-resource --yesIdentify
-gName of resource group containing the Logic App Standard site.
-nName of the Logic App Standard site.
--connectionConnection name in connections.json.
--keep-resourceKeep the ARM connection resource.
--yesDo not prompt for confirmation.

Disambiguate a name that exists in both connection classes.

az logicapp connection delete -g rg-lacli-ri2bg8 -n la-cli-pilot-ri2bg8 --connection blob --class managedApiConnections --yesIdentify
-gName of resource group containing the Logic App Standard site.
-nName of the Logic App Standard site.
--connectionConnection name in connections.json.
--classConnection class to search.
--yesDo not prompt for confirmation.

Options

6 in the Azure CLI extensions reference
--classConnection class to search.
--connectionConnection name in connections.json.
--keep-resourceKeep the ARM connection resource.
--name, -nName of the Logic App Standard site.
--resource-group, -gName of resource group containing the Logic App Standard site.
--yes, -yDo not prompt for confirmation.