From 8e1aff682efad0ce7268e0b198f0abe0b8f23dca Mon Sep 17 00:00:00 2001 From: anujmaheshwari1 Date: Tue, 9 Apr 2024 13:09:15 -0700 Subject: [PATCH] fix: change storage expiration hours to 4hours (#4263) Co-authored-by: anujmaheshwari1 --- vhdbuilder/packer/cleanup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vhdbuilder/packer/cleanup.sh b/vhdbuilder/packer/cleanup.sh index 0f9f7e71bf9..2669458ef88 100755 --- a/vhdbuilder/packer/cleanup.sh +++ b/vhdbuilder/packer/cleanup.sh @@ -185,7 +185,7 @@ if [[ "${MODE}" != "linuxVhdMode" ]] && [[ "${DRY_RUN}" == "True" ]]; then fi -STORAGE_ACCOUNT_EXPIRATION_IN_HOURS=12 +STORAGE_ACCOUNT_EXPIRATION_IN_HOURS=4 # convert to seconds so we can compare it against the "tags.now" property in the resource group metadata (( storageAccountExpirationSecs = ${STORAGE_ACCOUNT_EXPIRATION_IN_HOURS} * 60 * 60 )) # deadline = the "date +%s" representation of the oldest age we're willing to keep