We will go through setting up the Azure command line tool (CLI) in this lesson.
- Prerequisite: Create an account on Azure if you don't have one.
CLI Setup
On Ubuntu:
$ curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
...
The following NEW packages will be installed:
azure-cli
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
...
Setting up azure-cli (2.36.0-1~jammy) ...
...
Let's verify:
$ az --version
azure-cli 2.36.0
core 2.36.0
telemetry 1.0.6
Dependencies:
msal 1.17.0
azure-mgmt-resource 20.0.0
Python location '/opt/az/bin/python3'
Extensions directory '/home/harry/.azure/cliextensions'
Python (Linux) 3.8.13 (default, Apr 22 2022, 04:53:13)
[GCC 11.2.0]
Account Setup
$ az login
...