, , ,

Connect Windows Server to Azure Monitor

2–4 minutes
9 comments on Connect Windows Server to Azure Monitor
Windows Admin Center Azure Monitor Setup

As mentioned in blogs posts before, Windows Admin Center allows admins to extend their on-prem environments with hybrid Azure services. The latest addition is the integration of Azure Monitor in Windows Admin Center. This allows you to connect your Windows Server to Azure Monitor. Azure Monitor collects events and performance counters from Windows Server to run analytics and reporting in Azure and take action when a particular condition is detected. This can then be a notification (SMS, email, push notification) and/or a direct action using Azure Logic Apps, Azure Functions, Azure Automation Runbooks, webhooks or integration into ITSM tools.

Setup monitoring and alerts for Windows Server to Azure Monitor with Windows Admin Center

Windows Admin Center Azure Monitor Setup
Windows Admin Center Azure Monitor Setup

Setting up the Azure Monitor connection in Windows Admin Center is simple. Select the server you want to connect to Azure Monitor. Go to Settings and then Monitoring Alerts.

Connect Windows Server to Azure Monitor
Connect Windows Server to Azure Monitor

Here you will be able to configure the server with the right Azure subscription, resource group and log analytics workspace.

Windows Admin Center Azure Monitor Setup done
Windows Admin Center Azure Monitor Setup done

After the server is connected to the Azure Log Analytics workspace, the management of alerts rules is done in the Azure portal.

Azure Monitor New Alert Rule
Azure Monitor New Alert Rule

First, you will need to create a New alert rule.

Azure Monitor Configure signal logic
Azure Monitor Configure signal logic

You can choose a signal logic. In our case, we want to monitor the free disk space on the server.

Azure Monitor Configure signal logic setup
Azure Monitor Configure signal logic setup

The alert logic can now be configured with the condition you want to trigger the action. In this example we choose to trigger the action if there is less than 10% diskspace available.

Configure add action group
Configure add action group

The last thing we need to do is to add and configure the action group. This can be a notification in the form of an Email, SMS, Push notification or voice message or you can trigger an Azure Function, Logic App, Webhook or an Automation Runbook.

I hope this gives you a quick overview, how you can setup Azure Monitor in Windows Admin Center, and how you can set up alerts and actions using Azure Monitor.

Configure Azure Hybrid Services in Windows Admin Center Video Series

I have created a short video series which shows how to set up the Azure Hybrid services directly from Windows Admin Center. You can start with the intro here and then follow the different videos, and check out our overview blog about Configure Azure Hybrid Services in Windows Admin Center.

YouTube video (YouTube video)

Besides, you can also have a look at my other blog post about how to set up Azure hybrid cloud services.

You can download Windows Admin Center here. If you have any questions, feel free to leave a comment.

How to buy Azure Stack HCI Solutions

WAC is also part of the Azure Stack HCI solutions, check out my blog about it.

9 responses

  1. Mohammed Rafi Avatar

    Informative to manage azure is any solution to
    Manage mobile security for AD office 365 user to local premise

  2. Martin Avatar
    Martin

    Great solution, thanks. When I go through this steps, it works until the setup. I can choose my subscriptions and workspace and click on set up. Then I get these errors:
    1. Azure monitoring has encountered error. Connecting to remote server failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic..
    2. Azure monitoring has encountered error. Keyset does not exist

    When I try I get error 1 and if I try again I get error 2. Can you help? There’s not that troubleshooting documentation

    1. Thomas Maurer Avatar

      What is the Server operating system version you are using?

  3. Martin Avatar
    Martin

    I’m using Windows Server 2016. I tried to set it up for 2 other VMs, now I always get the access denied error

    1. Thomas Maurer Avatar

      Interesting, I have tried it with Windows Server 2019. Does managing your servers with WAC work, and the problem is just with Azure Monitor? or is it a problem with all WAC management extensions?

  4. Martin Avatar
    Martin

    I was able to solve it. Although I’m admin on the WAC Gatewayserver, I had to force starting Chrome as an Administrator (using right-click). Then I started the wac console, set it up again and it work immediately.

  5. Vladimir Knobel Avatar
    Vladimir Knobel

    I’m using WAC with an VPS instance of Windows Server 2019, the settings for Azure Monitor don’t seem to be anymore under “Settings and then Monitoring Alerts” but on an own main menu item.
    The problem I’m facing is that it’s never ending the setup… Is there a way to understand why that’s happening? Any logs or something to give me a hint?

    1. Thomas Maurer Avatar

      Interesting, I will need to check if the same thing happens to me. Did you check if your machine is up do date?

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.