Using Azure CLI from Mac terminal

I’ve been prepping for an Azure exam, and oftentimes, I find it WAY easier to use my terminal on my mac than using the cloud CLI. To be clear, you still need to know how to use the cloud CLI for most Azure exams! Still, in the practical world, I find my own terminal to be way easier.

Here is a simple guide to setting up powershell and azure CLI in your mac terminal. Note: you will want to install homebrew if you haven’t already.

Install MS PowerShell core from brew

  1. Open terminal.
  2. brew cask install powershell

Install AzureCli

  1. From terminal, do brew update && brew install azure-cli

Install the azure powershell module:

  1. From terminal, do pwsh . (Welcome to PowerShell)
  2. now, do Install-Module -Name Az -AllowClobber (-AllowClobber is basically allow overwriting of any previously installed components)
  3. do az login, and complete the login process on your browser.
  4. do Connect-AzAccount, and enter the code provided in your terminal to give your device a token.
  5. do az account show, and verify result / subscription info
  6. do Get-AzSubscription, and verify result / subscription info

Another thing you might want to do is download and install azcopy. This utility is very helpful for moving objects up into Azure storage.

  1. Download the azcopy binary to your mac from here
  2. Extract the archive using archive manager into your ~/Downloads folder
  3. cp azcopy to the same folder as pwsh binary
    1. cp ~Downloads/azcopy_darwin_amd64_10.3.4/azcopy /usr/local/bin/azcopy. (Note: mind the version number.)
  4. from pwsh, run azcopy and verify result.  Success!!!!

Docker TLS w self signed cert and local CA on RHEL/CENTOS

Here are some simple instructions for configuring a local docker engine to use TLS encryption and self-signed certificates. Next steps […]

GL.iNet Mudi – product review

You can get the Mudi from amazon here in the USA. LINK I have had a mobile hotspot router in […]

Leave a Reply