Git Product home page Git Product logo

activedirectory-lab's Introduction

ActiveDirectory Lab

This repository contains resources to quickly create an Active Directory lab in Azure with terraform.

Warning: the purpose of this repo is to create a LAB environment. Do not use in production!

Contents

  • main.tf
    • the main terraform config file (don't edit unless you know what u are doing)
  • variables.tf
    • definition of all variables used in main.tf (you don't want to edit this too)
  • terraform.tfvars
    • use this file to set the variables defined in variables.tf. That's the file you want to edit :-)

Usage

The easiest way to use terraform in Azure is through azure cloud shell, since it already includes terraform and you don't have to create an extra security principal for terraform to interact with your tenant. This is a good thing, espescially since we are talking about directory security here - a secure service account is the one we never create ;-)

So open cloudshell from the azure portal and clone the repository.

git clone https://github.com/cfalta/activedirectory-lab
cd ./activedirectory-lab/terraform/

Make sure you are okay with the defaults (Azure location, VM size, admin user and password...)

code ./terraform.tfvars

And when you're ready: initialize terraform and apply - thats it :-)

terraform init
terraform validate
terraform plan
terraform apply

Note:

  • init = initialize terraform (azure provider)
  • validate = make sure there are no syntax errors in the config
  • plan = shows you what will happen if you run apply
  • apply = create the resources

If you are done playing with AD, just run the following to remove all resources.

terraform destroy

Credentials

The credentials for the default domain admin account are:

Username: adminuser

Password: P@ssw0rd123!!!

The credentials for the default local admin account are:

Username: adminuser

Password: P@ssw0rd123!

Getting an azure account

You can create a free azure subscription with 170โ‚ฌ credits for 30 days using this link:

https://azure.microsoft.com/en-us/free/

activedirectory-lab's People

Contributors

cfalta 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.