terraform-azure/quickstart/101-aci-linuxcontainer-public-ip
github-actions[bot] 0b42c09bc4 Update TestRecord
2024-11-03 03:44:41 +00:00
..
2024-09-14 15:34:37 +08:00
2023-03-14 13:41:19 -07:00
2023-03-14 13:20:25 -07:00
2024-11-03 03:44:41 +00:00

Azure Container Instance with public IP

This template deploys an Azure Container Instance with a public IP address.

Terraform resource types

Variables

Name Description Default
resource_group_name_prefix Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription. rg
resource_group_location Location of the resource group. eastus
image Container image to deploy. mcr.microsoft.com/azuredocs/aci-helloworld"
port Port to open on the container and the public IP address. 80
cpu_cores Quantity of CPU cores to allocate to the container. 1
memory_in_gb Amount of memory to allocate to the container in gigabytes. 2
restart_policy Behavior of Azure runtime if container has stopped. Always

Example

To see how to run this example, see Create an Azure Container Instance with a public IP address using Terraform.