August 24, 2017

Azure Stack - Initial Configuration - Part 1

Now that you've gone and gotten yourself some Azure Stack up and going (by following my previous entries), you are ready to start with initial configuration!

Open IE to https://adminportal.local.azurestack.external If you did everything right, it will take you to Azure AD for authentication and you'll then be presented with a lovely admin dashboard:

Open another IE tab to https://portal.local.azurestack.external. Same drill, different dashboard:

Now that you've confirmed things are working, it is time to register Azure Stack with Azure. This involves a number of steps that we'll cover here:

Complete guidance can be found here.

  1. Install-Module -Name AzureRM.Bootstrapper
  2. Use-AzureRmProfile -Profile 2017-03-09-profile -Force
  3. Install-Module -Name AzureStack -RequiredVersion 1.2.10

Next up, you'll want to grab some helper scripts.

Complete guidance can be found here.

These helper scripts make management much easier, as well as provide support for registration of Azure Stack to Azure.

  1. Install GIT for Windows and accept all of the defaults.
  2. In a NEW PowerShell window (run as Administrator), leaving the other one open, do this:
  3. cd c:\
  4. git clone -recursive
  5. Close that PS window and go over to the other PS window and cd c:\AzureStack-Tools:

Log in to Azure Stack via PowerShell. Full documentation is here.

  1. Set-ExecutionPolicy RemoteSigned
  2. Import-Module .\Connect\AzureStack.Connect.psm1
  3. Add-AzureRmEndpoint -Name "AzureStackAdmin" -ArmEndpoint "https://adminmanagement.local.azurestack.external"

  1. Set-AzureRmEnvironment -Name "AzureStackAdmin" -GraphAudience ""

  1. $TenantID = Get-AzsDirectoryTenantId -AADTenantName "<myDirectoryTenantName>" -EnvironmentName "AzureStackAdmin"

  1. Login-AzureRmAccount -EnvironmentName "AzureStackAdmin" -TenantId $TenantID

Registration Time! Note, next time you open a PS window and need to do some PSing, you don't have to go through all of that. Just follow these steps.

The full documentation for these steps can be found here.

  1. cd .\Registration
  2. RegisterWithAzure.ps1 -azureSubscriptionId yoursubscriptionid -azureDirectoryTenantName -azureAccountId

This takes a while and creates an RG in your Azure subscription with a registration object in it. This is in addition to all the AAD stuff that was created during setup.

Once that is done, you're ready to add base images and keep on configuring! Next time...