By default, when a virtual machine is created, it will have a dynamic public IP address. To convert an existing public IP from dynamic to static using the Azure portal:
Browse to the Public IP address to be updated
Switch to the Configuration blade
Change the Assignment from Dynamic to Static
Click on Save to save the changes
If you have any questions, feedback or ideas please Contact Us