User Story 145880 (#243)

* Updating Front Door Standard/Premium code sample
This commit is contained in:
Tom Archer
2023-08-10 19:34:09 -07:00
committed by GitHub
parent fee12df179
commit 435a067b5d
7 changed files with 73 additions and 334 deletions

View File

@ -1,3 +1,7 @@
resource "random_id" "app_name" {
byte_length = 8
}
locals {
app_name = "myapp-${lower(random_id.app_name.hex)}"
app_service_plan_name = "AppServicePlan"
@ -5,8 +9,8 @@ locals {
resource "azurerm_service_plan" "app_service_plan" {
name = local.app_service_plan_name
location = var.location
resource_group_name = azurerm_resource_group.my_resource_group.name
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
sku_name = var.app_service_plan_sku_name
os_type = "Windows"
@ -15,8 +19,8 @@ resource "azurerm_service_plan" "app_service_plan" {
resource "azurerm_windows_web_app" "app" {
name = local.app_name
location = var.location
resource_group_name = azurerm_resource_group.my_resource_group.name
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
service_plan_id = azurerm_service_plan.app_service_plan.id
https_only = true