Azure Command Line Tools

You may run into some tasks that cannot be done in Azure’s web based Portal and require you to dip into the command line.

This page describes how to get started with command line tools.

If you do not wish to install anything, you should jump to the Azure Cloud Shell section below.

We recommend you use the Azure CLI unless you are already familiar with Microsoft PowerShell.

Azure CLI

Fetch and install the Azure CLI.

Login with your tool by running the following:

az login

To test everything is working, try running the following which should list all the managed applications you have installed including RADNAC:

az managedapp list --query [].id --output table

Azure PowerShell

Fetch and install Azure PowerShell.

The installation process may be summarized by running:

if ((Get-ExecutionPolicy) -ne 'Unrestricted') { `
  Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser `
}
if (!(Get-Module -ListAvailable -Name Az)) { `
  Install-Module Az `
    -Repository PSGallery `
    -Scope CurrentUser `
    -Force `
}
You should be able to use your clipboard to copy and paste this command into it.

Once installed, you can log in using:

Connect-AzAccount -UseDeviceAuthentication

Azure Cloud Shell

To get started with Azure Cloud Shell run through the following steps:

  1. Open Azure’s web based portal user interface.

  2. Click on the command prompt icon (a square box surrounding a ‘>_’) in the top right

  3. Select either ‘Bash’ (recommended, provides ‘Azure CLI’) or ‘PowerShell’

  4. Select ‘No storage account required’ and choose the subscription you are working in

  5. Leave unchecked the option to ‘Use an existing private virtual network’</li>

  6. Click on the Apply button

Azure PowerShell

Though you should not need to log in occasionally you may need to, such as to access Microsoft Graph API, and you should run instead of the command provided earlier:

Connect-AzAccount -UseDeviceAuthentication