title: Azure Kubernetes Service Connection Cannot be Verified
body: <p>I am trying to add a new kubectl task for an Agent Job in Pipelines. When I pasted the kubectl configuration, I received this error:</p>
  <pre class="lang-sh prettyprint-override"><code>The URL resolves to address &quot;https://api.dev.mysite.com/api/v1/nodes&quot;, 
  which is in a special purpose range that is not allowed in a Service Endpoint.
  </code></pre>
  <p>It seems very odd to me that a standard Kubernetes path would be blocked off. Is there a workaround for this?</p>
  <p>The config file looks like this:</p>
  <pre><code>apiVersion: v1
  clusters:
  - cluster:
      certificate-authority-data: [random stuff here]
      server: https://api.dev.mysite.com
    name: dev.mysite.com
  contexts:
  - context:
      cluster: dev.mysite.com
      namespace: default
      user: dev.mysite.com
    name: dev.mysite.com
  current-context: dev.mysite.com
  kind: Config
  preferences: {}
  users:
  - name: dev.mysite.com
    user:
      client-certificate-data: [random stuff here]
      client-key-data: [random stuff here]
      password: [password here]
      username: [username here]
  - name: dev.mysite.com-basic-auth
    user:
      password: [password here]
      username: [username here]
  </code></pre>