question

LutzRahe-8474 avatar image
0 Votes"
LutzRahe-8474 asked tbgangav-MSFT commented

Azure Montor - Runbook - RDS Server

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://docs.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

remote-desktop-servicesazure-monitorazure-automation
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @LutzRahe-8474,

To answer your question on "runbook should disable the RDS login feature of this special session host server", if there is a PowerShell cmdlet or REST API to disable the RDS login and if the server is non-Azure server then you may follow first one out of the 3 approaches that's explained in this question i.e., Hybrid runbook worker approach i.e., Runbooks in Azure Automation might not have access to resources in other clouds or in your on-premises environment because they run on the Azure cloud platform. You can use the Hybrid Runbook Worker feature of Azure Automation to run runbooks directly on the machine that's hosting the role and against resources in the environment to manage those local resources. Runbooks are stored and managed in Azure Automation and then delivered to one or more assigned machines.

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


0 Votes 0 ·

Thank you for the tipp

But now Im confused :-)
I can create the Hybrid Group and I can see, that this service is installed on my VMs

But what is the next step?When I ceate a runbook......I cannot choose Hybrid Group Account. How can I create the script or trigger the service to run a scfript on the VM?
How can I add this Hybrid as the target into Azure Monitor :-)
(I can see its still in preview)

Best,
Lutz

0 Votes 0 ·

Hi @LutzRahe-8474,

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 Votes 0 ·

Hi @LutzRahe-8474,

Did you get chance to check my recent response? Let me know if you have any further queries with regards to it.

0 Votes 0 ·

0 Answers