Use case · Azure
Know which subscription a script will change before it changes it.
Az PowerShell for resource groups, Key Vault and RBAC.
No card required. Your script is never executed.
Three patterns we flag
Deletes every resource group in the subscription
Get-AzResourceGroup | Remove-AzResourceGroup -ForceGives Owner at subscription scope
New-AzRoleAssignment -RoleDefinitionName Owner -Scope "/subscriptions/$sub"Opens Key Vault secrets to everyone in a group
Set-AzKeyVaultAccessPolicy -VaultName $kv -ObjectId $group -PermissionsToSecrets all
Sample: restart-servers.ps1
Real pattern, synthetic script. Unfiltered tenant-wide target.
What we check
- Subscription and resource-group scope
- RBAC role assignments
- Key Vault access policies
- -Force on destructive cmdlets
Check the next script before it runs.