microsoft / AzureTipsAndTricks

Learn some of our favorite Azure tips and tricks—some long-standing, and new ones that have recently been added to become more productive with Azure. Star the repo now to shave hours off your coding tasks tomorrow.
http://azuredev.tips
Creative Commons Attribution 4.0 International
1.49k stars 489 forks source link

Question: How to upgrade git software in Azure Cloud Shell (powershell)? #81

Closed rswe closed 4 years ago

rswe commented 4 years ago

Following on from useful Tip: https://microsoft.github.io/AzureTipsAndTricks/blog/tip15.html

It would be useful to have a Tip for upgrading git (and potentially other) Azure Cloud Shell provided 3rd party software. In my Azure Cloud Shell, git does not appear to be upgraded automatically (I don't know if it should be automatic or manual).

My Azure Cloud shell:

git --version git version 2.7.4

This is an old version. 2.22.x would be more recent for example. I even got a message in Cloud Shell suggesting upgrading git. But I can't see instructions for how to do this. I first used Azure Cloud shell when it first came out, so perhaps all the software has remained on those older versions?

Thanks

mbcrump commented 4 years ago

Hey @rwse - In short, you can't! Git requires sudo permissions to update. sudo is not supported in Cloud Shell, so you won't be able to update manually. I spoke to the cloud shell team and this will likely get grouped in with some overall images updates that we have coming later in the year as well.