Set up the bastion server

Follow these steps to create a bastion jump server for running the Azure command-line interface (CLI).

Procedure

  1. Create a bastion server for your hardware cluster:
  2. Log in to the bastion server and then run this command to install the required packages:
    • On CentOS:
      yum install azure-cli
    • On Ubuntu:
      sudo apt-get update
      sudo apt-get install azure-cli
  3. Verify the Azure CLI version:
    az --version

    The output should be similar to:

    [root@shahram-bastion1 ~]# az --version
    azure-cli                         2.6.0
    
    core                              2.23.0
    telemetry                          1.0.6
    
    Python location '/usr/bin/python3'
    Extensions directory '/root/.azure/cliextensions'
    
    Python (Linux) 3.6.8 (default, Aug 24 2020, 17:57:11)
    [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]
    
    Legal docs and information: aka.ms/AzureCliLegal
    
    Your CLI is up-to-date.
    
    Please let us know how we are doing: https://aka.ms/azureclihats
    and let us know if you're interested in trying out our newest features: https://aka.ms/CLIUXstudy