Skip to content

mddazure/azure_verified_module_lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Azure Verified Modules - Network Deployment in Bicep

Azure Verified Modules is an effort to create a library of modules in multiple Infastructure as Code (IaC) languages, following the principles of the Azure Well-Architected Framework.

The purpose of this lab is to try, gain experience with and demonstrate the use of AVM modules. Use it as a starting point for further experimentation.

This is not a reference implementation and it should not be used to as the basis for any production environment.

Lab

The lab is comprised of:

  • A server VNET and a client VNET
  • A pair of load balanced Windows Server VMs running a basic web server, in the server VNET
  • A Windows 11 client VM in the client VNET
  • Azure Bastion in the client VNET
  • A Storage Account, with a Private Endpoint in the server VNET and accompanying Private DNS Zone
  • VNET Gateways in both VNETs, with a VPN tunnel between them

The point of the lab is not so much in the resources and their functionality, which is straight forward, but in that all of it is deployed using Bicep Azure Verified Modules. The lab's main.bicep file only references AVM modules, it does not contain direct resource deployements or reference custom or local modules.

images

Learnings

Some points / issues I stumbled on writing the deployment:

  • VS Code

Deploy

Open a command prompt.

Ensure the Azure CLI and extensions are installed and up to date:

  az upgrade --yes

If necessary select your target subscription:

  az account set --subscription <Name or ID of subscription>

Clone the GitHub repository:

  git clone https://github.com/mddazure/azure_verified_module_lab

Change directory:

  cd ./azure_verified_module_lab

Deploy the Bicep template:

  az deployment sub create --location swedencentral --template-file main.bicep

Verify that all components in the diagram above have been deployed to the resourcegroup avm-rg and are healthy.

NB: Deploying Azure Verified Modules from Cloud Shell does not work, it is apparently not possible to access the AVM registry.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages