H Bala
H Bala

Reputation: 1321

Deleting Logic Apps with PowerShell iteratively

I have created 20+ logic apps with RM template, but I would like to remove them. Is there a PowerShell approach feasible to fetch logic apps under a resource group name and delete iteratively.

Upvotes: 1

Views: 246

Answers (1)

DAXaholic
DAXaholic

Reputation: 35338

You should be able to do this with the following pipeline and may add additional filters to it.
As soon as you see the correct set of Logic Apps being processed, just remove the -WhatIf.

Login-AzureRmAccount
Get-AzureRmResource -ResourceGroupName 'yourGroupName' -ResourceType 'Microsoft.Logic/workflows' | Remove-AzureRmResource -WhatIf

Upvotes: 4

Related Questions