azure-xplat-cli icon indicating copy to clipboard operation
azure-xplat-cli copied to clipboard

How to assign/swap reserved IP to cloud service ?

Open jimyjohny opened this issue 10 years ago • 24 comments

The help doc provides how to create a reserved IP. But, how can we assign it to a cloud service ? Also, how can we swap the reserved IP between cloud services ? ( new feature announced before two weeks )

jimyjohny avatar May 18 '15 06:05 jimyjohny

To apply reserved IP to an IaaS VM reside in a cloud service, first you need to create reserved IP using:

network reserved-ip create [options] name location

then while creating VM using 'vm create' command specify reserved IP name via --reserved-ip argument

Swapping is not yet supported.

anuchandy avatar May 18 '15 07:05 anuchandy

+1 to this.

magaal avatar Jun 25 '15 21:06 magaal

In windows azure powershell, Set-AzureReservedIPAssociation command allows to assign the IP to the running deployment. Its more than 3 months since this feature is available. When can we expect this here ?

jimyjohny avatar Aug 10 '15 05:08 jimyjohny

+1 for supporting reserved-ip assignment for existing resources.

ghost avatar Sep 01 '15 07:09 ghost

+1 For supporting this. I have to destroy a network and start from scratch because of this

fbatiga avatar Oct 06 '15 10:10 fbatiga

This is an older thread but I was looking for this very thing, and the posts above are no longer true. I just assigned two reserved IPs to different cloud services that are existing with VMs running in them. Get-AzureReservedIP |Select ReservedIPName,Address lists the reserved IP information. Get-AzureService |Select ServiceName lists the services you have.

Set-AzureReservedIPAssociation -ReservedName <from above> -ServiceName <from above>

works quite nicely. You can also add it to existing VMs now, I believe.

milburnr avatar Nov 10 '15 03:11 milburnr

@milburnr - It works only in Windows. The feature is needed for running cli from a Linux OS.

jimyjohny avatar Nov 20 '15 02:11 jimyjohny

+1. Currently there is no way to assign a reserved ip to a cloud service in cli.

statikon avatar Dec 04 '15 14:12 statikon

Thanks @statikon I spend hours and try to hookup the ip to vm with my mac machine...it doesn't work. It takes a second to do it in windows machine. Azure should document it better...

VickiFu avatar Dec 31 '15 20:12 VickiFu

add @jtuliani @sauryadas for comments

yugangw-msft avatar Jan 04 '16 17:01 yugangw-msft

I think this not only need to be documented but also implemented in linux cli!

PhoneixS avatar Jan 25 '16 10:01 PhoneixS

+1 for this support in cli.

sivaedupuganti avatar Feb 17 '16 22:02 sivaedupuganti

+1 for this support in cli

santopuppy avatar May 24 '16 13:05 santopuppy

+1 for this support in cli

dafoyiming avatar Jun 03 '16 14:06 dafoyiming

will the azure-cli supports this sometime?

alambike avatar Jun 08 '16 00:06 alambike

@jtuliani, @romangromov @sauryadas - Can you provide a timeline for adding support for this feature?

amarzavery avatar Jun 08 '16 00:06 amarzavery

+1. Currently, there is no easy way to do that without Powershell.

mvallerie avatar Jul 09 '16 01:07 mvallerie

No. you can assign directly in web portal for vm.

On Fri, Jul 8, 2016 at 9:06 PM, Mikaël Vallerie [email protected] wrote:

+1. Currently, there is no easy way to do that without Powershell.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Azure/azure-xplat-cli/issues/1791#issuecomment-231505438, or mute the thread https://github.com/notifications/unsubscribe/AA3MEvRuroaCBtGbsP-lASh2L02mA3BJks5qTvQEgaJpZM4EeYmt .

Vicki Fu

VickiFu avatar Jul 10 '16 19:07 VickiFu

+1. This is quite crucial for any live projects. Please add this to cli or better on Azure portal

nathando avatar Jul 16 '16 13:07 nathando

@jtuliani, @MikhailTryakhov @romangromov, @huangpf, @sauryadas -

We have had enough number of +1s for this. Seems like people are still using ASM a lot over ARM. So, can this request be supported?

amarzavery avatar Jul 16 '16 16:07 amarzavery

+1. No work for this?

hellojunha avatar Jul 26 '16 09:07 hellojunha

Fixed and published

MikhailTryakhov avatar Oct 10 '16 13:10 MikhailTryakhov

@MikhailTryakhov Is this new feature can be used in 0.10.7 ? if it works, would you please share the command sample for me? 😄

dafoyiming avatar Nov 16 '16 15:11 dafoyiming

I have spent a few hours trying to find a way to do this in a asm deployment with the azure-xplat-cli tools. Alas, I now know a lot about ASM, ARM, azure cli, node.js, python, powershell and even a bit of the rest api. I feel I have been taken to a Kafka tour of the internet.

gredondogc avatar Nov 28 '16 19:11 gredondogc