Table of Contents

Azure Cloud Shell

https://shell.azure.com/

Windows PowerShell or Linux Bash shells are available. Azure CLI is supported out of the box.

Azure CLI does not output PowerShell objects! Don't be tempted to pipe into Where-Object – use a CLI JMESPath query instead.

Accessing cloud storage

To cd to cloud storage:

git setup

My preferred defaults:

git config --global push.default simple
git config --global core.editor "/usr/bin/vim"

Accessing Github

From https://codemilltech.com/cloudshell-git/:

  1. In Cloud Shell:

    git config --global --unset credential.helper
    git config --global credential.helper store
  2. Next time you use git to talk to GitHub, Cloud Shell will prompt you for a username and password (as usual).

    • Use your normal username

    • Don't put in your password (yet)

  3. Create a Github personal access token. Set it to repo access scope only.

  4. Enter the personal access token as password

Accessing Azure DevOps

https://medium.com/@seekdavidlee/setting-up-git-in-azure-cloud-shell-14cc2a4f1d38