diff --git a/quickstart/101-front-door-standard-premium/providers.tf b/quickstart/101-front-door-standard-premium/providers.tf index 2a4539cd..c8990b6e 100644 --- a/quickstart/101-front-door-standard-premium/providers.tf +++ b/quickstart/101-front-door-standard-premium/providers.tf @@ -8,6 +8,7 @@ terraform { random = { source = "hashicorp/random" + version = "~> 3.4.3" } } diff --git a/quickstart/101-front-door-standard-premium/readme.md b/quickstart/101-front-door-standard-premium/readme.md index 98402cc1..d8ca79b8 100644 --- a/quickstart/101-front-door-standard-premium/readme.md +++ b/quickstart/101-front-door-standard-premium/readme.md @@ -14,17 +14,18 @@ This template deploys an [Azure Front Door Standard/Premium profile](https://reg | `azurerm_cdn_frontdoor_route` | The Front Door route. | | `azurerm_service_plan` | The App Service plan. | | `azurerm_windows_web_app` | The App Service app. | +| `random_id` | Two random identifier generators to generate a unique Front Door endpoint resource name and App Service app name. | ## Variables -| Name | Description | -|-|-| -| `location` | The location for all the deployed resources. | -| `resource_group_name` | The name of the resource group. | -| `app_service_plan_sku_name` | The SKU for the App Service plan. | -| `app_service_plan_sku_tier_name` | The name of the tier that the App Service plan SKU is in. | -| `app_service_plan_capacity` | The capacity (number of worker instances) for the App Service plan. | -| `front_door_sku_name` | The name of the SKU for the Front Door profile. | +| Name | Description | Default Value | +|-|-|-| +| `location` | The location for all the deployed resources. | `westus2` | +| `resource_group_name` | The name of the resource group. | `FrontDoor` | +| `app_service_plan_sku_name` | The SKU for the App Service plan. | `S1` | +| `app_service_plan_sku_tier_name` | The name of the tier that the App Service plan SKU is in. | `Standard` | +| `app_service_plan_capacity` | The capacity (number of worker instances) for the App Service plan. | 1 | +| `front_door_sku_name` | The name of the SKU for the Front Door profile. Must be either `Standard_AzureFrontDoor` or `Premium_AzureFrontDoor`. | `Standard_AzureFrontDoor` | ## Example diff --git a/quickstart/101-front-door-standard-premium/resource-group.tf b/quickstart/101-front-door-standard-premium/resource-group.tf index 85fae84e..100f06eb 100644 --- a/quickstart/101-front-door-standard-premium/resource-group.tf +++ b/quickstart/101-front-door-standard-premium/resource-group.tf @@ -2,3 +2,11 @@ resource "azurerm_resource_group" "my_resource_group" { name = var.resource_group_name location = var.location } + +resource "random_id" "app_name" { + byte_length = 8 +} + +resource "random_id" "front_door_endpoint_name" { + byte_length = 8 +} diff --git a/quickstart/101-front-door-standard-premium/variables.tf b/quickstart/101-front-door-standard-premium/variables.tf index 9b6428ee..12ef197c 100644 --- a/quickstart/101-front-door-standard-premium/variables.tf +++ b/quickstart/101-front-door-standard-premium/variables.tf @@ -31,11 +31,3 @@ variable "front_door_sku_name" { error_message = "The SKU value must be Standard_AzureFrontDoor or Premium_AzureFrontDoor." } } - -resource "random_id" "app_name" { - byte_length = 8 -} - -resource "random_id" "front_door_endpoint_name" { - byte_length = 8 -}