AzRoleAssignment for service principal.

 

Surprisingly the powershell command to add role assignment to service principal can be set using -applicationId. 


New-AzRoleAssignment -ApplicationId serviceprincipal

 -RoleDefinitionName "Azure Kubernetes Service Cluster User Role" 

-Scope 

"your-resource-scope"



Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type