Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 1.79 KB

dev-containers.md

File metadata and controls

28 lines (25 loc) · 1.79 KB

Overview

The Visual Studio Code Dev Containers extension lets you use a Docker container as a full-featured development environment. It delivers all tooling required to deploy the application enivrionment and deploy the application code. For more information on Dev Containers, please refer to this tutorial

Pre-requisites

  • Docker
    • If using Windows Subsystem for Linux, docker needs to be inside WSL
    • If using Windows, Docker for Desktop needs to be installed
  • Visual Studio Code
    • Visual Code for the Web can not be used. There is an issue deploying Azure AD resources when using DevContainers.
  • Dev Container Extenstion

NOTE: Access to a Github Codespace fullfills all the pre-requisites

Dev Container Setup

  1. git clone https://github.com/Azure/reliable-web-app-pattern-dotnet
  2. Open the folder reliable-web-app-pattern-dotnet in Visual Studio Code
  3. A prompt to open the folder in Dev Containers will appear in the lower right.
    • screenshot dev container open
  4. Click Reopen in Container
  5. The container will start to build
    • screenshot dev container building
  6. When the container is built, open a new shell in the upper right hand corner of the integrated terminal
    • screenshot dev container shell
  7. Confirm that azd and az bicep are install correctly
    • screenshot dev container azd
    • screenshot dev container bicep
  8. Continue on deploying the environment as before.