This repository contains a collection of Bicep templates and deployment examples for Azure resources. The lab environment is designed to be deployed using GitHub Codespaces, providing a containerized dev environment with all dependencies included.
- GitHub account
-
Create a Codespace from the GitHub Repository
- Navigate to the GitHub repository for this lab.
- Click on the
Codebutton. - Select the
Codespacestab. - 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
-
Navigate to an Example Folder
Each example is self-contained in its own folder. For example, to deploy an AKS cluster:
cd aks-deployment -
Review and Update Parameters
Edit the parameter files (e.g.,
*.bicepparam) in the example folder to match your environment and requirements. -
Run the Deployment Script
Most examples include a deployment script (e.g.,
deploy.sh). Run the script to deploy the resources:./deploy.sh
When you're ready to clean up the lab environment, use the provided destroy script (if available) or delete the resource group via the Azure CLI:
az group delete --name <your-resource-group>aks-deployment/– Deploys an Azure Kubernetes Service (AKS) cluster and supporting resources.- (Add more folders/examples as needed)
This repository is for educational and demonstration purposes. Ensure you have the necessary permissions to create and manage resources in your Azure subscription.