This is a demo of how to use Terraform to deploy resources to Azure, and lots of tricks and tips along the way that may not be obvious to the beginner.
A Github Codespaces environment is provided to allow you to run the code without needing to install anything on your local machine. If you do wish to work locally, you will need to install the Azure CLI and Terraform. Do note that I recommend using the Codespaces environment, as it is a consistent environment for everyone, and will make the workshop run smoother.
- Create a copy of this repository in your own Github account either by creating a Fork.
- Ensure you have an Azure subscription, and your account is an Owner on the Subscription.
- Fork this Repo. You may need to make an account / Sign in.
- Start the Codespaces by going
Code >> Codespaces >> Create codespace on main
- Run
az login --use-device-code
with the supplied credentials. - Execute
az account list
to test that you are logged in and everything is good to go.
- Fork this Repo. You may need to make an account / Sign in.
- Clone the repo to your local machine.
- Install AzCli
- Install Terraform
- Run
az login --use-device-code
with the supplied credentials. - Execute
az account list
to test that you are logged in and everything is good to go.
Terraform Language Documentation
Terraform AzureRM Provider
Terraform Azure Naming Module
Terraform Http Provider
Azure Documentation
Azure Cloud Adoption Framework
Azure Defining your Naming Convention
Azure Abbreviation Examples for Azure Resources