bash/powershell comd for API level tags on Azure APIM API

pkasliwal2 1 Reputation point
2021-02-04T22:59:21.45+00:00

I want to configure API level tags for Azure APIM API.
I know how to do this from Azure portal, but want to achieve this using power shell cli.

Method/operation level tags - I know how to add those, my question is for API level tags

Came across this thread: https://social.msdn.microsoft.com/Forums/azure/en-US/bdc45583-fe33-4e5d-a1c3-0e750740ef10/update-tags-in-apis-using-azure-api-management-azurermapimanagement
but there is no solution posted here, so was wondering if there are any updates.

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

1 answer

Sort by: Most helpful
  1. JayaC-MSFT 5,531 Reputation points
    2021-02-13T13:11:33.353+00:00

    Hello @pkasliwal2 ,
    You may try https://learn.microsoft.com/en-us/rest/api/apimanagement/2019-12-01/tag/assigntooperation
    You can use Httpclient to make an API call to the endpoints mentioned in the document. You may need to pass an authorization token for validation , for that please refer to this
    If may try with ARM template , https://learn.microsoft.com/en-us/azure/templates/microsoft.apimanagement/service/apis/tags - but I believe you might have to pass empty properties to make it work. Please refer to : https://learn.microsoft.com/en-us/answers/questions/212164/index.html

    Please let me know if this helps!

    0 comments No comments

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.