Delete resource

Marigenys Galan 0 Reputation points
2026-09-23T15:32:30.6933333+00:00

Could not delete account since it contains 1 managed compute deployment(s). Please delete deployments first and try again. (Código: CannotDeleteAccountWithManagedComput

Microsoft Foundry
Microsoft Foundry

A unified Azure platform for creating and managing AI models, agents, and applications with built‑in enterprise security, monitoring, and governance


2 answers

Sort by: Most helpful
  1. Ganesh Gurram 7,570 Reputation points Microsoft External Staff Moderator
    2026-09-29T10:51:45.9333333+00:00

    Hello @Marigenys Galan

    The error CannotDeleteAccountWithManagedComput indicates that the Microsoft Foundry account still has a Managed Compute deployment associated with it. The account cannot be deleted until that deployment is removed.

    Please follow these steps:

    1. Open your Microsoft Foundry resource.
    2. Navigate to Deployments and locate the Managed compute deployments section.
    3. Select the remaining Managed Compute deployment and choose Delete.
    4. Once the deployment has been successfully deleted, retry deleting the Foundry account.

    Microsoft documentation confirms that Managed Compute deployments can be deleted from the deployments list in the Foundry portal. Deleting the deployment releases its accelerator allocation and stops its billing.

    If you don't see any Managed Compute deployments but continue receiving the same error, please let us know so we can investigate the remaining deployment dependency further.

    Reference: https://learn.microsoft.com/en-us/azure/foundry/how-to/deploy-models-managed?tabs=openai-entra&pivots=ai-foundry-portal

    Hope this helps. If the answer was helpful, please consider selecting Accept Answer, as this can help other community members facing the same issue.

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-09-23T15:32:42.54+00:00

    The account cannot be deleted until the managed compute deployment is deleted first.

    Azure CLI command:

    az cognitiveservices account managed-compute-deployment delete \
      --name <account-name> \
      --resource-group <resource-group> \
      --deployment-name <deployment-name>
    

    Required parameters:

    • --name / -n: Cognitive Services account name
    • --resource-group / -g: resource group name
    • --deployment-name: managed compute deployment name

    In SDKs, the same delete operation is available by passing:

    • resourceGroupName
    • accountName
    • deploymentName

    Examples from the documented APIs:

    • Java: delete(String resourceGroupName, String accountName, String deploymentName)
    • JavaScript: delete(resourceGroupName, accountName, deploymentName, options?)

    After the managed compute deployment is removed, retry deleting the account.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.