This is a sample solution with terraform in feature parity with https://github.com/n-marton/snt-script
To make it able to run you have to do the following:
- You need an Azure account. (https://azure.microsoft.com/en-us/free/)
- You need the Azure cli. (https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest)
- You need to create an rbac account:
az login
az ad sp create-for-rbac -n "rest" --role="Owner" --scopes="/subscriptions/$YOUR_SUBSCRIPTION_ID"
- Set the following environtment variables:
- ARM_CLIENT_ID -> 'appId' from rbac creation response
- ARM_CLIENT_SECRET -> 'password' from rbac creation response
- ARM_TENANT_ID -> 'tenant' from rbac creation response
- ARM_SUBSCRIPTION_ID -> your subscription id
git clone git@github.com:n-marton/snt-tf.git
cd snt-tf
- To create the resources run
./create.sh
- To destroy the resources run
./destroy.sh
This terraform repo has no remote state set, so the states stored locally.