Skip to content

Commit

Permalink
Added "Owner" tag with user name to script that creates the Azure Fun…
Browse files Browse the repository at this point in the history
…ction and resources
  • Loading branch information
aegilops committed Mar 25, 2024
1 parent e4c7f5b commit eb463ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/create-function-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
AZURE_STORAGE_ACCOUNT="${AZURE_STORAGE_ACCOUNT:-slacksecretnotifier001sa}"

az account set --subscription "${AZURE_SUBSCRIPTION_ID}"
az group create --name "${AZURE_RESOURCE_GROUP}" --location "${AZURE_LOCATION}"
az storage account create --name "${AZURE_STORAGE_ACCOUNT}" --location "${AZURE_LOCATION}" --resource-group "${AZURE_RESOURCE_GROUP}" --sku Standard_LRS
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}"
az group create --name "${AZURE_RESOURCE_GROUP}" --location "${AZURE_LOCATION}" --tags Owner="$(id -un)"
az storage account create --name "${AZURE_STORAGE_ACCOUNT}" --location "${AZURE_LOCATION}" --resource-group "${AZURE_RESOURCE_GROUP}" --sku Standard_LRS --tags Owner="$(id -un)"
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 comments on commit eb463ff

Please sign in to comment.