Giter VIP home page Giter VIP logo

defenderforserversmappingtomdetag's Introduction

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

defenderforserversmappingtomdetag's People

Contributors

hisashin0728 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.