Is there any way to see the IP restrictions on a Logic App? I would like the ability to verify that the apps running have appropriate IP restrictions. I know there's no command to configure the IP restrictions from powershell but is there anyway some how to see them via powershell? I'm able to view the via resource explorer but I wasn't sure if there's any way to see them via powershell.
2 Answers
The Ip restrictions is part of the Access Control. you can just query the azure resource directly:
# Don't forget to login with Login-AzureRMAccount
# Get the resource
$myLogicApp = Get-AzureRmResource -ResourceGroupName "rg-name" -ResourceType Microsoft.Logic/workflows -ResourceName my-logic-app-name -ApiVersion 2016-06-01
# Get the ip restrictions:
$myLogicApp.Properties.accessControl.allowedCallerIpAddresses
Comments
$LogicAppConfig.Properties.accessControl.triggers.allowedCallerIpAddresses
1 Comment
Jeanne Dark
Hi! Please take the tour. Thanks for contributing an answer, but can you also add an explanation of how your code solves the problem?