web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Tips: Alert RDP connec...
Power Automate
Unanswered

Tips: Alert RDP connection to servers by Microsoft Operations Management Suite with Microsoft Flow

(1) ShareShare
ReportReport
Posted on by 1,724

I want to share "Alert RDP connection to server" flow

For automate security task by Microsoft Operations Management Suite with Microsoft Flow.

1.png

 

 At Microsoft Flow.

1. Trigger: Request

  JSON Schema:

{
 "$schema": "http://json-schema.org/draft-04/schema#",
 "type": "object",
 "properties": {
 "alertname": {
 "type": "string"
 },
 "IncludeSearchResults": {
 "type": "boolean"
 },
 "SearchResults": {
 "type": "object",
 "properties": {
 "id": {
 "type": "string"
 },
 "__metadata": {
 "type": "object",
 "properties": {
 "top": {
 "type": "integer"
 },
 "RequestId": {
 "type": "string"
 },
 "Status": {
 "type": "string"
 },
 "NumberOfDocuments": {
 "type": "integer"
 },
 "StartTime": {
 "type": "string"
 },
 "LastUpdated": {
 "type": "string"
 },
 "ETag": {
 "type": "string"
 },
 "resultType": {
 "type": "string"
 },
 "aggregatedValueField": {
 "type": "string"
 },
 "aggregatedValueFields": {
 "type": "array",
 "items": {
 "type": "string"
 }
 },
 "aggregateGroupingFields": {
 "type": "array",
 "items": {
 "type": "string"
 }
 },
 "sum": {
 "type": "integer"
 },
 "max": {
 "type": "integer"
 },
 "total": {
 "type": "integer"
 },
 "requestTime": {
 "type": "integer"
 }
 },
 "required": [
 "top",
 "RequestId",
 "Status",
 "NumberOfDocuments",
 "StartTime",
 "LastUpdated",
 "ETag",
 "resultType",
 "aggregatedValueField",
 "aggregatedValueFields",
 "aggregateGroupingFields",
 "sum",
 "max",
 "total",
 "requestTime"
 ]
 },
 "value": {
 "type": "array",
 "items": {
 "type": "object",
 "properties": {
 "Computer": {
 "type": "string"
 },
 "IpAddress": {
 "type": "string"
 },
 "Account": {
 "type": "string"
 },
 "Count": {
 "type": "integer"
 }
 },
 "required": [
 "Computer",
 "IpAddress",
 "Account",
 "Count"
 ]
 }
 }
 },
 "required": [
 "id",
 "__metadata",
 "value"
 ]
 }
 },
 "required": [
 "alertname",
 "IncludeSearchResults",
 "SearchResults"
 ]
}

2.  Apply to each ( Select an output from previous step = SelectResults.value )

3. Action: Send an push notification ( Subject = alertname: Computer from IpAddress by Account 2.png

 

 

 

At Microsoft Operations Management Suite.

1. Create new alert rule for RDP connection.

  Search Query:

  

EventID=4624 LogonTypeName="10 - RemoteInteractive" | measure count() as Count by Computer, IpAddress, Account

2. Webhook

  Yes,

  Webhook URL = URL of Request trigger in Microsoft Flow

  Include custom JSON payload = check

  Enter your custom JSON payload

  

{
"alertname":"#alertrulename",
"IncludeSearchResults":true
}

For Testing.

1. Install Microsoft Operations Management Suite Agent to your server.

2. Connect the server by RDP app.

3. Select "Test Webhook" on Alert Setting in Microsoft Operations Management Suite.

4. Check the result of your flow.

5. Check the notification of your phone.

 

Now, I can set some alert notification to my phone.

 

Regards,

Yoshihiro Kawabata

 

 

Categories:
I have the same question (0)
  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @yoshihirok,

     

    Thanks a lot for your continuous sharing on Flow. We appreciate your contribution on the community. I will try this out later.

     

    Regards,

    Mona

  • yoshihirok Profile Picture
    1,724 on at

    Thank you too, @v-monli-msft

     

    Microsoft Flow and Microsoft Operations Management Suite are both nice for making secure our servers.

     

    Regards,

    Yoshihiro Kawabata

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 247 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 164 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 138 Super User 2026 Season 2

Last 30 days Overall leaderboard