How to Update Cosmos DB Properties Using Azure Rest API On Postman

Supercharge your REST API calls with Postman

Arwin Lashawn
ILLUMINATION

--

Photo by Mika Baumeister on Unsplash

Have you ever needed to update a property (or any action really) of your Azure resource only to find out it is not supported via Azure CLI or PowerShell?

A good example of this is that today, Cosmos DB users are not able to update the “disableLocalAuth” property via Azure CLI nor PowerShell under Cosmos DB. This property is important for reinforcing security. More on it here.

A snippet of my Cosmos DB resource JSON showing the “disableLocalAuth” property:

        "enableClientTelemetry": false,
"disableLocalAuth": false,
"enablePartitionMerge": false,

Further, since Postman is not the only way to call Azure REST API, why are we learning how to use it? It has cool features which enable you to save your APIs, and even your environment variables, with the option to mask them if they are sensitive.

Conveniently enough, you can save all of those under a Workspace” which is linked under your Postman account. Postman enables signing up via Google and SSO. What’s not to like about it?

Now, how do we update the “disableLocalAuth” to true using Azure REST API via Postman?

--

--

Arwin Lashawn
ILLUMINATION

Data & AI @ MSFT Azure | Level 2 Seller @ FVRR | Learn to write, write to learn | Enjoy my writing? Feel free to follow : )