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 *****

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

上一篇:Http简介


下一篇:.Net开源CSV文件处理组件学习