Use Case:
Occasionally, an application necessitates a fixed IP address to hold a license, or a customer wants to enforce access through an IP address. In such cases, customers may find it necessary to assign a static IP to a Workspot Desktops. By default, Workspot desktops have a dynamic IP address assigned.
Steps to assign a Static Private IP address to a VM:
Login to the Azure portal https://portal.Azure.com.
Locate the NIC of the resource that requires Static IP. Please make sure the resource is in the stopped state.
Select IP Configurations under settings.
Click on “ipv4config”, on the right “Edit IP Configuration” page to static IP address.

After these changes have been made, click Save to apply the new configuration.