Cant we use Key Valut URI from an API to create cosmos DB Account ?

Ravi Teja Manchikanti 46 Reputation points
2020-06-11T08:10:28.313+00:00

When I invoke the api with the payload containing keyvaulturi parameter I get the status failed.

Failed to refresh the collection list. Please try again later.

Can any one help please

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

2 answers

Sort by: Most helpful
  1. Mark Brown - MSFT 2,761 Reputation points Microsoft Employee
    2020-06-11T13:46:01.937+00:00

    There is a bug in those docs that incorrectly states to use that api version.

    Change your api version to 2020-04-01 and it will work.

    Thanks for reporting the issue with the docs. Will get that corrected.


  2. Ravi Teja Manchikanti 46 Reputation points
    2020-06-11T14:18:38.193+00:00

    When I use with the new Api-version for the below payload

    {
    "kind": "GlobalDocumentDB",
    "location": "centralus",
    "tags": {
    "dept": "finance"
    },
    "properties": {
    "isVirtualNetworkFilterEnabled": true,
    "databaseAccountOfferType": "Standard",
    "ipRules": "10.0.0.0,20.0.0.0",
    "capabilities": [],
    "virtualNetworkRules": [{
    "id": "/subscriptions/<sub_id>/resourceGroups/<resource>/providers/Microsoft.Network/virtualNetworks/<network/subnets/subnettwo",
    "ignoreMissingVNetServiceEndpoint": false
    }],
    "locations": [{
    "failoverPriority": "0",
    "locationName": "centralus"
    }, {
    "failoverPriority": "1",
    "locationName": "eastus"
    }],
    "keyVaultKeyUri": "https://<name>.vault.azure.net/keys/my-cosmos-db-key/"
    }
    }

    Im getting Below Error

    "message": "Unable to parse request payload. \r\nActivityId: a3924c98-5a26-4232-9c25-bca8754b12ce, Microsoft.Azure.Documents.Common/2.11.0"