Unable to add API tag to Product in APIM instance using ARM template

Venkata Sunil Sornapudi 1 Reputation point
2020-12-28T14:56:41.783+00:00

When trying to assign an API tag to Product using ARM template, it throws an error 'Status Message: Invalid payload format. Contract should have 'properties' specified. (Code:ValidationError)'

  {
    "name": "apim-test/api-product-test/tag-test",
    "type": "Microsoft.ApiManagement/service/products/tags",
    "apiVersion": "2019-01-01"
  }

Product and API tag are already created. How to create an standalone product level tag.

Azure Portal does not support assigning Product to a API tag.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,111 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JayaC-MSFT 5,531 Reputation points
    2020-12-29T11:40:08.973+00:00

    Hello @Venkata Sunil Sornapudi , could you try this management API url https://learn.microsoft.com/en-us/rest/api/apimanagement/2019-12-01/producttag/assigntoproduct and check if this works for you?
    Also, is the product published?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.