Changing Public and Private IP Address from Dynamic to Static

By default, the Azure VM has a dynamic IP address which changes during the reboot. Hence you need to change from dynamic to static.

  1. Click the Public IP address under the Overview section.
  2. See the accompanying screenshot:

    Figure 10-4 Public IP Address


    Public IP Address
  3. Choose Static or Dynamic as per your requirement then click Save.

    Figure 10-5 Save IP address


    Save IP address
  4. Click Networking on the side panel.
  5. Click on the network interface as shown in the graphic.

    Figure 10-6 Network Interface


    Network Interface
  6. Click Private IP under IP Configuration.
  7. Assign the Dynamic or Static IP address.

    Figure 10-7 Static and Dynamic Address


    Static and Dynamic Address