Skip to content

Commit d566be8

Browse files
author
Vivek Lakshmanan
committed
Switch to service principal
1 parent 4ef7d6c commit d566be8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

azure-py-call-azure-sdk/__main__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def get_role_id_by_name(name, scope=""):
4646

4747
authorization.RoleAssignment("access-from-cluster",
4848
principal_id=current_principal,
49-
# adjust this if running as service principal
50-
principal_type=authorization.PrincipalType.USER,
49+
# adjust this if running as user
50+
principal_type=authorization.PrincipalType.SERVICE_PRINCIPAL,
5151
role_definition_id=roledef,
5252
scope=container_registry.id)

0 commit comments

Comments
 (0)