Skip to content

Commit 0f97767

Browse files
committed
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.
1 parent 5b14e3c commit 0f97767

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

scripts/bash/deploy_arc_ring.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ SAMPLE_IMAGES_PATH=${BASE_PATH}/current/sample_images"
100100

101101
# Use machine name + timestamp to ensure uniqueness across parallel submissions.
102102
CLEAN_TAG=$(echo "${RELEASE_TAG}" | tr '.' '-' | tr '/' '-')
103-
DEPLOY_ID=$(date +%s)
104-
RUN_CMD_NAME="deploy-mbsgw-${CLEAN_TAG}-${MACHINE}-${DEPLOY_ID}"
103+
RUN_CMD_NAME="deploy-mbsgw-${CLEAN_TAG}-${MACHINE}"
105104

106105
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"
107106

0 commit comments

Comments
 (0)