Post deployment configurations for ASDK

After you install the Azure Stack Development Kit (ASDK), you should make a few recommended post deployment configuration changes while signed in as AzureStack\AzureStackAdmin on the ASDK host computer.

Install Azure Stack PowerShell

Azure Stack compatible Azure PowerShell modules are required to work with Azure Stack.

PowerShell commands for Azure Stack are installed through the PowerShell Gallery. To register the PSGallery repository, open an elevated PowerShell session and run the following command:

Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted

Use API version profiles to specify Azure Stack compatible AzureRM modules. API version profiles provide a way to manage version differences between Azure and Azure Stack. An API version profile is a set of AzureRM PowerShell modules with specific API versions. The AzureRM.BootStrapper module that's available through the PowerShell Gallery provides PowerShell cmdlets that are required to work with API version profiles.

You can install the latest Azure Stack PowerShell module with or without internet connectivity to the ASDK host computer:


Before installing the required version, make sure that you uninstall any existing Azure PowerShell modules.

  • With an internet connection from the ASDK host computer: Run the following PowerShell script to install these modules on your ASDK installation:

    Get-Module -Name Azs.* -ListAvailable | Uninstall-Module -Force -Verbose
    Get-Module -Name Azure* -ListAvailable | Uninstall-Module -Force -Verbose
    # Install the AzureRM.BootStrapper module. Select Yes when prompted to install NuGet
    Install-Module -Name AzureRM.BootStrapper
    # Install and import the API Version Profile required by Azure Stack into the current PowerShell session.
    Use-AzureRmProfile -Profile 2019-03-01-hybrid -Force
    Install-Module -Name AzureStack -RequiredVersion 1.8.0

    If the installation is successful, the AzureRM and AzureStack modules are displayed in the output.

  • Without an internet connection from the ASDK host computer: In a disconnected scenario, you must first download the PowerShell modules to a machine that has internet connectivity using the following PowerShell commands:

    $Path = "<Path that is used to save the packages>"
    Save-Package `
      -ProviderName NuGet -Source -Name AzureRM -Path $Path -Force -RequiredVersion 2.3.0
    Save-Package `
      -ProviderName NuGet -Source -Name AzureStack -Path $Path -Force -RequiredVersion 1.5.0

    Next, copy the downloaded packages to the ASDK computer and register the location as the default repository and install the AzureRM and AzureStack modules from this repository:

    $SourceLocation = "<Location on the development kit that contains the PowerShell packages>"
    $RepoName = "MyNuGetSource"
    Register-PSRepository -Name $RepoName -SourceLocation $SourceLocation -InstallationPolicy Trusted
    Install-Module AzureRM -Repository $RepoName
    Install-Module AzureStack -Repository $RepoName

Download the Azure Stack tools

AzureStack-Tools is a GitHub repository that hosts PowerShell modules for managing and deploying resources to Azure Stack. To obtain these tools, clone the GitHub repository or download the AzureStack-Tools folder by running the following script:

# Change directory to the root directory.
cd \

# Enforce usage of TLSv1.2 to download the Azure Stack tools archive from GitHub
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest `
  -Uri `

# Expand the downloaded files.
Expand-Archive -Path -DestinationPath . -Force

# Change to the tools directory.
cd AzureStack-Tools-master

Validate the ASDK installation

To ensure that your ASDK deployment was successful, use the Test-AzureStack cmdlet by following these steps:

  1. Sign in as AzureStack\AzureStackAdmin on the ASDK host computer.
  2. Open PowerShell as an admin (not PowerShell ISE).
  3. Run: Enter-PSSession -ComputerName AzS-ERCS01 -ConfigurationName PrivilegedEndpoint
  4. Run: Test-AzureStack

The tests take a few minutes to complete. If the installation was successful, the output looks something like:

Test Azure Stack - Installation successful

If there was a failure, follow the troubleshooting steps to get help.

Enable multi-tenancy

For deployments using Azure AD, you need to enable multi-tenancy for your ASDK installation.


When admin or user accounts from domains other than the one used to register Azure Stack are used to log in to an Azure Stack portal, the domain name used to register Azure Stack must be appended to the portal URL. For example, if Azure Stack has been registered with and the user account logging in is, the URL to use to log in to the user portal would be: https://portal.local.azurestack.external/

Next steps

Register the ASDK with Azure