Install and Configure Microsoft Azure Command Line interface

Many tasks, when deploying Access Gateway into an Microsoft AZure environment, can be done using the command line interface. Command line interface commands are often easier, scriptable, or support tasks not supported in the Microsoft Azure GUI.

Before You Begin

Before you begin ensure that you have:

  • An Microsoft Azure account
  • Access to a supported command line environment such as Windows, Linux or Apple OSX.

Install The MS Azure Command Line interface

The Microsoft command line interface can be installed in a variety of environments.

Important Note


The Microsoft Azure CLI install process is governed by Microsoft Corporation and may change at any moment. This page is meant as a guide. Please consult the Microsoft Azure documentation for exact details of the command line interface and similar topics.

  1. Open a browser to Microsoft Azure CLI overview page.
  2. In the Download section select an appropriate environment.
  3. Execute the download and install scripts for your environment:
    For example on Mac OSX:
    brew update && brew install azure-cli

    On Windows 10 using powershell as administrator:

    Invoke-WebRequest -Uri -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet'

Configure Azure Environment

You must login to use the Microsoft Azure cli environment. 

  1. After installing the Microsoft Azure environment, login using

    az login

  2. A browser will open and direct you to the Microsoft Azure login.
    Login using appropriate credentials.
  3. On success you will see results similar to:

    You have logged in. Now let us find all the subscriptions to which you have access...
       "cloudName": "AzureCloud", 
       "id": "a937247b-. . . ", 
       "isDefault": true, 
       "name": "Azure subscription",
       "state": "Enabled",
       "tenantId": "f1f9fcc4-. . . ",
       "user": {