Skip to content

timhaintz/aate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 

Repository files navigation

aate - Azure Automated Test Environment

INTRODUCTION

This Open Source Project is designed to create an automatically built Active Directory domain and Certificate Authority in Azure Resource Manager. This is intended to be used to create a green fields environment. Once testing is completed, Remove-AzureRMResourceGroup should be used to delete the entire environment and start fresh.

Please note, the default username and password are weak. They can be changed if required.

PRE EXECUTION

  1. Install AzureRM modules
  2. Create a Free Azure Account
  3. Once account is setup, open a PowerShell window as Administrator
  4. If you want to pre-login, run Login-AzureRMAccount and follow the login prompts.
  5. If you want a domain other than timhaintz.com, change the $dscDomainName from timhaintz.com.
    1. Please don't use a publicly registered domain. DNS can get confused.
    2. Please only use a .com extension. .com.au or .net for example are not supported

EXECUTION

  1. Clone the repository from git Git Clone
  2. From the administrative PowerShell window, change to a local directory you want to save the repository to and then clone the remote repository.
git clone https://github.com/timhaintz/aate.git
  1. Change Directory into the newly created repository and then Change Directory again into the AzureRM directory.
  2. Run the script
    1. .\1-Create-aate.ps1
  3. Username and password if you have to login to dc1 before DSC has applied:
    1. UserName: localhost\azureadmin
    2. Password: Azure12345678
  4. Browse the web interface:
    1. Portal
      1. All resources
      2. Choose the correct subscription
  5. You can observe the environment being built. All resources

POST EXECUTION

  1. Username and password to login to the server once DSC has applied:
    1. UserName: DomainNameChosen\azureadmin
      1. Default is: timhaintz\azureadmin
    2. Password: Azure12345678

REMOVE ENVIRONMENT

  1. Remove-AzureRMResourceGroup -Name $resourceGroupName should be used to delete the entire environment and start fresh.
    1. Deletion takes about 5 - 10 minutes
  2. Login to Portal
    1. Resource groups
    2. TestRG01
  3. Watch the Resource Group delete the objects

URLs used to build initial environment