Giter VIP home page Giter VIP logo

azure-vm-diagnostics-terraform's Introduction

azure-vm-diagnostics-terraform

Create Azure Diagnostics VM configuration in Terraform

This is a project to allow Azure VM diagnostics to be configured via Terraform. By default, it will configure event flows to an Eventhub sink for all security events. This is meant to support SIEM ingest workflows from Azure VMs.

Creation of the Event Hub via configuration this hasn't been tested. Configuring an existing Event Hub works.

How to use this project

You will need to have an active Azure subscription in order to use Event Hubs. In addition, the diagnostics configuration is only applicable to (Windows) virtual machines. In addition to copying/cloning the repo, you must take these steps:

  • Create an Event Hub you can access (or use an existing one). A Standard SKU is recommended. You will need administrator access to configure the event hub, but you can use pre-configured authorization rules if you have appropriate key(s).
  • You will need to initialize Terraform in the working directory for your project. You can run this from the Azure Shell if you have access (https://shell.azure.com).
  • You will need at least 'contributor' access to the target VM to add and remove VMExtensions. This project was tested with 'administrator' access.
  • Recommended: Use Azure Resource Explorer (https://resources.azure.com) to inspect the configuration of the target VM. Make sure that the extension shows "provisioningState": "Succeeded"

Limitations

This configuration is only enabled for WADCFG (Windows). LADCFG (Linux) is somewhat simpler and could follow.

Currently, it is required to modify the WADCFG settings 'heredoc' section in order to change the logging payload.

The integration will fail if IaaSDiagnostics is currently deployed on the target VM. Use the Azure CLI or the portal to remove the IaaSDiagnostics extension

The existing diagnostics configuration will be wiped by deleting and configuring the extension via this method.

Notice: Any change to the diagnostics configuration from the Azure portal will wipe the automated configuration and it will be necessary to reapply the desired changes

azure-vm-diagnostics-terraform's People

Stargazers

 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.