- Create Subscription
- Create AAD
- Create Management Group & add subscription
- Create SP & save output
- az ad sp create-for-rbac --name "$(
$env:sp_name)" --sdk-auth --role contributor --scopes "$ ($env:sp_scope)"
- az ad sp create-for-rbac --name "$(
- Add Management Group Reader & Resource Policy Contributor to SP on root MG
- Create GitHub Repository
- Add secrets to GitHub Repo
- Add 'TEST' GitHub Environment as well (Enterprise licensing only)
- Create Terraform backend Azure resources
- Notes
- If using PS AZ module, login with -
Select-AzSubscription -Tenant $env:tenant_id -Subscription $env:sub_id - Can use the bootstrap workflow, but needs merged into main to work well
- If using PS AZ module, login with -
ulysesramos/az-core-policy
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|