Skip to content

Instantly share code, notes, and snippets.

@PatrickKalkman
Last active January 20, 2022 15:05
Show Gist options
  • Save PatrickKalkman/b08a8e31db3a6bae757f1f878a3ff723 to your computer and use it in GitHub Desktop.
Save PatrickKalkman/b08a8e31db3a6bae757f1f878a3ff723 to your computer and use it in GitHub Desktop.
function Remove-AllAccessRestrictionsFromAppServices([string] $ResourceGroupName) {
Write-Information "Retrieving all app services in $ResourceGroupName"
$allAppServices = Get-AzWebApp -ResourceGroupName $ResourceGroupName
Foreach ($appService in $allAppServices) {
Remove-AccessRestrictionsFromAppService -ResourceGroupName $ResourceGroupName -Name $appService.Name
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment