locked
IP Address RRS feed

  • Question

  • hi ans me a few questions about N/W.

    First I am very confused about the concept of reserved IP.

    How do I release a Reserved IP address from my subscription?How do I reserve ip add. with cloud service?

    How do i reserve ip add with a virtual machine?

    Thursday, August 6, 2015 1:34 AM

Answers

  • Hello,

    Greetings!

    Thank you for posting your query here. With regards to your query, You can only assign a reserved IP to a VIP.To prevent IP addresses from changing, you can reserve an IP address. Reserved IPs can be used only as a VIP, ensuring that the IP address for the cloud service will be the same even as resources are shutdown or deallocated. Furthermore, you can convert existing dynamic IPs used as a VIP to a reserved IP address.

    You can use Power Shell or the Azure Management REST API to request a reserved IP from a particular region. Azure will reserve an IP address from that region and correlate it to your subscription. You can then use the reserved IP in that region. You cannot reserve an IP address by using the Management Portal.

    Before you can use reserved IPs, you must add it to your subscription. To create a reserved IP from the pool of public IP addresses available in the Central US location, run the following Power Shell command.

    New-AzureReservedIP –ReservedIPName MyReservedIP –Location “Central US”

    To view what IP addresses are reserved in your subscription, run the following PowerShell command, and notice the values for ReservedIPName and Address
    Get-AzureReservedIP
    Once an IP is reserved, it remains associated to your subscription until you delete it.
    To associate a reserved IP to a new cloud service ( TestService).

    New-AzureReservedIP –ReservedIPName MyReservedIP –Location “Central US”
    $image = Get-AzureVMImage|?{$_.ImageName -like "*RightImage-Windows-2012R2-x64*"}
    New-AzureVMConfig -Name TestVM -InstanceSize Small -ImageName $image.ImageName `
    | Add-AzureProvisioningConfig -Windows -AdminUsername adminuser -Password MyP@ssw0rd!! `
    | New-AzureVM -ServiceName TestService -ReservedIPName MyReservedIP -Location "Central US"

    "How do i reserve ip add with a virtual machine?" You can assign static IP address to a Virtual machine.A static internal IP address stays with the VM even through a stop/deprovision state.

    Hope this helps!

    Let us know if you need any further assistance!
    Best Regards
    Kamalakar
    ________________________________________________________________________________________________________________
    If a post answers your question, please click Mark as Answer on that post and Vote as Helpful.

    Thursday, August 6, 2015 4:04 AM
  • Hi Steve,

    Adding to the kamalakar's Response.

    Will give you the basic idea of Reserved IP. That why do you need a Reserve IP.

        You want to ensure that the IP is reserved in your subscription. If you want to reserve an IP address that will not be released from your subscription under any circumstance, you should use a reserved public IP.

        You want your IP to stay with your cloud service even across stopped or deallocated state (VMs). If you want your service to be accessed by using an IP address that will not change even when VMs in the cloud service are stop or deallocated.

        You want to ensure that outbound traffic from Azure uses a predictable IP address. You may have your on-premises firewall configured to allow only traffic from specific IP addresses. By reserving an IP, you will know the source IP address and won’t have to update your firewall rules due to an IP change.

    Your questions about how do you release A reserved IP add from subscription and how can you use a reserve IP add. with a cloud service and virtual machine are explained in depth in the below link.

    Please refer .

    Reserved IP addresses for Cloud Services & Virtual Machines

    Regards.

    Thursday, August 6, 2015 4:47 AM

All replies

  • Hello,

    Greetings!

    Thank you for posting your query here. With regards to your query, You can only assign a reserved IP to a VIP.To prevent IP addresses from changing, you can reserve an IP address. Reserved IPs can be used only as a VIP, ensuring that the IP address for the cloud service will be the same even as resources are shutdown or deallocated. Furthermore, you can convert existing dynamic IPs used as a VIP to a reserved IP address.

    You can use Power Shell or the Azure Management REST API to request a reserved IP from a particular region. Azure will reserve an IP address from that region and correlate it to your subscription. You can then use the reserved IP in that region. You cannot reserve an IP address by using the Management Portal.

    Before you can use reserved IPs, you must add it to your subscription. To create a reserved IP from the pool of public IP addresses available in the Central US location, run the following Power Shell command.

    New-AzureReservedIP –ReservedIPName MyReservedIP –Location “Central US”

    To view what IP addresses are reserved in your subscription, run the following PowerShell command, and notice the values for ReservedIPName and Address
    Get-AzureReservedIP
    Once an IP is reserved, it remains associated to your subscription until you delete it.
    To associate a reserved IP to a new cloud service ( TestService).

    New-AzureReservedIP –ReservedIPName MyReservedIP –Location “Central US”
    $image = Get-AzureVMImage|?{$_.ImageName -like "*RightImage-Windows-2012R2-x64*"}
    New-AzureVMConfig -Name TestVM -InstanceSize Small -ImageName $image.ImageName `
    | Add-AzureProvisioningConfig -Windows -AdminUsername adminuser -Password MyP@ssw0rd!! `
    | New-AzureVM -ServiceName TestService -ReservedIPName MyReservedIP -Location "Central US"

    "How do i reserve ip add with a virtual machine?" You can assign static IP address to a Virtual machine.A static internal IP address stays with the VM even through a stop/deprovision state.

    Hope this helps!

    Let us know if you need any further assistance!
    Best Regards
    Kamalakar
    ________________________________________________________________________________________________________________
    If a post answers your question, please click Mark as Answer on that post and Vote as Helpful.

    Thursday, August 6, 2015 4:04 AM
  • Hi Steve,

    Adding to the kamalakar's Response.

    Will give you the basic idea of Reserved IP. That why do you need a Reserve IP.

        You want to ensure that the IP is reserved in your subscription. If you want to reserve an IP address that will not be released from your subscription under any circumstance, you should use a reserved public IP.

        You want your IP to stay with your cloud service even across stopped or deallocated state (VMs). If you want your service to be accessed by using an IP address that will not change even when VMs in the cloud service are stop or deallocated.

        You want to ensure that outbound traffic from Azure uses a predictable IP address. You may have your on-premises firewall configured to allow only traffic from specific IP addresses. By reserving an IP, you will know the source IP address and won’t have to update your firewall rules due to an IP change.

    Your questions about how do you release A reserved IP add from subscription and how can you use a reserve IP add. with a cloud service and virtual machine are explained in depth in the below link.

    Please refer .

    Reserved IP addresses for Cloud Services & Virtual Machines

    Regards.

    Thursday, August 6, 2015 4:47 AM