Skip to content

Commit eb463ff

Browse files
committed
Added "Owner" tag with user name to script that creates the Azure Function and resources
1 parent e4c7f5b commit eb463ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/create-function-app.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
1010
AZURE_STORAGE_ACCOUNT="${AZURE_STORAGE_ACCOUNT:-slacksecretnotifier001sa}"
1111

1212
az account set --subscription "${AZURE_SUBSCRIPTION_ID}"
13-
az group create --name "${AZURE_RESOURCE_GROUP}" --location "${AZURE_LOCATION}"
14-
az storage account create --name "${AZURE_STORAGE_ACCOUNT}" --location "${AZURE_LOCATION}" --resource-group "${AZURE_RESOURCE_GROUP}" --sku Standard_LRS
15-
az functionapp create --resource-group "${AZURE_RESOURCE_GROUP}" --consumption-plan-location "${AZURE_LOCATION}" --runtime node --runtime-version 20 --functions-version 4 --name "${AZURE_FUNCTION_APP_NAME}" --storage-account "${AZURE_STORAGE_ACCOUNT}"
13+
az group create --name "${AZURE_RESOURCE_GROUP}" --location "${AZURE_LOCATION}" --tags Owner="$(id -un)"
14+
az storage account create --name "${AZURE_STORAGE_ACCOUNT}" --location "${AZURE_LOCATION}" --resource-group "${AZURE_RESOURCE_GROUP}" --sku Standard_LRS --tags Owner="$(id -un)"
15+
az functionapp create --resource-group "${AZURE_RESOURCE_GROUP}" --consumption-plan-location "${AZURE_LOCATION}" --runtime node --runtime-version 20 --functions-version 4 --name "${AZURE_FUNCTION_APP_NAME}" --storage-account "${AZURE_STORAGE_ACCOUNT}" --tags Owner="$(id -un)"

0 commit comments

Comments
 (0)