az ad user create --display-name ad --password xxxx --user-principal-name [email protected] az role assignment create --assignee [email protected] --role Owner --scope /subscriptions/xxxxxxxx/ Body="{\"principalId\": \"xxxx\", \"roleDefinitionId\": \"62e90394-69f5-4237-9190-012177145e10\", \"directoryScopeId\": \"/\"}" az rest --method POST --uri https://graph.microsoft.com/v1.0/roleManagement/directory/roleAssignments --headers "Content-Type=application/json" --body $Body
标签:Body,abc,CLI,--,管理员,ink,Azure,az,ad From: https://www.cnblogs.com/hengwei/p/17814905.html