A simple web app demo using opentofu to describe the infrastructure.
Requirements:
- Install OpenTofu
- Install azure cli
- Repo cloned
On windows you can use chocolatey to get the requirements in minutes:
choco install opentofu azure-cli git
Login to the azure service.
# enforce use the browser to login
az config set core.enable_broker_on_windows=false
# login into the account
az login
Deploy environment. During running the command following inputs are required:
- resource_group_name, random name to identify the resource
- location, define the location to deploy from `
Lets first initialize and get all dependencies for opentofu:
tofu init
Configure the app by copying and changing the values in terraform.tfvars
cp .\terraform.tfvars.example .\terraform.tfvars
Lets deploy the app
tofu apply
Following some examples for location/region can be used:
West Europe
this gist contains a whole list.
For the resource group name, you can use rg_example_app
, or what ever feels comftable for itentification.
Open the webpage with security token,
tofu output -raw sas_url_query_string