<p>I have a AKS cluster and I want to get the public IP of the virtual machine scale set associated with the cluster's agentpool. I found this <a href="https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-networking#:~:text=To%20list%20the%20public%20IP,instance%2Dpublic%2Dips%20command.&amp;text=You%20can%20also%20display%20the,%2D03%2D30%20or%20higher." rel="nofollow noreferrer">documentation page</a> and tried the following API call:  </p>

<p><code>GET https://management.azure.com/subscriptions/{your sub ID}/resourceGroups/{RG name}/providers/Microsoft.Compute/virtualMachineScaleSets/{scale set name}/publicipaddresses?api-version=2017-03-30</code></p>

<p>but i get this response: <code>{"value":[]}</code></p>

Daniel
<p>By default the virtual machine scale set of AKS doesn't have public IP. AKS nodes do not require their own public IP addresses for communication.</p>

<p>But you can assign a public IP per node(preview mode).</p>

<p>Here is the link to official documentation:</p>

<p><a href="https://learn.microsoft.com/en-us/azure/aks/use-multiple-node-pools#assign-a-public-ip-per-node-for-your-node-pools-preview" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/azure/aks/use-multiple-node-pools#assign-a-public-ip-per-node-for-your-node-pools-preview</a></p>
