You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: INSTALL.md
+5-16Lines changed: 5 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ To get this Azure Function working, you need to:
12
12
> [!NOTE]
13
13
> When working with the Azure CLI, remember to use `az login` to log in to Azure, and `az logout` first if you are having problems.
14
14
>
15
-
> To use the convenience scripts, set your Azure settings in a local `azure.env` file that they pick up.
15
+
> To use the convenience scripts, set your Azure settings in a local `azure.env` file that they pick up. You may need to change settings if you want to vary the region the Function is used in, or change its name to allow more than one to coexist in the same subscription.
16
16
17
17
## Creating a GitHub app
18
18
@@ -98,22 +98,11 @@ Fill in the details, and click on the "Review + create" button. Make sure you se
98
98
99
99
#### Creating the Functions App with the Azure CLI
100
100
101
-
It needs your subscription ID, a resource group name, a storage account name, a location, and a function app name.
101
+
It needs your subscription ID, a location, and a function app name to be set in `azure.env` in the repo directory.
102
102
103
-
> **TODO**: test this
103
+
Only the subscription ID is necessary - the rest have defaults: you may want to change the region or the name of the function.
104
104
105
-
```bash
106
-
AZURE_SUBSCRIPTION_ID=<subscription id>
107
-
AZURE_RESOURCE_GROUP=<resource group name>
108
-
AZURE_LOCATION=<location>
109
-
AZURE_STORAGE_ACCOUNT=<storage account name>
110
-
AZURE_FUNCTION_APP_NAME=<function app name>
111
-
112
-
az account set --subscription "${AZURE_SUBSCRIPTION_ID}"
113
-
az group create --name "${AZURE_RESOURCE_GROUP}" --location "${AZURE_LOCATION}"
You can use the convenience script `create-azure-function.sh`.
117
106
118
107
#### Creating the Functions App with the VSCode Azure Functions extension
119
108
@@ -150,7 +139,7 @@ You can sync your remote settings from the app you created to the local repo.
150
139
151
140
You can use the Azure Functions extension in VSCode. Right-click on the Function App in the Resources pane, and select "Download remote settings" from the context menu.
152
141
153
-
Alternatively, you can also use the `sync-settings-remote-to-local.sh` script, after you set `azure.env` appropriately.
142
+
Alternatively, you can also use the `sync-settings-remote-to-local.sh` script, after you set `azure.env` appropriately. This will save the settings to `remote.settings.json`, which you can copy to `local.settings.json`.
154
143
155
144
Then in your `local.settings.json` file these environment variables are defined like:
0 commit comments