From 0f97767bcf2a6891b3dabe2f49629b1569bb3a4b Mon Sep 17 00:00:00 2001 From: Steve Laing Date: Thu, 18 Jun 2026 16:38:40 +0100 Subject: [PATCH] Remove date segment in run command name Azure Arc remote machines are limited to 25 run commands. The command we currently issue when deploying has a date in the name and this uniqueness means we hit this threshold regularly. Run commands with non-unique names overwrite one another. For the purposes of deploying to a machine this is fine as the command contains the clean sha (PR number or version) and the machine name. --- scripts/bash/deploy_arc_ring.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/bash/deploy_arc_ring.sh b/scripts/bash/deploy_arc_ring.sh index 6375b49..0b27be8 100755 --- a/scripts/bash/deploy_arc_ring.sh +++ b/scripts/bash/deploy_arc_ring.sh @@ -100,8 +100,7 @@ SAMPLE_IMAGES_PATH=${BASE_PATH}/current/sample_images" # Use machine name + timestamp to ensure uniqueness across parallel submissions. CLEAN_TAG=$(echo "${RELEASE_TAG}" | tr '.' '-' | tr '/' '-') - DEPLOY_ID=$(date +%s) - RUN_CMD_NAME="deploy-mbsgw-${CLEAN_TAG}-${MACHINE}-${DEPLOY_ID}" + RUN_CMD_NAME="deploy-mbsgw-${CLEAN_TAG}-${MACHINE}" CMD_URL="https://management.azure.com/subscriptions/${SUB_ID}/resourceGroups/${ARC_RG}/providers/Microsoft.HybridCompute/machines/${MACHINE}/runCommands/${RUN_CMD_NAME}?api-version=2024-07-10"