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