From 88d0f584c5007bc16e233cbe51f3ffbf2c082494 Mon Sep 17 00:00:00 2001 From: Jack Francis Date: Fri, 9 Aug 2024 09:56:42 -0700 Subject: [PATCH] add RBAC role Signed-off-by: Jack Francis --- scripts/kind-with-registry.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/kind-with-registry.sh b/scripts/kind-with-registry.sh index 107197a009f..98122a2ad24 100755 --- a/scripts/kind-with-registry.sh +++ b/scripts/kind-with-registry.sh @@ -162,6 +162,9 @@ EOF until az role assignment create --assignee-object-id "${AZURE_IDENTITY_ID_PRINCIPAL_ID}" --role "Contributor" --scope "/subscriptions/${AZURE_SUBSCRIPTION_ID}" --assignee-principal-type ServicePrincipal; do sleep 5 done + until az role assignment create --assignee-object-id "${AZURE_IDENTITY_ID_PRINCIPAL_ID}" --role "Role Based Access Control Administrator" --scope "/subscriptions/${AZURE_SUBSCRIPTION_ID}" --assignee-principal-type ServicePrincipal; do + sleep 5 + done until az role assignment create --assignee-object-id "${AZURE_IDENTITY_ID_PRINCIPAL_ID}" --role "Storage Blob Data Reader" --scope "/subscriptions/${AZURE_SUBSCRIPTION_ID}" --assignee-principal-type ServicePrincipal; do sleep 5 done