A smart cloud solution architect always has the right tools in their toolbox. We could have just provided you with a list of links to install all the tools here, but since this hack covers Azure fundamentals, we felt it was important to provide context on what these tools are for and how they work together.
We encourage you to read through the details of “Challenge Zero” with your fellow hackers and understand WHAT you are installing BEFORE you install it.
Here’s roadmap of what you will need to hack today. You can click the links to jump to corresponding sections of this page for more details.
If you go “local”, you will be setting up all the tools you will need to complete the challenges on your local workstation:
You will need an Azure subscription to complete this hackathon. If you don’t have one…
Our goal in the hackathon is limiting the cost of using Azure services.
If you’ve never used Azure, you will get:
Details can be found here on free services.
If you have used Azure before, we will still try to limit the cost of services by suspending, shutting down services, or destroying services before the end of the hackathon. You will still be able to use the free services (up to their quotas) like App Service or Functions.
If you are going to be managing Azure resources on a regular basis and developing infrastructure-as-code with Bicep templates, we strongly recommend you take the time to install the pre-requisite tools listed below on your workstation (Windows, Mac, or Linux). This will give you a better understanding of how they work.
However, we understand that some users may not have the ability to install software tools on their workstation.
This hack can be completed using the Azure Cloud Shell. Azure Cloud Shell is an interactive, authenticated, browser-accessible terminal for managing Azure resources. It provides the flexibility of choosing the shell experience that best suits the way you work, either Bash or PowerShell.
The Azure Cloud Shell has all of the CLI tools you need to complete this hack’s challenges pre-installed. It also has a GUI text editor, Azure Cloud Shell editor, that is a slimmed down version of Visual Studio Code. There are some caveats to using the Azure Cloud Shell:
If you choose to use the Azure Cloud Shell, you are taking the “easy” way out. You can skip to the Success Criteria below and move on to Challenge 1.
Azure can be managed using either the cross-platform Azure Command Line Interface (CLI) or the Azure PowerShell commandlets. You can accomplish virtually any management task, including deploying Bicep templates, using either option.
In the real world, most companies will standardize on one or the other. Use whichever one you are most comfortable with. We have found that when doing Internet searches for various Azure management tasks, Azure CLI examples seem to show up more often in the results.
It is your choice whether to install and use the Azure CLI, the Azure Powershell Cmdlets, or both for this hack. You only need to install one, but we encourage students to get familiar with using both tools. Therefore, read on for instructions to get both of them set up…
If you drive a Mac or Linux workstation, installing the Azure CLI is very straight forward. Follow the instructions for your OS of choice here:
For Windows users, there is a bit of nuance. We highly recommend installing the Windows Subsystem for Linux (WSL) first and then installing the Azure CLI within it.
The Windows Subsystem for Linux (WSL) lets developers run an entire Linux distribution – including most command-line tools, utilities, and applications – directly on Windows, unmodified, without the overhead of a virtual machine.
WSL is an essential tool Azure admins should have on their workstations if they are running Windows! If you work with Linux servers in Azure (or anywhere), having access to WSL enables you to easily connect to them and use all the Bash shell tools you’re used to.
The Azure CLI can be installed locally on Windows. If you do this, you will access and use the Azure CLI from the Windows Command Prompt or PowerShell Console.
While the Azure CLI examples in the Microsoft documentation work fine locally on Windows, as you search the web for examples of how to use the Azure CLI, the examples frequently show Azure CLI commands used in Bash shell scripts. Bash shell scripts will not run in the Windows Command Prompt or PowerShell Console.
For this reason, we recommend using WSL for interacting with the Azure CLI. This means you should install the Azure CLI within your WSL environment by following the instructions for the Linux distro you are using:
NOTE: If you have previously installed the Azure CLI on Windows, and then install it in WSL, you will have two installations of the Azure CLI on your workstation. You may need to restart your WSL instance so that WSL is set to use the Azure CLI instance installed in WSL, not the instance installed on Windows.
NOTE: If you run into issues running Azure CLI commands on Windows, you may need to disable your VPN.
If you are not able to install WSL on your Windows workstation, you can install the Azure CLI on Windows by following the instructions here:
PowerShell is a cross-platform task automation solution made up of a command-line shell, a scripting language, and a configuration management framework. PowerShell runs on Windows, Linux, and macOS.
PowerShell may be installed by default on Windows, but it may not be the most up to date version.
Regardless of OS, we recommend you follow the instructions to install the latest version of PowerShell (currently 7.x) here:
Azure PowerShell provides a set of cmdlets that use the Azure Resource Manager for managing your Azure resources. The Azure PowerShell Cmdlets are functionally equivalent to the Azure CLI and can be used to complete all of the challenges instead of the Azure CLI.
NOTE: Azure CLI versions 2.20 and higher include the Bicep CLI tools. If you chose NOT to install the Azure CLI earlier and are only using PowerShell, you must follow the instructions at this link to install the Bicep CLI manually:
Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages (such as C++, C#, Java, Python, PHP, Go) and runtimes (such as .NET and Unity).
VS Code runs on Windows, Mac, and Linux. It is a quick install, NOT a 2 hour install like its namesake full-fledged IDE on Windows. VS Code is lightweight because there is an ecosystem of plugins that help provide support for many different programming languages and file types.
There are two plugins available which we recommend for developing Bicep templates and managing Azure resources in VS Code:
Visual Studio Code with the Bicep extension provides language support and resource autocompletion. The extension helps you create and validate Bicep files.
The Azure Resource Extension enables you to wiew and manage Azure resources directly from VS Code. This extension is optional, but very useful.
Your coach will provide you with a Resources.zip
file that contains resource files you will use to complete some of the challenges for this hack.
If you have installed all of the tools listed above on your local workstation, you should unpack the Resources.zip
file there too.
If you plan to use the Azure Cloud Shell, you should upload the Resources.zip
file to your cloud shell first and then unpack it there.
az --version
shows the version of your Azure CLIResource.zip
package unpacked on your workstation or the Azure Cloud Shell.