Dave Rendón Microsoft Azure MVP, embracing and fostering tech intensity to benefit society and thrive in a digital world.

Creating custom dashboards in the Azure portal

2 min read

creating custom dashboards azure portal - wikiazure

In this article we will review how to create custom dashboards in the Azure Portal using markdown tiles and CSS common styles. Since launching dashboards a few months ago, there has been a a rapid increase in dashboard customizations. This strong usage trend shows that you prefer customizing dashboards over blades. To support that trend, Microsoft  will remove the ability to customize blades and dedicate  efforts to enhance dashboard functionality.

You can create multiple dashboards and share them with others who have access to your Azure subscriptions. This articles goes through the basics of creating/editing, and publishing custom dashboards in Azure Portal, this feature is really useful for customers who wants to monitor specific resources in their App Environment. Example of the custom dashboard that we are going to create:

azuredashboard-kemp-wikiazure

Video: Creating custom dashboards in the Azure portal


Create custom dashboard in Azure Portal Step-by-Step:

  1. Go to your Azure Portal: portal.azure.com
  2. To create a dashboard, select the “New dashboard” button next to the current dashboard’s name.new-dashboard-wikiazure
  3. When you create a new dashboard, you need give it a name and you have some options to customize your dashboard, such as: add your current resources, add objects from Marketplace, add Log Analytics, Help + Support tiles, Service Health or Markdown Tiles. In this case we are going to Click Markdown tiles.new-dashboard2-wikiazure
  4. Add tiles by dragging and dropping them onto the dashboard surface wherever you want, select “Markdown” and drag/drop the object into the dashboard, when you add a markdown tile you will be able to provide a Tittle, Subtitle and customize the content of your tile:drag-drop-markdown-azure-portal-wikiazureadd-markdown-azure-portal-wikiazure
  5. This Markdown tile lets you put custom content on your dashboard. It supports plain text, __Markdown__, and even limited HTML like images, for this purpose we will add custom HTML + CSS styling to get the custom tile like the image below:custom-tile-azure-portal-wikiazure
  6. Add a custom content to your tile, feel free to use the example below:
    <div style="width:325px;height: 154px!important;margin: 0px 70px 10px 0px;height: auto;overflow: hidden;float: left;cursor: pointer;">
     <div style="width: 325px;
     height: auto;
     overflow: hidden;
     background-color: #000;
     padding: 5px 0;"><span style="width: 280px;
     height: auto;
     float: left;
     background-color: #000;
     margin-left: 5px;
     font-size: 17px;font-family:Segoe UI;">Loadmaster for MS Azure</span></div> <img style="width: 90px;
     height: auto;
     max-height:113px;
     overflow: hidden;
     float: left;" src="https://kempbundles.blob.core.windows.net/images/azure.jpg"> <div class="boxContent" style="width: 235px;
     height: 113px;
     overflow: hidden;
     background-color: #00bcf2;
     float: left;
     padding: 3px 20px 0px 25px;
     text-align: left;"><div class="boxTime" style="width: 100%;display:none;
     height: auto;
     min-height: 35px;
     overflow: hidden;
     font-size: 25px;
     background-position: left center;
     background-repeat: no-repeat;
     padding-left: 50px;
     float: left;"></div> <div  style="width: 0%;
     height: auto;
     overflow: hidden;
     padding-top: 10px;
     color: #000;
     font-size: 10px;
     text-decoration: line-through;
     font-weight: normal;
     float: left;"></div><div  style="width: 100%;
     height: auto;
     overflow: hidden;
     padding-top: 5px;
     text-align: left;
     font-size: 13px;
     float: left;
     font-family: arial;
     line-height: 17px;">Virtual LoadMaster™ (VLM) is easily managed and deployed in Microsoft Azure</div><div class="clear" style="clear: both;"></div><a href="http://kempbundles.azurewebsites.net/bundles/azure/index.html"  target="_blank"><div style="width: 94%;
     height: auto;
     min-height: 20px;
     overflow: hidden;
     font-size: 17px;
     background-color: #89c402;
     background-image: url(https://kempbundles.azurewebsites.net/images/arrow-right.png) no-repeat;
     background-position: 125px center;
     background-repeat: no-repeat;
     background-size: 20px;
     font-weight: normal;
     padding: 2px 0 2px 6%;
     float: left;
     margin-top: 4px;
     color: #fff;"> Get started<img style="background:transparent;width:20px;float:right;margin:3px;padding-right:10px" src="https://kempbundles.azurewebsites.net/images/arrow-right.png"></div></a> </div> </div>
  7. Note that you can’t do things like inject <script> tags or use certain styling element of CSS that might interfere with the portal.
  8. When you finish your own customized tile, click on “Update”:update-markdown-wikiazure
  9. Now you are able to review your markdown tile in your custom dashboards in the Azure portal

You can also add custom resources to monitor, add resources based on tags previously configured:

create custom dashboards in the azure portal

Once you are finished customizing a dashboard, simply select the Done customizing to exit customize mode or right-click and select Done customizing from the context menu.

**Note: if you want to try the entire code, please leave a comment and I´ll send you the entire style

Publish a dashboard in Azure Portal and manage access control

When you create a dashboard, it is private by default, which means you are the only person who can see it. To make it visible to others, use the Share button that appears alongside the other dashboard commands.

Before assigning access, you must publish the dashboard. By default, the dashboard will be published to a resource group named dashboards. You can also specify the Subscription Name and Resource Group associated where you want to share your dashboard:

share-custom-dashboard-azure-portal-wikiazure

Dave Rendón Microsoft Azure MVP, embracing and fostering tech intensity to benefit society and thrive in a digital world.

Leave a Reply

Your email address will not be published. Required fields are marked *