Skip to content

Instantly share code, notes, and snippets.

@juanesech
Last active April 15, 2020 18:49
Show Gist options
  • Save juanesech/ff01e34cadfa15266af8469e1835755e to your computer and use it in GitHub Desktop.
Save juanesech/ff01e34cadfa15266af8469e1835755e to your computer and use it in GitHub Desktop.
Check the role assigment for a azure resource given the id and Assigment name
Get-AzRoleAssignment -Scope $webAppId | where {$_.DisplayName -match "CTP-TaxtobinII-DEV" -or $_.DisplayName -match "IT-TAX_ASKTOBIN_MSP01-Team" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment