Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
72 lines (56 sloc) 2.65 KB
type title excerpt tags date
post
Tip 18 - Use Tags to quickly organize Azure Resources
Learn how to take advantage of tags to organize your Azure resources
azure
windows
portal
cloud
developers
tipsandtricks
2017-09-19 10:00:00 -0700

::: tip 💡 Learn more : Azure Resource Manager.

📺 Watch the video : How to use tags to quickly organize Azure Resources. :::

Use Tags to quickly organize Azure Resources

Head over to the Azure Portal and select service. In my example, I'm going to select a Web App that I want to tag as a production app. Select the Tags menu and provide a Name and Value as shown below.

Remember this! Tags are user-defined key/value pairs which can be placed directly on a resource or a resource group.

I selected "Environment" and gave it the value of "Production". I then clicked "Save". I could also do this for other Production resources and even tag the appropriate ones with "Dev".

I can now take advantage of this by going to More Services and typing Tags and click on the Environment: Production as shown below.

  1. Results from searching "Tags"
  2. Our Production Environment we just setup
  3. List all the Web Apps with the Production Environment Tag
  4. Pin the Blade to our Azure Portal Main Page

If you pin the blade (by pressing the pin in step 4.), then you'll see the following on your Azure Portal dashboard

You can even interact with Tags using Azure CLI 2.0. For example, I can type az tag list -o json to list all the tags associated with an account.

michael@Azure:~$ az tag list
[
  {
    "count": {
      "type": "Total",
      "value": 2
    },
    "id": "/subscriptions/c0e5fb0f-7461-4b04-9720-63fe407b1bdb/tagNames/Environment",
    "tagName": "Environment",
    "values": [
      {
        "count": {
          "type": "Total",
          "value": 1
        },
        "id": "/subscriptions/c0e5fb0f-7461-4b04-9720-63fe407b1bdb/tagNames/Environment/tagValues/Dev",
        "tagValue": "Dev"
      },
      {
        "count": {
          "type": "Total",
          "value": 1
        },
        "id": "/subscriptions/c0e5fb0f-7461-4b04-9720-63fe407b1bdb/tagNames/Environment/tagValues/Production",
        "tagValue": "Production"
      }
    ]
  }
]
You can’t perform that action at this time.