Why it matters
Each endpoint costs little on its own, but large estates can hold hundreds of them, one per service and network.How nOps finds it
nOps reads your Azure Private Link billing. A private endpoint is flagged when its hourly charge was billed on all of the last 60 complete days and it processed no data at all in that time. nOps uses 60 days rather than 14 because endpoints that are only used now and then would otherwise be flagged. The saving is everything the endpoint cost in the last 7 days, net of discounts and scaled to a month, and must be at least $5 a month.Before you start
Permission to delete private endpoints (for example Network Contributor).How to implement
- In the Azure portal, open Private Link Center → Private endpoints and select the endpoint.
- Check which resource it connects to and whether that resource is still in use.
- Check the private DNS zone records for the endpoint so you know what clients resolve the service name to.
- Delete the endpoint, or run
az network private-endpoint delete --resource-group MY_RG --name MY_ENDPOINT. - If the endpoint is defined in Terraform, Bicep or ARM templates, remove it there as well.
Risks and considerations
- After deletion, clients resolve the service name to its public endpoint. If public access to the service is turned off, those clients can no longer reach it.
- A deleted endpoint cannot be restored. You can create a new one, which gets a new private IP address.
FAQs
Why does nOps wait 60 days?
Why does nOps wait 60 days?
Some endpoints carry traffic only for occasional jobs. Waiting 60 days with no data at all makes it much less likely that an endpoint still in use is flagged.