cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to destroy NCC private endpoint

Dnirmania
Contributor

Hi Team

Accidentally, we removed one of the NCC private endpoints from our storage account that was created using Terraform. When I tried to destroy and recreate it, I encountered the following error. According to some articles, the private endpoint will be automatically purged after 7 days, but how can I purge it immediately?

Error: cannot delete mws ncc private endpoint rule: Private endpoint rule with id *******-ee7a-4087-8264-******* is already deactivated and will be purged at 1744806202021.

 

1 REPLY 1

Vidhi_Khaitan
Databricks Employee
Databricks Employee

 

Once a private endpoint rule is deactivated, it isn't immediately removed. Instead, it will be scheduled for purging after a set time period. In your case, the rule is slated for purging at the timestamp mentioned. 
This situation can occur in scenarios where a user manually deletes a private endpoint rule while it's still being managed by Terraform, leading to inconsistencies between the Terraform state and the actual resources in Azure. As a result, when Terraform tries to recreate or manage the rule, it runs into conflicts due to the existing deactivated state of the rule.

If the rule is already deactivated, the easiest approach would be to wait for the automatic purging to occur as scheduled.

Otherwise, you can remove the endpoint like this -

https://docs.databricks.com/aws/en/security/network/serverless-network-security/manage-private-endpo...