This repository is an example utilizing the new AzAPI terraform provider to deploy Azure Container Apps with a simple 'Hello World' app.
The AzAPI provider is a very thin layer on top of the Azure ARM REST APIs. Use this new provider to authenticate to - and manage - Azure resources and functionality using the Azure Resource Manager APIs directly. This provider compliments the Azure Resource Manager provider (AzureRM provider) by enabling the management of Azure resources that are not yet or might never be supported in the AzureRM provider, such as private and public preview services and features.
If using your workstation, you will need the following installed:
- Azure Account
- Azure CLI
- Terraform CLI
Alternatively you can use the Azure Cloud Shell that have all the prerequisite software installed.
az ad sp create-for-rbac --name TerraformSP --role="Contributor" --scopes="/subscriptions/<SUBSCRIPTION_ID>"
$ export ARM_CLIENT_ID="<APPID_VALUE>"
$ export ARM_CLIENT_SECRET="<PASSWORD_VALUE>"
$ export ARM_SUBSCRIPTION_ID="<SUBSCRIPTION_ID>"
$ export ARM_TENANT_ID="<TENANT_VALUE>"
- Clone repository from GitHub
git clone
- Initialize the project, which downloads all the required providers to deploy our solution.
terraform init
- Generate the terrform execution plan
terraform plan
- Apply the terraform execution plan
terraform apply main