Demo repository for infrastructure as code.
For the demonstration of this repository, the following tools should be installed.
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": "user@example.com",
"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>”