Can I assign an instance IP address to my VM via the browser portal?
If I go to the https://portal.azure.com portal and select the VM, then there's an "IP addresses" option. If I select it then I can choose whether "Instance IP address" is on or off. However, the On option does not actually assign me an IP Address.
I've seem directions for doing it via Azure PowerShell, but I would really so much like to avoid having to install and configure yet another application.
Using Azure PS you can get private IP and public IP of VM
$VMName = "myvm"
$RGName = "myrg"
$PrivateIP = (Get-AzureRmNetworkInterface -Name $VMName -ResourceGroupName $RGName).IpConfigurations.PrivateIpAddress
$PublicIP = (Get-AzureRmPublicIpAddress -Name $VMName -ResourceGroupName $RGName).IpAddress
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.