Hi @Anonymous ,
You can set static ip on network interface settings on Azure portal. Do not change them inside VM.
https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/virtual-networks-static-private-ip-arm-pportal
Please upvote or accept as answer if it helped.