Skip to content

Instantly share code, notes, and snippets.

@pmatthews05
Created September 29, 2020 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmatthews05/ecd5df3e3d0474226651fc42eeedc5c2 to your computer and use it in GitHub Desktop.
Save pmatthews05/ecd5df3e3d0474226651fc42eeedc5c2 to your computer and use it in GitHub Desktop.
#Give access
az rest --method post --uri 'https://management.azure.com/providers/Microsoft.Authorization/elevateAccess?api-version=2015-07-01'
#Remove access
$account = username@example.com
az role assignment delete --assignee $account --role 'User Access Administrator' --scope '/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment