Forum Discussion

margaretaak's avatar
margaretaak
Copper Contributor
Sep 30, 2025

I can't delete my Azure Key Vault Connection in Azure AI Foundry

I have deleted all project under my Azure AI Foundry, but I still can't delete the Azure Key Vault Connection. Error: Azure Key Vault connection [Azure Key Vault Name] cannot be deleted, all credentials will be lost. Why is this happening?

1 Reply

  • hi margaretaak​ This usually happens because Azure Key Vault connections in Azure AI Foundry are workspace-level resources, not just tied to individual projects. Even if you delete all projects, the connection may still be referenced by environments, deployments, or other assets in the hub.

    Things you can try:

    Go to Azure AI Foundry → Manage → Connections and check if the Key Vault connection is still linked to any resources.

    Delete or unlink any environments, endpoints, or assets that use secrets from this Key Vault.

    If it still won’t delete, try removing the connection directly from the Azure portal → AI Foundry hub → Connections.

    As a last resort, you can remove the AI Foundry’s managed identity from the Key Vault access policies (or delete the Key Vault itself). The connection should then clear out after sync.

    If the connection is not being used, it’s also safe to leave it — it won’t impact billing or functionality. Alternatively, you can create a new hub without linking that Key Vault and migrate projects over.

Resources