Generally you should not Assigned the Privet IP address within the VM's OS, But there are occasion you might need to do it. But never assigned Public IP address to the interface using the OS.Please find below for reference and best Practices of the configuring VM IP.
virtual-networks-static-private-ip-arm-pportal
virtual-network-network-interface-addresses
If above helps you. Please Mark as Answered and Give me a Vote.
Thnx