I am trying to delete the public IP address from azure. I have already removed the associated Network Interface card from Azure but deleting the IP address is throwing the below error.
Public IP address /subscriptions/ddddddd-ddddd-dddd-dddd-dddddddd/resourceGroups/atcsl/providers/Microsoft.Network/publicIPAddresses/pip-VM1_Windows can not be deleted since it is still allocated to resource /subscriptions/ddddddd-ddddd-dddd-dddd-dddddddd/resourceGroups/atcsl/providers/Microsoft.Network/networkInterfaces/nic_VM1_Windows/ipConfigurations/ipconfig1. In order to delete the public IP, disassociate/detach the Public IP address from the resource. To learn how to do this, see aka.ms/deletepublicip.