Assign Azure IP to Local PC

Chris Green 0 Reputation points
2024-09-15T20:19:15.3333333+00:00

I would like to temporarily assign a static IP address in our Azure to my local PC during development. Is this possible?

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,472 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Dillon Silzer 57,491 Reputation points
    2024-09-15T21:13:12.1366667+00:00

    Hi Chris,

    If you are referring to using a Azure VM's Static Public IP address, then no and I wouldn't recommend trying to make it work.

    If you are looking to work in an environment where you can leverage this IP address, simply create an Azure Virtual Machine and RDP into it to utilize that Static IP address and set up your environment there.

    Quickstart: Create a Windows virtual machine in the Azure portal

    https://learn.microsoft.com/en-us/azure/virtual-machines/windows/quick-create-portal


    If this is helpful please accept as answer or upvote.

    Best regards,

    Dillon Silzer | Cloudaen.com | Cloudaen Computing Solutions

    0 comments No comments

  2. akinbade abiola 17,290 Reputation points
    2024-09-15T21:15:14+00:00

    Assigning an Azure public IP address directly to your local PC is not possible.

    Best practice is to use a VPN Gateway to connect your local PC to the Azure Virtual Network.

    See: https://learn.microsoft.com/en-us/azure/vpn-gateway/tutorial-create-gateway-portal

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola

    0 comments No comments

  3. KapilAnanth-MSFT 46,016 Reputation points Microsoft Employee
    2024-09-19T10:55:20.17+00:00

    @Chris Green ,

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    I see Dillon Silzer and akinbade abiola has addressed your queries.

    As mentioned, there are no out of box solutions for this.

    • A similar requirement is being addressed here (for Inbound traffic)
    • You should use a NVA in Azure if you want internet connectivity via Azure IP

    Set Up:

    • You should advertise additional custom routes 0.0.0.0/1 and 128.0.0.0/1
    • The reason for breaking 0.0.0.0/0 into two smaller subnets is that these smaller prefixes are more specific than the default route that may already be configured on the local network adapter and, as such, will be preferred when routing traffic.
    • This requires that the
    1. There is an NVA (such as Azure Firewall) that can handle internet traffic
    2. GatewaySubnet has a UDR with routes 0.0.0.0/1 and 128.0.0.0/1 pointing to the nextHop as the NVA's IP Address

    Kindly let us know if this helps or you need further assistance on this issue.

    Thanks,

    Kapil


    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.