How to restore deleted cosmos db account with azure powershell?

Bhagyashri Nivdunge 1 Reputation point Microsoft Employee
2023-02-02T03:38:33.6433333+00:00

I know how to restore deleted cosmos db account with portal but what commands can I use to restore the deleted cosmos account with azure powershell?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,359 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ShaktiSingh-MSFT 12,386 Reputation points Microsoft Employee
    2023-02-02T09:51:22.9333333+00:00

    Hi @Bhagyashri Nivdunge ,

    Thanks for posting this question in Microsoft Q&A forum.

    As I understand from the question, you want to restore Cosmos DB via Azure CLI.

    Could you please let us know the Cosmos DB API in use alongwith other configuration details?

    Through CLI, you may refer to https://learn.microsoft.com/en-us/cli/azure/cosmosdb?view=azure-cli-latest

    User's image

    Let us know if this helps in your case. If not, please let us know where you are stuck so that we may assist you.

    Thanks