You may have seen some of my other posts about Server monitoring using Azure Log Analytics and pinning the output to a dashboard. If not you can see them here https://pixelrobots.co.uk/2019/06/monitor-your-servers-available-memory-using-azure-log-analytics/ and here https://pixelrobots.co.uk/2019/06/monitor-your-servers-cpu-usage-using-azure-log-analytics/ . If you are like me, you may want this monitoring dashboard on a big screen. Well, that’s easy to do, but by default, the Azure Dashboard does not auto-refresh. How annoying is that? Luckily I have a solution.
I am going to assume you already have your dashboard ready to go. If not follow the above links and create one. Awesome, now you can use an already created user, or you can create a new user, who only has access to the Dashboard. To do this you will need Azure CLI. Link to Azure CLI install.
Now open up either a PowerShell window or your favourite WSL bash prompt. I use Pengwin https://www.pengwin.dev/ .
Login to your Azure subscription by using az login. Then type the following. Just make sure you change the details to match your setup.
az ad user create --display-name Azure.monitor --password AzureM0nit0r! --user-principal-name email@example.com
Now login to the Azure Portal and navigate to the dashboards resource group.
In here you may have a list of multiple dashboards. If you do, hover over each one or expand the name column till you find the one you want for your monitoring screen. Once you have found the one you want, click it.
In here you will need to click on Access control (IAM). It’s on the left.
In this blade click on Add. It’s at the top, then click Add role assignment. In the blade that has popped up, under Role select Monitoring Reader. Leave the next box as it is. In the Select box enter the display name of the user you have just created or one you already have.
Now click on the User in the box below and click Save.
Once the role has been added you are ready to use the user on your monitoring screen. But wait there is a small fact about auto-refresh.
The auto-refreshing dashboard
So, log in to Azure using the user you have just given access to the dashboard. Then go to the dashboard. Link on the left under Home.
You may need to click the dashboard selector to select your dashboard. But once you do you should see your dashboard.
Awesome, you have access to the dashboard.
Install this addon by clicking on Add to Chrome.
Now that this extension has been installed. You should see a new icon next to the address bar in your browser. Navigate back to your dashboard and then click it.
In this new box enter the refresh interval in seconds. I use 5 minutes which is 300 seconds. Once enter navigate away from the box by clicking on the dashboard.
You will now see the icon has gone purple. After 300 seconds the dashboard will refresh.
To make the dashboard fill the whole screen click on the Full-screen button at the top of the dashboard.
You now have a full-screen dashboard working on your monitoring screen with a dedicated user that is using RBAC so it has access only to your dashboard.
I hope you found this post helpful. If you have any questions please reach out in the comments below or using social media.
Thanks for reading.