Skip to content

Commit 62cde94

Browse files
Added Tag while creating RG
1 parent b421fc9 commit 62cde94

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/azure-dev.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ env:
3131
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
3232
AZURE_LOCATION: 'westus3'
3333
PYTHONIOENCODING: utf-8
34+
RG_TAGS: ${{ vars.RG_TAGS }}
3435

3536
jobs:
3637
build:
@@ -76,7 +77,7 @@ jobs:
7677
rg_exists=$(az group exists --name $RESOURCE_GROUP_NAME)
7778
if [ "$rg_exists" = "false" ]; then
7879
echo "📦 Resource group does not exist. Creating new resource group '$RESOURCE_GROUP_NAME' in location '$AZURE_LOCATION'..."
79-
az group create --name $RESOURCE_GROUP_NAME --location $AZURE_LOCATION || { echo "❌ Error creating resource group"; exit 1; }
80+
az group create --name $RESOURCE_GROUP_NAME --location $AZURE_LOCATION --tags ${{ env.RG_TAGS }} || { echo "❌ Error creating resource group"; exit 1; }
8081
echo "✅ Resource group '$RESOURCE_GROUP_NAME' created successfully."
8182
else
8283
echo "✅ Resource group '$RESOURCE_GROUP_NAME' already exists. Deploying to existing resource group."

0 commit comments

Comments
 (0)