Tags differentitation from azure consumption API

Aayushi Solanki 41 Reputation points
2022-06-27T11:10:31.64+00:00

I'm using azure consumption API to fetch the details. From response, some of the tag values are coming as "null" or ''(blank).

But the same filter when used in azure portal gives tag values as "tags not supported", "tags not available" or "Untagged".

So, how azure portal is making those differentiation, so that whatever response I get from API, similar I can do to make the tags cost look same as portal graphical view.

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
1,857 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AnuragSingh-MSFT 18,666 Reputation points
    2022-07-06T08:28:39.517+00:00

    Hi @Aayushi Solanki

    Thank you for reaching out to Microsoft Q&A for this question.

    I was not able to clearly understand the question here, but the following information should help you in this regards (tags in Cost/Usage Management).

    In general, not all the resources support tag in Azure. Please refer to this link for details - Tag support for Azure resources
    Also, please see the following link to understand more about tags in cost and usage data - How tags are used in cost and usage data

    If the details above do not answer your question, can you please share more details about it? Refer to the following for some suggestions to include:

    1. clarify "some of the tag values are coming as "null" or ''(blank).". Do you mean that some of the resources do not have tags in the response of API? An example scenario should help clarify it.

    2. clarify "same filter when used in azure portal". How are you using the same filter in Azure Portal? A screenshot should help add more details to it.

    Please let me know if you have any questions.

    ---
    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    0 comments No comments