Mark Minasi's Tech Forum
Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
ross.fitzsimons

Still Checking the Forum Out
Registered:
Posts: 7
Reply with quote  #1 

I recently setup a new VM in Azure.

Strangely enough neither web interface allow you to give your VM a static external IP:

Old:

manage.windowsazure.com

New:

https://portal.azure.com


So I needed to connect to Azrue using PowerShell, firstly you need to download it:

 

https://www.microsoft.com/web/handlers/webpi.ashx/getinstaller/WindowsAzurePowershellGet.3f.3f.3fnew.appids

 

Then login:

Add-AzureAccount

Enter your azure portal details

 

Then to do anything you need to confirm/select you subscription:

Get-AzureSubscription <Copy subscription id>

Select-AzureSubscription –Id <paste id>


Then to set a static IP:
New-AzureReservedIP -ReservedIPName "RossIP” -Location "West Europe" -ServiceName “RossVM”


Obviously you need to swap out:

"RossIP” - I just made this name up, just make something relevant
"West Europe" - location of your VM
“RossVM” - name of your VM within your subscription

Other commands for Azure powershell:

https://azure.microsoft.com/en-us/documentation/articles/powershell-install-configure/


Hope this is helpful

Ross

0
Mark

Hacked Mark's Facebook Account
Registered:
Posts: 273
Reply with quote  #2 
Ross, I'm actually dealing with this now.  it's kind of strange but what basically happens is that you

1) Get a static IP, as you did.
2) Build a VM and make the static IP part of the original build process, because the weird part is that can't just build the VM, create the static IP and then add it after the fact with an Update-AzureVM.  

So I'm going to have to delete my Web server VM, create the IP and rebuild the VM.  But that's a job for the Florida office, once I set it up this week. [smile] 

__________________
May I ask that everyone please populate the first name and last name in your user account profile.  Thanks!
0
ross.fitzsimons

Still Checking the Forum Out
Registered:
Posts: 7
Reply with quote  #3 
I was able to use the below command after the fact.

My issue was I created a vm with SSD storage, not realising the extra costs.

I had to delete that vm not the disk

Make a copy of the disk onto standard storage (with the help of microsoft)

Create a new vm, and attach the new standard storage disk.

The new vm was now up and running on standard storage disks, an exact copy of my original server but I didn't have a static public IP.

The below command done the trick for me

Ross 
0
wobble_wobble

Avatar / Picture

Associate Troublemaker Apprentice
Registered:
Posts: 940
Reply with quote  #4 
Mark,
You should be able to set a static IP address on it.
Static IP can be configured on the new (old portal ibiza) https://portal.azure.com

As well as with the powershell commands.


Edited - checked on the the new portal and if you have a cloud service built you can add  static IP - apparently not if you did it all in the new portal without a cloud service.
Must be the virtual network piece that is needed

Need to power off the VM to add a static private IP to a server.
But yes the powershell command adds a reserved IP address


__________________
Have you tried turning it off and walking away? The next person can fix it!

New to the forum? Read this
0
Mark

Hacked Mark's Facebook Account
Registered:
Posts: 273
Reply with quote  #5 
Yes, but according to the blogs it's not a "real" static IP.
__________________
May I ask that everyone please populate the first name and last name in your user account profile.  Thanks!
0
wobble_wobble

Avatar / Picture

Associate Troublemaker Apprentice
Registered:
Posts: 940
Reply with quote  #6 
It's as close to a static as Azure will give you.
https://azure.microsoft.com/en-us/pricing/details/ip-addresses/

https://azure.microsoft.com/en-us/blog/reserved-ip-addresses/

__________________
Have you tried turning it off and walking away? The next person can fix it!

New to the forum? Read this
0
Mark

Hacked Mark's Facebook Account
Registered:
Posts: 273
Reply with quote  #7 
Honest, I messed with this trying to add it to an existing Azure VM, and it was useless.  The address existed but was bound to nothing -- not the cloud service, not the VM.
__________________
May I ask that everyone please populate the first name and last name in your user account profile.  Thanks!
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.