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