Unable to peroform Patch operation on DB Account

Ravi Teja Manchikanti 46 Reputation points
2020-06-10T14:22:04.23+00:00

Hello ,

Im trying to update Virtual network on Cosmos DB Account, though I dont see any activity on that particular Account I see below error while using Patch Rest API

There is already an operation in progress which requires exlusive lock on this service mangoservicenowdbaccount. Please retry the operation after sometime.
ActivityId: 7272845f-0f15-4c21-b5b8-4bdacf546329, Microsoft.Azure.Documents.Common/2.11.0

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

2 answers

Sort by: Most helpful
  1. Mark Brown - MSFT 2,761 Reputation points Microsoft Employee
    2020-06-10T14:35:37.82+00:00

    The Cosmos DB resource provider does not support PATCH operations. You must do a GET on the resource and then a PUT on the entire resource with your changed property value.

    Thanks.


  2. Mark Brown - MSFT 2,761 Reputation points Microsoft Employee
    2020-06-16T01:52:14.22+00:00

    Yes sorry, I should clarify. The databaseAccount resource supports patch but none of the child resources do. You can use patch to modify the vnet settings.

    Regarding your error I don't have any deeper insights other than there was something else modifying the databaseAccount resource when you issued this command. If it persists you need to contact support to investigate.

    Thanks.

    0 comments No comments