My company has opened very specific IP ranges against 3389 port. So I want to get my VM public IP under those IP ranges. Azure public IP values are coming from azure and we can't choose it. So question is that can we restrict the range of public IP coming from Azure?
We can restrict private IP range using subnet / address space properties of virtual network e.g. (23.96.0.0/27- Host Address Range -23.96.0.1 - 23.96.0.30). But these properties haven't any impact to public IP what has assigned.
Any suggestions?
This is not possible, closest you can get - create a public ip and set it to static and allow it on firewall. It will never change.
The ips you assigned to the Vnet are for Vnet internal addresses, not external. You cannot control which external Ip you will get (when creating it).