Skip to content

Commit d7183d4

Browse files
Merge pull request #96 from microsoft/PSL-US-16594
fix: RG Deployment Name Format updated
2 parents b56d985 + 4cb550f commit d7183d4

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,9 @@ jobs:
7474
id: generate_rg_name
7575
run: |
7676
echo "Generating a unique resource group name..."
77-
TIMESTAMP=$(date +%Y%m%d%H%M)
78-
# Define the common part and add a "cps-" prefix
79-
COMMON_PART="automation"
80-
UNIQUE_RG_NAME="cps-${COMMON_PART}${TIMESTAMP}"
77+
ACCL_NAME="cpc" # Account name as specified
78+
SHORT_UUID=$(uuidgen | cut -d'-' -f1)
79+
UNIQUE_RG_NAME="arg-${ACCL_NAME}-${SHORT_UUID}"
8180
echo "RESOURCE_GROUP_NAME=${UNIQUE_RG_NAME}" >> $GITHUB_ENV
8281
echo "Generated Resource_GROUP_PREFIX: ${UNIQUE_RG_NAME}"
8382

0 commit comments

Comments
 (0)