milan-W
milan-W

Reputation: 95

Azure Logic App by scripting, rather the Portal designer

Is it possible to edit a Logic App from terminal/cmd?

I have the json code for the logicapp. So I'm wondering if there is a way to edit or put the json code to Azure Portal from terminal, something like sqlcmd which can be used to modify database in Azure.

The goal is to use Azure Portal least possible.

Upvotes: 1

Views: 817

Answers (3)

DTRT
DTRT

Reputation: 11040

Well...why do you want to do this? You can, but it's much easier to use a designer in most cases. It's not really analogous to SQL.

If just want to avoid the Portal, you can use Visual Studio to edit Logic Apps and deploy by PowerShell.

For clarity, if you are asking this because of the other situation, stop and fix that problem first. Your problem there is not caused by the Portal.

Upvotes: 0

Rahul Ruikar
Rahul Ruikar

Reputation: 1096

I think you can use following command to modify and update logic app

Set-AzureRmLogicApp

PS C:\>Set-AzureRmLogicApp -ResourceGroupName "ResourceGroup11" -Name "LogicApp17" -State "Enabled" -AppServicePlan "ServicePlan01" -DefinitionFilePath "d:\workflows\Definition17.json" -ParameterFilePath "d:\workflows\Parameters17.json"

There are some examples in the link

https://learn.microsoft.com/en-us/powershell/module/azurerm.logicapp/Set-AzureRmLogicApp?view=azurermps-6.13.0

Upvotes: 0

Erndob
Erndob

Reputation: 2612

ARM templates. You create a json template defining your logic app and other services needed by it, and then you can use Powershell or Azure CLI or already defined task in the Azure Release Pipelines, to actually release your logic app.

https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-create-deploy-azure-resource-manager-templates

Upvotes: 0

Related Questions