Skip to content

Demo using Azure DevTest Labs, Bicep, and Azure azd to provision test infra

Notifications You must be signed in to change notification settings

ianoflynnautomation/iac-devtestlabs-bicep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Summary

The main.bicep file defines the infrastructure for a DevTest Lab environment with both Linux and Windows virtual machines, designed to spin up an environment for development or testing.

What we will be doing

Bicep Resource Visualizer

Lab Bicep Visualizer

Tools we'll be using

  • Bicep
  • Github actions
  • Azure pipelines
  • Azure azd

Prerequisites

This template will create infrastructure and deploy code to Azure. If you don't have an Azure Subscription, you can sign up for a free account here. Make sure you have contributor role to the Azure subscription. The following prerequisites are required to use this application. Please ensure that you have them all installed locally.

Overview

Scope:

  • Subscription-level deployment.

Purpose:

Provision a DevTest Lab environment with:

  • A configurable Linux application server/ windows application server vm to deploy for example a deployment of an onprem docker enviroment.
  • Multiple Windows client VMs for system testing where you need more control over the VM's (For example, hardware in the loop testing ).

Key Resources

DevTest Lab:

  • Creates a DevTest Lab named devtestlab01 (default).

Linux Application Server:

  • Single VM for application hosting.
  • Ubuntu-based (default image: 20.04 LTS).
  • Preinstalled artifacts such as Docker, Docker compose plugin, agent etc.

Windows Client VMs:

  • Deploys one or more Windows VMs (up to 10).
  • Default: Windows 11 (Pro, 22H2).ß
  • Preinstalled artifacts needed for test execution such as browsers, powershell, nodejs etc.

Application Architecture

This application utilizes the following Azure resources:

  • Azure DevTest Labs to managing infrastructure-as-a-service (IaaS) virtual machines (VMs) in labs.

Quickstart

To learn how to get started with any azure azd, follow the steps in Quickstart: Deploy an Azure Developer CLI template

This quickstart will show you how to authenticate on Azure, initialize using a template, provision infrastructure and deploy code on Azure via the following commands:

# Log in to azd. Only required once per-install.
azd auth login

# First-time project setup. Initialize a project in the current directory.
azd init 

# Provision and deploy to Azure
azd up

# Clean up resources
azd down

About

Demo using Azure DevTest Labs, Bicep, and Azure azd to provision test infra

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages