Skip to content

Commit 9163713

Browse files
committed
feat: Add role assignment for User Access Administrator to managed identity in deployment workflow
1 parent 9e0feeb commit 9163713

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/deploy-private-aks.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ jobs:
103103
--role "Monitoring Reader" \
104104
--scope "/subscriptions/$SUBSCRIPTION_ID"
105105
106+
az role assignment create \
107+
--assignee-object-id "$MI_PRINCIPAL_ID" \
108+
--assignee-principal-type ServicePrincipal \
109+
--role "User Access Administrator" \
110+
--scope "/subscriptions/$SUBSCRIPTION_ID"
111+
106112
# ── 1e. Create the runner VM with cloud-init ───────────────
107113
- name: Create runner VM
108114
run: |

0 commit comments

Comments
 (0)