Is it possible to get the public virtual IP (VIP) of an azure service using powershell?
From inside of the virtual machine, simply use the IPConfig command to see the IP addresses that the VM is using.
Checking an IP Address in VMware vSphere ClientGo to Hosts and Clusters, select the needed VM by name and check the Summary tab. The VMware IP addresses of the virtual machine are displayed in the IP addresses section. One VM can have multiple virtual network adapters and multiple IP addresses.
Open a command prompt or PowerShell. Enter ipconfig /all at the command line. Verify the primary and secondary private IP addresses have been added to the configuration. Ensure the primary private IP address used in windows is the same as the primary IP address of the Azure VM network interface.
One approach would be to use the Get-AzureEndpoint command
Get-AzureVM -Name "thevmname" -ServiceName "theservicename" | Get-AzureEndpoint | select { $_.Vip }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With