Install Azure Tools using WinGet

Install Azure Tools using WinGet

https://ift.tt/3fOqB0V

Sometimes you need to set up a fresh developer or admin workstation with all the latest Azure tools available. I created a quick list of commands on how you can install Azure Tools using the Windows Package Manager (WinGet) on your Windows 10 or Windows 11 machine.

First, you will need to install the Windows Package Manager (WinGet), if you don’t have winget already on your machine (it will ship in later versions of Windows by default) you can find my blog here on how to install the Windows Package Manager Winget. If you want to learn more about WinGet and how to get started, check out my blog here.

Here is an list of Azure tools I installed using WinGet when setting up a new developer or administrator workstation, this might be different for your needs, but it will provide you with an overview on how to do it. This also includes things like the Azure CLI or Azure PowerShell.

As a reminder, of course, you can also use Azure Cloud Shell, which has already a lot of the tools preinstalled and can be run within Visual Studio Code or the Windows Terminal.

##### Install Azure Tools
winget install Microsoft.AzureStorageExplorer
# winget install Microsoft.AzureStorageEmulator
winget install Microsoft.AzureFunctionsCoreTools
winget install Microsoft.AzureDataStudio
# winget install Microsoft.AzureCosmosEmulator
# winget install Microsoft.azure-iot-explorer
winget install Microsoft.Bicep
winget install Microsoft.AzureCLI
# winget install Microsoft.ServiceFabricRuntime

##### Install AzCopy v10
Invoke-WebRequest -Uri "https://aka.ms/downloadazcopy-v10-windows" -OutFile AzCopy.zip -UseBasicParsing
Expand-Archive ./AzCopy.zip ./AzCopy -Force
mkdir "$home/AzCopy"
Get-ChildItem ./AzCopy/*/azcopy.exe | Move-Item -Destination "$home\AzCopy\AzCopy.exe"
$userenv = [System.Environment]::GetEnvironmentVariable("Path", "User")
[System.Environment]::SetEnvironmentVariable("PATH", $userenv + ";$home\AzCopy", "User")

##### Install PowerShell 7 and Azure PowerShell
winget install Microsoft.PowerShell
pwsh.exe
Install-Module Az

##### Install Windows Terminal
winget install Microsoft.WindowsTerminal

##### Install Git
winget install Git.Git
winget install GitHub.cli

##### Install Visual Studio Code
winget install Microsoft.VisualStudioCode

##### VS Code Extensions:
code --install-extension AzurePolicy.azurepolicyextension
code --install-extension ms-azuretools.vscode-azureresourcegroups
code --install-extension ms-azuretools.vscode-azurestorage
code --install-extension ms-azuretools.vscode-azurevirtualmachines
code --install-extension ms-azuretools.vscode-bicep
code --install-extension ms-azuretools.vscode-docker
code --install-extension ms-dotnettools.vscode-dotnet-runtime
code --install-extension ms-vscode-remote.remote-containers
code --install-extension ms-vscode-remote.remote-ssh
code --install-extension ms-vscode-remote.remote-ssh-edit
code --install-extension ms-vscode-remote.remote-ssh-explorer
code --install-extension ms-vscode-remote.remote-wsl
code --install-extension ms-vscode-remote.vscode-remote-extensionpack
code --install-extension ms-vscode.azure-account
code --install-extension ms-vscode.azurecli
code --install-extension ms-vscode.powershell
code --install-extension ms-vscode.vscode-node-azure-pack
code --install-extension ms-vsliveshare.vsliveshare
code --install-extension ms-vsonline.vsonline
code --install-extension msazurermtools.azurerm-vscode-tools

I hope this is a good start for you if you want to set up your Microsoft Azure developer or administrator workstation using the command line and especially the Windows Package Manager (winget). What are you adding, what is missing, and do you have any other important things you run? Feel free to leave a comment.

Tags:

,

,

,

,

,

,

,

,

Last modified: August 10, 2021

Thomas works as a Senior Cloud Advocate at Microsoft. He engages with the community and customers around the world to share his knowledge and collect feedback to improve the Azure cloud platform. Prior joining the Azure engineering team, Thomas was a Lead Architect and Microsoft MVP, to help architect, implement and promote Microsoft cloud technology.
 
If you want to know more about Thomas, check out his blog: http://www.thomasmaurer.ch and Twitter: http://www.twitter.com/thomasmaurer

August 3, 2021
Microsoft Azure

Azure Arc allows customers to extend Azure management and Azure services to anywhere. Now that said, this offers a lot of different


Read More

July 27, 2021
PowerShell
• One Comment

Since a lot of people are starting to store their scripts and files in GitHub repositories, I often get the question, how can I download a


Read More

July 20, 2021
Microsoft Azure

If you are a Microsoft partner and your are working with customers in hybrid cloud and multi cloud environments, you should definitely have


Read More

July 13, 2021
Microsoft, Microsoft Azure

Today, Erin Chapple (Microsoft Corporate Vice President, Azure Core) just announced the new inside Azure for IT program, which delivers the


Read More

virtualization

via Thomas Maurer https://ift.tt/1P0JLf1

August 10, 2021 at 06:37AM
Thomas Maurer