How to Change Dynamic IP to Static in Azure
Navigate to portal.azure.com

Click on All services search IP and click on Public IP Address:
Select your desired IP address name associated to VM:
Now click on Configuration under Settings:
Now click on Static and Save button it will be changed to static from dynamic:

Click on All services search IP and click on Public IP Address:

Select your desired IP address name associated to VM:
Now click on Configuration under Settings:
Now click on Static and Save button it will be changed to static from dynamic:

Updated on: 31/01/2023
Thank you!