简体   繁体   中英

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 ?

Runs appears in the Runs history :

在此处输入图片说明

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"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM