Prerequisites
Prerequisites¶
The workshop is divided into separate modules. Each module will guide you through building the solution code step-by-step. Ensure that you finish the modules in the right order as they have dependencies on each other.
Make sure you have your development environment set up and configured.
- An Azure account with an active subscription - Create an account for free
- .NET SDK 8 or a higher version (we primarily focus on LTS versions) - Install
- PowerShell 7.0 or higher version (For Windows Users only!) - Install
- Docker Desktop - Install
As of November 2024, Docker Desktop continues to be free for education purposes. Please consult the Docker Desktop license agreement for any updates.
- Visual Studio Code - Install
- VS Code Docker extension - Install
- Dapr CLI - Install and Initialize
- VS Code Dapr extension. Depends on Dapr CLI - Install
- Azure CLI - Install
- Git CLI - Install
- (Optional) A REST client such as Postman or Insomnia or similar.
Set up Git Repository & Variable Scripts¶
Git Repository¶
This workshop typically spans several days. As such, you may close your tools, end CLI sessions, reboot, or simply want to persist working implementations in a repository as each module builds upon the one before it. A local Git repository can help.
-
Open a command-line terminal and create a folder for your project, then switch to that folder.
-
Initialize the git repository.
-
Use the
code
command to launch Visual Studio Code from that directory as shown: -
From VS Code's Terminal tab, select New Terminal to open a (PowerShell) terminal in the project folder TasksTracker.ContainerApps.
Note
Throughout the documentation, we may refer to the TasksTracker.ContainerApps directory as root to keep documentation simpler.
-
In the root create a
.gitignore
file. This ensures we keep our git repo clean of build assets and other artifacts. -
Commit the
.gitignore
file.
Set-Variables & Variables Script¶
-
In the root create a new file called
Set-Variables.ps1
. -
Copy the Set-Variables.ps1 script into the newly-created
Set-Variables.ps1
file and save it. -
Execute the script. You will do this repeatedly throughout the modules. The output of the script will inform you how many variables are written out. As we have not yet defined any variables, the output will indicate that the script has exited (without writing out to the file). This is intentional and expected at this stage.
-
Commit the
Set-Variables.ps1
file.
This completes the basic setup for Git and the variables to be used. You are ready to proceed to Module 1!
Jump Ahead¶
If you don't want to build the solution code from scratch, you can clone the source code repository final version by utilizing below command, and you can use the modules to deploy Azure resources using the provided Azure CLI commands.