====== Azure Cloud Shell ====== https://shell.azure.com/ Windows [[:?do=showtag&tag=powershell|PowerShell]] or Linux [[:?do=showtag&tag=linux|Bash]] shells are available. [[cli|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#queries|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 ''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) -- Create a Github [[https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line|personal access token]]. Set it to ''repo'' access scope only. -- Enter the personal access token as password ==== Accessing Azure DevOps ==== https://medium.com/@seekdavidlee/setting-up-git-in-azure-cloud-shell-14cc2a4f1d38 {{tag> git azure bash}}