Mundy

IT Knowledge Base

User Tools

Site Tools


setting_up_my_azure_test_environment

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

setting_up_my_azure_test_environment [2018/04/09 09:56] (current)
Line 1: Line 1:
 +====== Setting up my Azure test environment ======
  
 +===== Prep =====
 +
 +  - Download the Azure PowerShell cmdlets, available through the [[http://​www.microsoft.com/​web/​downloads/​platform.aspx|Web Platform Installer]]
 +  - Set up a connection to Azure
 +    - In Powershell: Get-AzurePublishSettingsFile
 +    - Import-AzurePublishSettingsFile -PublishSettingsFile C:​\Mundy\My-Azure-Creds.publishsettings
 +  - Created Lab1
 +
 +===== Create DC1 =====
 +
 +  - Created dc1 in Azure
 +  - Set it to static IP address:<​code powershell>​
 +Login-AzureRMAccount
 +Get-AzureSubscription
 +Select-AzureRmSubscription "​Visual Studio Enterprise – MPN"
 +PS Microsoft.PowerShell.Core\FileSystem::​\\Mac\Home\Desktop>​ Get-AzureRmNetworkInterface | ft name,​resourcegroupname
 +
 +Name ResourceGroupName
 +---- -----------------
 +dc1  lab13931032565000
 +dc1  MundyTestLab1-dc1-036329
 +
 +
 +PS> $nic=Get-AzureRmNetworkInterface -Name dc1 -ResourceGroupName lab13931032565000
 +PS> $nic.IpConfigurations[0].PrivateIpAllocationMethod = "​Static"​
 +PS> $nic.IpConfigurations[0].PrivateIpAddress = "​10.0.0.4"​
 +PS> Set-AzureRmNetworkInterface -NetworkInterface $nic
 +</​code>​
 +  - Logged in to dc1 via RDP
 +  - sconfig
 +    - Set the timezone
 +  - Set up the domain<​code powershell>​
 +Install-WindowsFeature AD-Domain-Services -IncludeManagementTools
 +Install-ADDSForest -DomainName ad.mundy.co</​code>​
setting_up_my_azure_test_environment.txt · Last modified: 2018/04/09 09:56 (external edit)