Azure - how private static IP works from OS perspective?

Your VM's in Azure use DHCP to obtain their IP addresses, and you should not make any changes to the network configuration inside the VM as this will likely break access to the VM.

When you assign a static private IP to a VM you are essentially creating a reservation in the Azure DHCP system which will ensure that this IP is always assigned to this VM.