Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Powershell: Get public virtual IP of service

Is it possible to get the public virtual IP (VIP) of an azure service using powershell?

like image 734
Christian Genne Avatar asked May 31 '13 12:05

Christian Genne


People also ask

How do I find the IP address of a virtual machine using PowerShell?

From inside of the virtual machine, simply use the IPConfig command to see the IP addresses that the VM is using.

How do I find the IP address of a virtual machine?

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.

How do I get a private IP address from Azure VM using PowerShell?

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.


1 Answers

One approach would be to use the Get-AzureEndpoint command

Get-AzureVM -Name "thevmname" -ServiceName "theservicename" | Get-AzureEndpoint | select { $_.Vip }
like image 90
Mike Asdf Avatar answered Oct 02 '22 15:10

Mike Asdf