Skip to content

Commit d473c9e

Browse files
committed
adding missing provision.ps1 file
1 parent bca192a commit d473c9e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

provision.ps1

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
param (
2+
# How to create a token here: https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/
3+
[string]$githubToken,
4+
[string]$resourceGroup,
5+
[string]$storageName,
6+
[string]$functionName
7+
)
8+
9+
# Creates a Resource group to hold our application
10+
az group create -l eastus -n $resourceGroup
11+
12+
# Storage account where Azure Functions will keep its data and logs
13+
az storage account create --sku Standard_LRS --location EastUS --kind Storage -g $resourceGroup -n $storageName.ToLower()
14+
15+
# Creates our Function Application
16+
az functionapp create -n $functionName -g $resourceGroup -s $storageName.ToLower() -c eastus
17+
18+
# Configures Functions Application Settings
19+
az functionapp config appsettings set -g $resourceGroup -n $functionName --settings GitHubToken=$githubToken

0 commit comments

Comments
 (0)