Please help me restore a deleted deployment

Roshan Govind 25 Reputation points
2025-11-26T16:02:09.8933333+00:00

I mistakenly deleted some deployments that were in a failed state, not knowing that these failed deployments basically deleted everything in my dev environment. I have lost all our data extraction pipelines, linked services, almost everything.

From what i can tell, we do not have any backup's and there doesn't seem to be a recycle bin to restore these items that were deleted.

I would appreciate any help or assistance, anybody could provide me with. This is the first time i have experienced this issue and do not know how to resolve this.

User's image

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
0 comments No comments
{count} vote

Answer accepted by question author
  1. VRISHABHANATH PATIL 1,725 Reputation points Microsoft External Staff Moderator
    2025-12-01T03:25:35.11+00:00

    Hi @Roshan Govind

    Thank you for reaching out to Microsoft QA. We truly appreciate your concern. To assist you further, we kindly request you to share the required details via a private message. This will help us investigate the issue more effectively.


1 additional answer

Sort by: Most helpful
  1. Jerald Felix 9,755 Reputation points
    2025-11-28T10:22:19.3433333+00:00

    Hello Roshan Govind,

    Thanks for raising this question in Q&A forum.

    I understand the urgency of accidentally deleting a deployment. The steps to restore it depend heavily on what specific type of deployment was deleted. Here are the solutions for the three most common scenarios:

    1. Azure OpenAI Model Deployment (Most Likely Scenario)

    If you deleted a model deployment (e.g., gpt-35-turbo or gpt-4) inside the Azure AI Foundry (formerly AI Studio) or Azure Portal:

    • The Good News: Standard model deployments are "stateless." They do not store your data. Deleting the deployment simply deletes the endpoint that your code talks to.
    • The Fix: You do not need to "restore" it. You simply need to recreate it.
      1. Go to Azure AI Foundry > Deployments.
      2. Click Create.
      3. Select the same model and version you used before.
      4. Crucial Step: Give it the exact same name as the deleted deployment.
      5. Once created, your applications using that deployment name will start working again immediately.

    2. Azure OpenAI Resource (The entire service)

    If you deleted the entire Azure OpenAI resource from the Azure Portal:

    • Azure Cognitive Services resources have a "Soft Delete" feature enabled by default (48-hour retention).
    • The Fix:
      1. Go to the Azure Portal.
      2. Search for "Azure OpenAI".
      3. In the top menu bar, click on "Manage Deleted Resources".
      4. Select your deleted resource and click Recover.

    3. Azure App Service / Web App Deployment

    If you deleted a deployment slot or an app in Azure App Service:

    • The Fix: Check if you have Backups configured in the "Backups" blade of the App Service. If not, you will need to redeploy your code package (CI/CD pipeline or Visual Studio publish) to the service. There is no "Undo" button for App Service deletions without a configured backup.

    4. Azure Kubernetes (AKS) Deployment

    If you ran kubectl delete deployment ...:

    • The Fix: You must re-apply your YAML configuration file (kubectl apply -f deployment.yaml). There is no "undelete" command in Kubernetes; you simply declare the desired state again.

    If you can clarify exactly which service (OpenAI, App Service, etc.) you are using, I can give you a more specific walkthrough.

    If helps, approve the answer.

    Best Regards,

    Jerald Felix


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.