This Terraform lab environment will deploy an Azure Virtual Network Manager (AVNM) lab. This lab uses GitHub Codespaces which allows you to deploy a containerized dev environment with all dependencies included. Follow the steps below to deploy and manage the lab environment.
- GitHub account
-
Create a Codespace from the GitHub Repository
- Navigate to the GitHub repository for this lab.
- Click on the
Code
button. - Select the
Codespaces
tab. - Click on
Create codespace on main
(or the appropriate branch).
-
Login to Azure
Open a terminal in the Codespace and run the following command to login to your Azure account:
az login
If you have issues signing in, try using:
az login --use-device-code
-
Update the answers.json File
Update the answers.json file with your environment values. The file should look like this:
{ "subscriptionId": "your-subscription-id", "location": "your-location", "resourceGroupName": "your-resource-group-name" }
-
Run the Deploy Script
Run the deploy.ps1 script to deploy the lab environment:
./deploy.ps1
When you're ready to clean up the lab environment, run the destroy.ps1 script:
./destroy.ps1
Notes
Ensure you have the necessary permissions to create and manage resources in your Azure subscription.
Review the Terraform configurations and scripts to understand the resources being deployed and managed. Ensure that the SKU used in the main.tf
in the 2-compute
module is supported in your chosen location. I would suggest useast2 for the givin SKU or change the SKU as necessary.
Azure VMs login info
Username
=azureadmin
Password
=AzureAdmin123!
Happy deploying!