From ffa4aa614b560056a74a5db4a9007399f27792bc Mon Sep 17 00:00:00 2001 From: Tom Archer Date: Mon, 10 Jun 2024 10:41:46 -0700 Subject: [PATCH] Changed per review --- quickstart/101-app-service-backup/main.tf | 6 ++++-- quickstart/101-app-service-backup/variables.tf | 7 +++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/quickstart/101-app-service-backup/main.tf b/quickstart/101-app-service-backup/main.tf index 6bb1575e..874e50af 100644 --- a/quickstart/101-app-service-backup/main.tf +++ b/quickstart/101-app-service-backup/main.tf @@ -70,8 +70,10 @@ data "azurerm_storage_account_sas" "example" { file = false } - start = "2024-01-01" - expiry = "2024-12-31" + # Please change the start_date variable (in variables.tf) to the appropriate + # value for your environment. + start = formatdate(var.start_date, timestamp()) + expiry = formatdate(var.start_date, timeadd(timestamp(), "8765h")) permissions { read = false diff --git a/quickstart/101-app-service-backup/variables.tf b/quickstart/101-app-service-backup/variables.tf index e71c1446..5320e399 100644 --- a/quickstart/101-app-service-backup/variables.tf +++ b/quickstart/101-app-service-backup/variables.tf @@ -8,4 +8,11 @@ variable "resource_group_location" { type = string default = "eastus" description = "Location of the resource group." +} + + +variable "start_date" { + type = string + default = "2024-06-01" + description = "Start date." } \ No newline at end of file