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
Fixing tutorial to include setting to use azurite so it works & minor cleanup
- func version 4.0.4895 doesn't seem to add the right settings to local.settings.json to use azurite emulator. Tutorial will fail without this setting.
- fixing links and dangling percent sign in code snippet.
Copy file name to clipboardExpand all lines: articles/azure-functions/create-first-function-cli-python.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -136,7 +136,7 @@ In Azure Functions, a function project is a container for one or more individual
136
136
cd LocalFunctionProj
137
137
```
138
138
139
-
This folder contains various files for the project, including configuration files named *[local.settings.json]*(functions-develop-local.md#local-settings-file) and *[host.json]*(functions-host-json.md). Because *local.settings.json* can contain secrets downloaded from Azure, the file is excluded from source control by default in the *.gitignore* file.
139
+
This folder contains various files for the project, including configuration files named [*local.settings.json*](functions-develop-local.md#local-settings-file) and [*host.json*](functions-host-json.md). Because *local.settings.json* can contain secrets downloaded from Azure, the file is excluded from source control by default in the *.gitignore* file.
140
140
141
141
1. Add a function to your project by using the following command, where the `--name` argument is the unique name of your function (HttpExample) and the `--template` argument specifies the function's trigger (HTTP).
142
142
@@ -165,7 +165,7 @@ In Azure Functions, a function project is a container for one or more individual
165
165
cd LocalFunctionProj
166
166
```
167
167
168
-
This folder contains various files for the project, including configuration files named *[local.settings.json]*(functions-develop-local.md#local-settings-file) and *[host.json]*(functions-host-json.md). Because *local.settings.json* can contain secrets downloaded from Azure, the file is excluded from source control by default in the *.gitignore* file.
168
+
This folder contains various files for the project, including configuration files named [*local.settings.json*](functions-develop-local.md#local-settings-file) and [*host.json*](functions-host-json.md). Because *local.settings.json* can contain secrets downloaded from Azure, the file is excluded from source control by default in the *.gitignore* file.
169
169
170
170
1. The file `function_app.py` can include all functions within your project. To start with, there's already an HTTP function stored in the file.
return func.HttpResponse("HttpTrigger1 function processed a request!")%
180
+
return func.HttpResponse("HttpTrigger1 function processed a request!")
181
181
```
182
182
::: zone-end
183
183
@@ -211,7 +211,7 @@ For more information, see [Azure Functions HTTP triggers and bindings](./functio
211
211
212
212
## Start the storage emulator
213
213
214
-
Before running the function locally, you must start the local Azurite storage emulator. You can skip this step if the `AzureWebJobsStorage` setting in the local.settings.json file is set to the connection string for an Azure Storage account.
214
+
You can skip this step if the `AzureWebJobsStorage` setting in the *local.settings.json* file is set to the connection string for an Azure Storage account. Before running the function locally, you must start the local Azurite storage emulator. Make sure to add `"AzureWebJobsStorage": "UseDevelopmentStorage=true"` to your *local.settings.json* in order to use the storage emulator.
215
215
216
216
Use the following command to start the Azurite storage emulator:
0 commit comments