File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments