We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ef7d6c commit d566be8Copy full SHA for d566be8
azure-py-call-azure-sdk/__main__.py
@@ -46,7 +46,7 @@ def get_role_id_by_name(name, scope=""):
46
47
authorization.RoleAssignment("access-from-cluster",
48
principal_id=current_principal,
49
- # adjust this if running as service principal
50
- principal_type=authorization.PrincipalType.USER,
+ # adjust this if running as user
+ principal_type=authorization.PrincipalType.SERVICE_PRINCIPAL,
51
role_definition_id=roledef,
52
scope=container_registry.id)
0 commit comments