Simple Azure demo that demonstrates interaction between the following services according to recommended Azure best practises:
- ASP.Net Core App
- App Service
- Key Vault Service
- App Configuration Service
- Change the Azure backend part (line 3-5) in
main.tf
to an existing storage account in your subscription (required for storing terraform state) - Login to Azure:
az login
- Select subscription of terraform state:
az account set --subscription XXX
- Initialize Terraform:
terraform init
- Apply Terraform with the subscription ID & tenant ID where you want to deploy the demo
terraform apply -var 'subscription_id=XXX' -var 'tenant_id=XXX'
- Add the following configurations to the app configuration service via portal:
TestApp:Settings:BackgroundColor
=>e.g. Yellow
- Add a feature toggle with the Key
Beta
- Build & Publish
/app/app.csproj
to newly created app service
- Change
BackgroundColor
configuration => check behaviour in app - Toggle feature
Beta
=> check behaviour in app