File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -euo pipefail
4+
5+ . ./azure.env
6+
7+ # set Azure location to us-east unless it is set to something different already
8+ AZURE_STORAGE_ACCOUNT=" ${AZURE_STORAGE_ACCOUNT:- teamssecretnotifier001sa} "
9+
10+ az account set --subscription " ${AZURE_SUBSCRIPTION_ID} "
11+ az group create --name " ${AZURE_RESOURCE_GROUP} " --location " ${AZURE_LOCATION} "
12+ az storage account create --name " ${AZURE_STORAGE_ACCOUNT} " --location " ${AZURE_LOCATION} " --resource-group " ${AZURE_RESOURCE_GROUP} " --sku Standard_LRS
13+ 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} "
You can’t perform that action at this time.
0 commit comments