user1744369
user1744369

Reputation: 1

Azure REST API - HTTP PUT request throws error "InvalidResourceGroup","message:"The resource group definition is invalid."

I am accessing Azure REST API using our HPOO's HTTP Client GET/POST/DELETE operations.

However, the http PUT requests containing Request BODY are throwing below error -- It works just fine with Postman app.

"InvalidResourceGroup","message":"The resource group definition is invalid."

We tried with API for creating a resource group

URL : https://management.azure.com/subscriptions/62a15758-4127-4b04-ac11-eda0baa41ee5/resourcegroups/RG334

here RG334 is the resource group I'm trying to Create.

2 Headers :

Content-Type : application/json
Authorization : Bearer token value

Query Parameter and value : api-version, 2015-01-01

Body :

{
  "location": "West US",
  "tags": {
    "tagname1": "value"
  }
}

Upvotes: 0

Views: 2103

Answers (1)

Mohan
Mohan

Reputation: 51

when the request body is empty or invalid, Azure REST API throws this error, Please verify the payload which you are sending.

Upvotes: 0

Related Questions