Azure Montor - Runbook - RDS Server

Lutz Rahe 61 Reputation points
2022-04-05T01:22:20.673+00:00

Hi Master of Powershell

Just a question (and maybe a script)?

Is it possible to monitor RDS session host server for CPU load (in Azure) and do a special action when the CPU load is too high (disable RDS login)?
In Azure I can monitor these RDS session host server and as an action I execute a Azure Runbook
https://learn.microsoft.com/en-us/azure/automation/automation-create-alert-triggered-runbook
But what I need....or next step is:
This runbook should disable the RDS login feature of this special session host server.

Reason: in MS RDS I can load balance User load, but not CPU. And I need a solution to do also CPU load balancing. I want to prevent that new user will be directed to RDS server with a high CPU load also when they have the least user load.

How could I do this?
Without additional hardware or software (no Citirx)

Any idea

Best,
Lutz

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,938 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,162 questions
{count} votes

1 answer

Sort by: Most helpful
  1. tbgangav-MSFT 10,411 Reputation points
    2022-04-26T08:41:53.983+00:00

    Hi @Lutz Rahe ,

    On the question "I cannot choose Hybrid Group Account", did you mean that you are not able to see your Hybrid Worker Group while trying to start the runbook as explained here?

    On the question "How can I create the script or trigger the service to run a script on the VM?", You may save the runbook in the Azure Automation account itself and start the runbook as explained here to run it in the VM environment that's part of the Hybrid Worker Group.

    On the question, "How can I add this Hybrid as the target into Azure Monitor", as explained here you may forward Azure Automation diagnostic logs to Azure Monitor.

    Let me know if you have further queries with regards to it.

    0 comments No comments