Skip to content

hisashin0728/DefenderForServersMappingToMDETag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DefenderForServersMappingToMDETag

Summary

This repository DefenderForServersMappingToMDETag provides a ARM template for writing tags as Azure subscription names for Azure Virtual Machines (VMs) that have Defender for Servers (MDE) installed. This ARM template periodically creates MDE tags using Logic Apps.

This template provides to write tag as Azure subscription name in Defender XDR for Azure VM installed Defender for Servers (MDE).
This template percreate MDE tag by Logic apps periodically

  • Tag name DefenderForServers
  • Tag name <Your Azure Subscription Name> from query result of Azure Resource Graph

For Japanese README.md is here. image

Deploy To Azure

Let's install ARM template!

Deploy to Azure

Configure the Logic apps

After deploy to Azure, you need to configure the following steps

  • You can modify tuning "Reccurence" duration for the first steps.
    • Initial parameter sets to 1 month for reccurence. You can modify this parameter if you want.
  • You should configure multiple Subscription Reader roles for system assigned identity
    • This logic app polls query to post Azure Resource Graph by system assigned managed identity
    • If you have multiple subscriptions and deploys Defender for Servers to Azure VMs on each subscriptions, the logic app requires each subscription reader role for managed identity.

image image

Check the process

You can check logicapps manually, then two tags will be set to each devices for endpoint in Defende XDR

After the tuning, let's start logic apps manually. If the configuration is succeeded, two Tags DefenderForServers and <Azure Subscription Name> will be set to each devices.

image

Notes

  • This logic apps first query to all device resources that is filtered in Defender XDR
    • onboardingStatus is Onboarded
    • healthStatus is Active
    • NOT machineTags equal DefenderForServers <-- Initially, Tag will be embedded, but secondary process ignored
    • NOT osPlatform eq Windows10 or osPlatform eq Windows11

hogehoge

  • This logics apps pickup subscription id from Resource ID information from Defender XDR
image

Some devices are NOT embbeded subscriptionId in Defender XDR, so this templates pickup resourceId image

About

This template provides to write tag as Azure subscription name for Azure VM installed Defender for Servers (MDE)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published