From e9a3c517c62c09abc6f840ce57a47d686696c52e Mon Sep 17 00:00:00 2001 From: Al West Date: Tue, 26 Sep 2023 09:43:16 +0100 Subject: [PATCH] Revert error pages * It is not possible to have pages created by terraform when they already exist: - Pages are shared between all the environment - Pages should be manually created * Backup code to create error pages --- Terraform/appgw.tf | 4 ++-- Terraform/{errorpage-blob.tf => errorpage-blob.tf.bak} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename Terraform/{errorpage-blob.tf => errorpage-blob.tf.bak} (100%) diff --git a/Terraform/appgw.tf b/Terraform/appgw.tf index 6ae987bc..9a6cbe72 100644 --- a/Terraform/appgw.tf +++ b/Terraform/appgw.tf @@ -136,12 +136,12 @@ resource "azurerm_application_gateway" "appgw" { custom_error_configuration { status_code = "HttpStatus403" - custom_error_page_url = azurerm_storage_blob.error-403.url + custom_error_page_url = "https://s185errorpage.blob.core.windows.net/s185errorpage/403.html" } custom_error_configuration { status_code = "HttpStatus502" - custom_error_page_url = azurerm_storage_blob.error-502.url + custom_error_page_url = "https://s185errorpage.blob.core.windows.net/s185errorpage/502.html" } rewrite_rule_set { diff --git a/Terraform/errorpage-blob.tf b/Terraform/errorpage-blob.tf.bak similarity index 100% rename from Terraform/errorpage-blob.tf rename to Terraform/errorpage-blob.tf.bak