Reputation: 95
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
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
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
Upvotes: 0
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.
Upvotes: 0