Skip to content

NavaraBV/kennisfestival-iac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kennisfestival-iac

Demo repository for infrastructure as code.

Installation

For the demonstration of this repository, the following tools should be installed.

Usage

Open the repository with Visual Studio Code and open the command palette ( + + p). Search for "Remote-Containers: Reopen in Container" and hit enter. This will open the backend of Visual Studio Code in a Docker container. The frontend will still run on the host though. The container however will have all the necessary tools installed (e.g. Azure CLI and Terraform). The first installation can take a while (took 3 minutes on a MacBookPro16,1). To follow the progress, click on the pop-up at the bottom left.

The first time, you will need to log in to the Azure CLI. You can do this with the following command:

az login

This will open a browser in which you can log in with your NAVARA credentials. If the login was succesful, you will presented with something like (example from Azure provider):

[
  {
    "cloudName": "AzureCloud",
    "id": "00000000-0000-0000-0000-000000000000",
    "isDefault": true,
    "name": "PAYG Subscription",
    "state": "Enabled",
    "tenantId": "00000000-0000-0000-0000-000000000000",
    "user": {
      "name": "[email protected]",
      "type": "user"
    }
  }
]

If you have access to more subscriptions, view all subscriptions with

az account show

Switch to the desired subscription:

az account set --subscription “<my subscription name>”