title: Java equivalent code for az aks get-versions -l eastus
body: <p>I need to programmatically list the available aks version in a region using Java API.Is this API exposed in the azure java sdk? If so where? </p>
  
  <p>I tried using azureClient.containerServices().manager().kubernetesClusters().listKubernetesVersions(Region.US_EAST) but this doesn't give me the correct result. This is the result I get is:</p>
  
  <ul>
  <li>1.10.12 </li>
  <li>1.10.13</li>
  <li>1.11.8</li>
  <li>1.11.9</li>
  <li>1.12.6</li>
  <li>1.12.7</li>
  <li>1.13.4</li>
  <li>1.13.5</li>
  <li>1.14.0</li>
  <li>1.6.9</li>
  <li>1.9.10</li>
  <li>1.9.11</li>
  </ul>
  
  <p>I tried the following cli command az aks get-versions -l eastus. This gives me the proper result. </p>
  
  <p>KubernetesVersion    Upgrades <br>
  -------------------  ------------------------ <br>
  1.12.7               None available <br>
  1.12.6               1.12.7 <br>
  1.11.9               1.12.6, 1.12.7 <br>
  1.11.8               1.11.9, 1.12.6, 1.12.7 <br>
  1.10.13              1.11.8, 1.11.9 <br>
  1.10.12              1.10.13, 1.11.8, 1.11.9 <br>
  1.9.11               1.10.12, 1.10.13 <br>
  1.9.10               1.9.11, 1.10.12, 1.10.13 <br></p>