A unified Azure platform for creating and managing AI models, agents, and applications with built‑in enterprise security, monitoring, and governance
Hi @Siva
Step 1: Delete the Model Deployment
Azure blocks parent account deletion as long as any child deployment still exists. [1]
- Option A — Azure Portal:
- Open the Azure Portal.
- Navigate to your AI Foundry / Cognitive Services account (
<AI-Foundry-Account>).- Go to Models + endpoints or Deployments (check both tabs, as Foundry deployments can sometimes hide under service endpoints).
- Select and delete any active model deployments.
- Wait a moment for the deployment deletion to finish, then delete the Cognitive Services account itself. [1, 2]
- Option B — Azure CLI (Alternative): List and delete the deployment via command line:
Use code with caution. bashaz cognitiveservices account deployment list --name <AI-Foundry-Account> --resource-group <resource-group-name>
Use code with caution. After the deployment is gone, delete the account: bashaz cognitiveservices account deployment delete --name <AI-Foundry-Account> --resource-group <resource-group-name> --deployment-name <deployment-name>
Use code with caution.az cognitiveservices account delete --name <AI-Foundry-Account> --resource-group <resource-group-name>
- Select and delete any active model deployments.
- Go to Models + endpoints or Deployments (check both tabs, as Foundry deployments can sometimes hide under service endpoints).
- Navigate to your AI Foundry / Cognitive Services account (
- Open the Azure Portal.
Step 2: Retry Resource Group Deletion
Once the Cognitive Services account and its deployments are removed, delete the resource group again via Portal or CLI: [1]
bash
az group delete --name <resource-group-name> --yes --no-wait
Thanks.