<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>You can validate whether the <code>publicipaddresses</code> key of your scale set contains any values by visiting <a href="https://resources.azure.com/" rel="nofollow noreferrer">https://resources.azure.com/</a> and navigating to the scale set. It is entirely possible that your VMSS has no public IPs associated with the VMs.</p>
