WarError syncing load balancer: failed to ensure load balancer: network.SubnetsClient#Get: Failure responding to request: StatusCode=403

Warning SyncLoadBalancerFailed 4m55s (x8 over 15m) service-controller Error syncing load balancer: failed to ensure load balancer: network.SubnetsClient#Get: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="AuthorizationFailed" Message="The client '***' with object id '***' does not have authorization to perform action 'Microsoft.Network/virtualNetworks/subnets/read' over scope '*****' or the scope is invalid. If access was recently granted, please refresh your credentials."

"AuthorizationFailed"
如果patch service失败是因为over scope就是权限不足需要执行
az role assignment create --assignee *** --role "Contributor" --scope *****

az login

 

posted @ 2021-03-16 16:40  Gdavid  阅读(407)  评论(0编辑  收藏  举报