Skip to content

Commit cf9d3b1

Browse files
simonjjggailey777
authored andcommitted
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.
1 parent a73136e commit cf9d3b1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/azure-functions/create-first-function-cli-python.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ In Azure Functions, a function project is a container for one or more individual
136136
cd LocalFunctionProj
137137
```
138138

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.
140140

141141
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).
142142

@@ -165,7 +165,7 @@ In Azure Functions, a function project is a container for one or more individual
165165
cd LocalFunctionProj
166166
```
167167

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.
169169

170170
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.
171171

@@ -177,7 +177,7 @@ app = func.FunctionApp()
177177
@app.function_name(name="HttpTrigger1")
178178
@app.route(route="hello")
179179
def test_function(req: func.HttpRequest) -> func.HttpResponse:
180-
return func.HttpResponse("HttpTrigger1 function processed a request!")%
180+
return func.HttpResponse("HttpTrigger1 function processed a request!")
181181
```
182182
::: zone-end
183183

@@ -211,7 +211,7 @@ For more information, see [Azure Functions HTTP triggers and bindings](./functio
211211

212212
## Start the storage emulator
213213

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.
215215

216216
Use the following command to start the Azurite storage emulator:
217217

0 commit comments

Comments
 (0)