How to restore deleted cosmos db account with azure powershell?

Bhagyashri Nivdunge 1 Reputation point Microsoft Employee

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

    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

    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.