Forum Discussion

ariffisariff's avatar
ariffisariff
Copper Contributor
Nov 02, 2020

Availability zone with same IP address

Hi,

Can Azure support in a different availability zone with a same IP address?


Thanks.

  • pazdedav's avatar
    pazdedav
    Steel Contributor

    Hi ariffisariff,

     

    Availability Zone (AZ) in Azure is a construct that allows for high availability design. AZs are unique physical locations within a region. Each zone is made up of one or more datacenters equipped with independent power, cooling, and networking.

     

    Virtual Networks (when created) span the entire region. In other words, it is stretched to all AZs within the region, allowing you to use one address space and "spread" your Compute resources (typically Azure VMs) to multiple zones, but they are still connected to the same VNet.

     

    I am not sure, if this answers your question, but AZ is not a networking feature, it is a physical boundary of buildings, equipment, and hardware, helping you to design and build more resilient applications and services.

    • ariffisariff's avatar
      ariffisariff
      Copper Contributor

      pazdedav Hi David. Thanks for the explanation. Are there any chances that I can provision 2 new VM within AZ with the same IP address? I have this question coming because based on my testing, the only configuration that I can configure the AZ to 1 or 2 or 3 zones which I can't technically configure to edit the IP address.

       

      The only my understanding now is when I spawn a new VM in one region, I can select how many AZ (1, 2 or 3). My objective is simple, I have one application where I want to make it redundant for HA. 

       

      Traditionally, for HA, I need to spawn 2 VMs with a different IP address in the separate data centre and configure it for HA. 

    • ariffisariff's avatar
      ariffisariff
      Copper Contributor

      pazdedav Hi David. Thanks for the explanation. Are there any chances that I can provision 2 new VM within AZ with the same IP address? I have this question coming because based on my testing, the only configuration that I can configure the AZ to 1 or 2 or 3 zones which I can't technically configure to edit the IP address.

       

      The only my understanding now is when I spawn a new VM in one region, I can select how many AZ (1, 2 or 3). My objective is simple, I have one application where I want to make it redundant for HA. 

       

      Traditionally, for HA, I need to spawn 2 VMs with a different IP address in the separate data centre and configure it for HA. 

  • SeyedBasim's avatar
    SeyedBasim
    Copper Contributor
    As David explained AZ is for high Availability seperated by a physical boundry within the region. But definitely no 2 compute resources within 2 AZs have the same internal IP. Because all the Compute resource has its own internal IP addresses. But you can have Public IP to be the same across VMs within 2 different AZs.
    In that case:
    1. For inbound - use Load Balancer or Application Gateway(only in layer 7)
    2. For outbound - use NAT Gateway
    https://docs.microsoft.com/en-us/azure/virtual-network/nat-gateway-resource

Resources