The public IP address assigned to a NIC of an Azure VM is not exposed within the operating system
To implement the configuration you described, follow https://techcommunity.microsoft.com/blog/itopstalkblog/step-by-step-adding-multiple-ip-addresses-to-an-azure-virtual-machine-with-power/2677513
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin