Mel
Mel

Reputation: 347

How can i stop and start a logic app on azure using powershell?

I want to stop and start ie restart a logic app on Azure using Powershell

I have looked at the documentation and it shows the following:

Stop-AzureRmLogicAppRun -ResourceGroupName "ResourceGroup11" -Name 
"LogicApp03" -RunName "08587489104702792076" -Force

But where can i find the -RunName on Azure ?

Upvotes: -1

Views: 1554

Answers (1)

Thomas
Thomas

Reputation: 29791

Runs appears in the Runs history:

enter image description here

The RunName is just the run identifier.

So you can get it from azure portal or you can get runs history using powershell with Get-AzureRmLogicAppRunHistory (or Get-AzLogicAppRunHistory if you're using the new az powershell module).

To get all the Running runs, you can try this command:

Get-AzureRmLogicAppRunHistory -ResourceGroupName <rg name> -Name <logicapp name> | Where {$_.Status -eq 'Running'}

Also if you want to disable a logic app, you use this command:

Set-AzureRmLogicApp -ResourceGroupName <rg name> -Name <logicapp name> -State "Disabled"

Upvotes: 1

Related Questions