Access CLI 2 from Azure Portal

Access CLI 2 from Azure Portal

Q. How do I access the Azure CLI 2 from the Azure Portal?

A. The Azure Portal now provides simple access to the Azure CLI 2 by clicking the CLI icon on the toolbar. The great feature of this is that its evergreen meaning it will always be the latest version.

The first time this is selected you will be prompted to create a storage area (using Azure Files) which will be used to provide a persistent $Home area. Select a subscription and select Create storage.

You will have a CLI 2 environment already authenticated with your portal user to now perform various CLI actions such as listing VMs (az vm list), viewing storage accounts (az storage account list) and using its interactive mode (az interactive) which provides a richer environment that features dynamic help and intellisense.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish