Invoking Rest API using Powershell - CosmosDb
问题 I was trying to deploy cosmos database using Cosmos DB REST Api. I'm using a function to build the authorisation header and I got the script from https://gallery.technet.microsoft.com/scriptcenter/How-to-query-Azure-Cosmos-0a9aa517 link. It works perfectly fine for GET & POST however when I tried to execute a PUT command I'm always getting below error. Invoke-RestMethod : The remote server returned an error: (401) Unauthorized. Im trying to update the offer for Cosmos collection but it always