From 9895aea21814bbccac18563c5a519232be8a5fe8 Mon Sep 17 00:00:00 2001 From: smerle33 Date: Wed, 11 Dec 2024 15:18:45 +0100 Subject: [PATCH] fix(GC/azure): change timeCreated to createdTime --- cleanup/azure.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cleanup/azure.sh b/cleanup/azure.sh index d172aae98..df3d3cf02 100755 --- a/cleanup/azure.sh +++ b/cleanup/azure.sh @@ -50,7 +50,7 @@ az account show >/dev/null || \ resource_group_name="${build_type}-packer-builds" ## Remove resources in the "Resource Group" older than the threshold -found_resource_ids="$(az resource list --resource-group="${resource_group_name}" | jq -r ".[] | select(.timeCreated < (\"${creation_date_threshold}\")) | .id")" +found_resource_ids="$(az resource list --resource-group="${resource_group_name}" | jq -r ".[] | select(.createdTime < (\"${creation_date_threshold}\")) | .id")" if [ -n "${found_resource_ids}" ] then