我试图运行命令:
az acs create --orchestrator-type kubernetes --resource-group myResourceGroup --agent-count 1 --name myK8SCluster
--generate-ssh-keys
哪个应该生成主体,然后生成kubernetes集群。
但是有错误:
Could not create a service principal with the right permissions. Are you an Owner on this project? Deployment failed. Correlation ID: 1e8e87ee-f01e-4394-8356-cc4956b44b5e. { "error": {
"code": "BadRequest",
"message": "The Service Principal in ServicePrincipalProfile could not be validated. Please see https://aka.ms/acs-sp-help for more details. (The client 'ffc0ce03-2ba5-46e7-b0dd-99a7980da24b' with object id 'ffc0ce03-2ba5-46e7-b0dd-99a7980da24b' does not have authorization to perform action 'Microsoft.Authorization/roleAssignments/read' over scope '/subscriptions/b9a29aba-5bcd-45dd-99e5-8971de90d595/resourceGroups/myResourceGroup/providers/Microsoft.Authorization'.)" } }
我的azure帐户有管理员角色,我的目录角色是全局管理员,我是唯一使用此azure帐户的人。
我试图删除.azure文件夹的内容无济于事。我在Windows 10上。