0

我已按照https://docs.microsoft.com/en-us/azure/aks/static-ip链接中提到的步骤进行操作。

我收到以下错误。

  Warning  ListPublicIPs           22s (x4 over 57s)  azure-cloud-provider  network.PublicIPAddressesClient#List: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="AuthorizationFailed" Message="The client 'f76e0cc5-db5a-459a-bd4e-8c8d7b453f05' with object id 'f76e0cc5-db5a-459a-bd4e-8c8d7b453f05' does not have authorization to perform action 'Microsoft.Network/publicIPAddresses/read' over scope '/subscriptions/166aaa5b-86d9-49d7-b7cc-2bf38cc91490/resourceGroups/myResourceGroup/providers/Microsoft.Network' or the scope is invalid. If access was recently granted, please refresh your credentials."
  Warning  SyncLoadBalancerFailed  22s (x4 over 57s)  service-controller    Error syncing load balancer: failed to ensure load balancer: network.PublicIPAddressesClient#List: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="AuthorizationFailed" Message="The client 'f76e0cc5-db5a-459a-bd4e-8c8d7b453f05' with object id 'f76e0cc5-db5a-459a-bd4e-8c8d7b453f05' does not have authorization to perform action 'Microsoft.Network/publicIPAddresses/read' over scope '/subscriptions/166aaa5b-86d9-49d7-b7cc-2bf38cc91490/resourceGroups/myResourceGroup/providers/Microsoft.Network' or the scope is invalid. If access was recently granted, please refresh your credentials."
4

1 回答 1

0

您要么在错误的资源组中创建它,要么没有向 AKS 群集授予权限

所以基本上你需要向以下应用程序授予贡献者权限:f76e0cc5-db5a-459a-bd4e-8c8d7b453f05在这个范围内:/subscriptions/166aaa5b-86d9-49d7-b7cc-2bf38cc91490/resourceGroups/myResourceGroup

于 2020-12-01T13:57:56.507 回答