<p>I am trying to connect to internal load balancer using the below link:
<a href="https://learn.microsoft.com/en-us/azure/aks/internal-lb" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/azure/aks/internal-lb</a></p>

<p>I see a non existing user in error message I am receiving:</p>

<pre><code>Warning  CreatingLoadBalancerFailed  3m (x7 over 9m)  service-controller  Error creating load balancer (will retry): failed to ensure load balancer for service default/azure-vote-front: network.SubnetsClient#Get: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="AuthorizationFailed" Message="The client '91c18461-XXXXXXXX---1441d7bcea67' with object id '91c18461-XXXXXXXXX-1441d7bcea67' does not have authorization to perform action 'Microsoft.Network/virtualNetworks/subnets/read' over scope '/subscriptions/996b68c3-ec32-46d4-8d0e-80c6da2c1a3b/resourceGroups/&lt;&lt;resource group&gt;&gt;/providers/Microsoft.Network/virtualNetworks/&lt;&lt;VNET&gt;&gt;/subnets/&lt;&lt;subnet id&gt;&gt;
</code></pre>

<p>When I search this user in my azure subscription, I do not find it. 
Any help shall be highly appreciated</p>

<h2>Below is my manifest file</h2>

<pre><code>apiVersion: apps/v1beta1
    kind: Deployment
    metadata:
      name: azure-vote-back
    spec:
      replicas: 1
      template:
        metadata:
          labels:
            app: azure-vote-back
        spec:
          containers:
          - name: azure-vote-back
            image: redis
            ports:
            - containerPort: 6379
              name: redis
    ---
    apiVersion: v1
    kind: Service
    metadata:
      name: azure-vote-back
    spec:
      ports:
      - port: 6379
      selector:
        app: azure-vote-back
    ---
    apiVersion: apps/v1beta1
    kind: Deployment
    metadata:
      name: azure-vote-front
    spec:
      replicas: 1
      strategy:
        rollingUpdate:
          maxSurge: 1
          maxUnavailable: 1
      minReadySeconds: 5 
      template:
        metadata:
          labels:
            app: azure-vote-front
        spec:
          containers:
          - name: azure-vote-front
            image: phishbotstagingregistry.azurecr.io/azure-vote-front:v1
            ports:
            - containerPort: 80
            resources:
              requests:
                cpu: 250m
              limits:
                cpu: 500m
            env:
            - name: REDIS
              value: "azure-vote-back"
    ---
    apiVersion: v1
    kind: Service
    metadata:
      name: azure-vote-front
      annotations:
        service.beta.kubernetes.io/azure-load-balancer-internal: "true"
    spec:
      type: LoadBalancer
      ports:
      - port: 80
      selector:
        app: azure-vote-front
</code></pre>

GKS
<p>When you created AKS you provided wrong credentials (or stripped permissions later). So the service principal AKS is not authorized to create that resource (which the error clearly states).</p>

<blockquote>
  <p>Code="AuthorizationFailed" Message="The client
  '91c18461-XXXXXXXX---1441d7bcea67' with object id
  '91c18461-XXXXXXXXX-1441d7bcea67' does not have authorization to
  perform action 'Microsoft.Network/virtualNetworks/subnets/read' over
  scope
  '/subscriptions/996b68c3-ec32-46d4-8d0e-80c6da2c1a3b/resourceGroups/&lt;>/providers/Microsoft.Network/virtualNetworks/&lt;>/subnets/&lt;></p>
</blockquote>

<p>You can use <code>az aks list --resource-group &lt;your-resource-group&gt;</code> to find your service principal, but the error kinda gives that away.</p>
