Forum Discussion
Suhag Desai
Dec 10, 2017Brass Contributor
How to assign public IP to existing VM
Hi,
i already have one VM running with internal IP. How can i assign public IP to this existing VM through powershell and GUI ?
Regards,
Suhag
Kent Gaardmand
Dec 10, 2017Steel Contributor
you need to deploy a Public Ip addresse, once that is complete you can associate it to a VM
https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-deploy-static-pip-arm-portal
https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-deploy-static-pip-arm-portal
- Suhag DesaiDec 10, 2017Brass ContributorHi Kent
Thanks for your reply but in my scenario I already have azure windows vm with internal ip.
Now I want to assign the public static ip to this vm.
The URL which you are referring is showing how to deploy the vm from scratch with public ip.
Can you pl provide the steps or powershell command to do this.
Thanks- Vineet AroraDec 11, 2017Brass Contributor
Hi,
See steps below.
1. Go to your VM on portal.
2. Click on the Networking under settings in VM blade.
3. Click on the Network Interface in Networking blade.
4. Click on IP Configuration under settings in Network Interface blade.
5. Click on the IP configuration on the IP configuration blade.
6. Select Enable under Public IP address settings.
7. Create a New IP address and choose static. Save the IP address and then the IP Configuration.
- quangvublogAug 05, 2020Copper Contributor
Thank you so much for useful information Vineet Arora