Connect to Azure Stack

To manage resources, you must connect to the Azure Stack Development Kit. This topic details the steps required to connect to the development kit. You can use either of the following connection options:

  • Remote Desktop: lets a single concurrent user quickly connect from the development kit.
  • Virtual Private Network (VPN): lets multiple concurrent users connect from clients outside of the Azure Stack infrastructure (requires configuration).

Connect with Remote Desktop

With a Remote Desktop connection, a single concurrent user can work with the portal to manage resources.

  1. Open a Remote Desktop Connection and connect to the development kit. Enter AzureStack\AzureStackAdmin as the username, and the administrative password that you provided during Azure Stack setup.

  2. From the development kit computer, open Server Manager, click Local Server, turn off Internet Explorer Enhanced Security, and then close Server Manager.

  3. To open the user portal, navigate to (https://portal.local.azurestack.external/) and sign in using user credentials. To open the administrator portal, navigate to (https://adminportal.local.azurestack.external/) and sign in using the Azure Active Directory credentials specified during installation.

Connect with VPN

You can establish a split tunnel Virtual Private Network (VPN) connection to an Azure Stack Development Kit. The VPN connection allows your local Windows-based computer to connect to the development kit environment. VPN connectivity is supported in both Azure Active Directory(AAD) and Active Directory Federation Services(AD FS) based deployments. VPN connections enable multiple clients to connect to Azure Stack at the same time.

Through the VPN connection, you can access the administrator portal, user portal, and locally installed tools such as Visual Studio and PowerShell to manage Azure Stack resources.


This VPN connection does not provide connectivity to Azure Stack infrastructure VMs.

The following sections describe the steps that are required to establish VPN connectivity to Azure Stack.


Import the Connect PowerShell module

After you download the tools, navigate to the downloaded folder and import the Connect PowerShell module onto your local Windows-based computer by using the following command:

Set-ExecutionPolicy RemoteSigned
Import-Module .\Connect\AzureStack.Connect.psm1 

Configure VPN to Azure Stack Development Kit

To create a VPN connection to the development kit, run the following steps on your local Windows-based computer:

  1. Add the development kit computer’s host IP address & certificate authority (CA) to the list of trusted hosts on your client computer by running the following script in an elevated PowerShell session:

    #Change the IP address in the following command to match your Azure Stack host IP address
    $hostIP = "<Azure Stack host IP address>"
    # Change the password in the following command to the administrative password that is provided when deploying Azure Stack. 
    $Password = ConvertTo-SecureString `
      "<Administrator password provided when deploying Azure Stack>" `
      -AsPlainText `
    #Add host IP and certificate authority to the to trusted hosts
    Set-Item wsman:\localhost\Client\TrustedHosts `
      -Value $hostIP `
  2. Create a VPN connection entry for your local user by using the Add-AzsVpnConnection command:

    Add-AzsVpnConnection `
      -ServerAddress $hostIP `
      -Password $Password

    get VPN connection

    If the connection succeeds, you should see azurestack in your list of VPN connections.

    Network connections

  3. Connect to the Azure Stack instance by using either of the following methods:

    a. Connect-AzsVpn command:

    Connect-AzsVpn `
      -Password $Password

    connect with cmd

    When prompted, trust the Azure Stack host and install the certificate from AzureStackCertificateAuthority into your local computer’s certificate store. (the prompt might appear behind the PowerShell session window).

    b. Open your local computer’s Network Settings > VPN >click azurestack > connect

    connect with UI

    At the sign-in prompt, enter the username (AzureStack\AzureStackAdmin) and the password. If the connection succeeds, the azurestack VPN should be in a connected state.

Test the VPN connectivity

To test the portal connection, open an Internet browser and navigate to either the user portal (https://portal.local.azurestack.external/) or the administrator portal (https://adminportal.local.azurestack.external/), sign in and create resources.

Next steps

Make virtual machines available to your Azure Stack users