Azure Cloud Shell
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:
- PowerShell:
cd $HOME/clouddrive/ - Bash:
cd clouddrive
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/:
In Cloud Shell:
git config --global --unset credential.helper git config --global credential.helper store
Next time you use
gitto 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)
Create a Github personal access token. Set it to
repoaccess scope only.Enter the personal access token as password