Static IP address is used when the change of the address connected to the device is unwanted.
Dynamic IP address is used whenever a change of address is needed and is assigned to other devices to access it.
Azure Virtual machine will be assigned a dynamic IP address by default.