Azure Public IP deletion error


Code:
Failed to delete public IP address xxxx. Error: Public IP address xxxx can not be deleted since it is still allocated to resources...

Solution:
  • Go to your Azure portal dashboard
  • Select your Public IP, that you want to delete
  • Click on Disassociate
You have just feed-up the IP, now try again with the delete action, it would be successful!

Example:
Code:
Deleted public IP address
Successfully deleted public IP address xxxx.