An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
Hi!
You can try remove a public ip with -force parameter like:
Remove-AzPublicIpAddress -Name $publicIpName -ResourceGroupName $rgName -Force
Get in touch if you need more help with this issue.
--please don't forget to Accept as answer if the reply is helpful--