@@ -56,11 +56,11 @@ You can use the `azd init` command to create a local Azure Functions code projec
56
56
57
57
``` azd
58
58
azd init --template functions-quickstart-dotnet-azd
59
- cd FunctionHttp
59
+ cd http
60
60
```
61
61
[!INCLUDE [functions-quickstart-azd-env](../../includes/functions-quickstart-azd-env.md)]
62
62
63
- 3. Create a file named _local.settings.json_ in the app's root folder (`/FunctionHttp `), and add this JSON data to the file:
63
+ 3. Create a file named _local.settings.json_ in the app's root folder (`/http `), and add this JSON data to the file:
64
64
65
65
```json
66
66
{
@@ -84,13 +84,13 @@ You can use the `azd init` command to create a local Azure Functions code projec
84
84
85
85
[!INCLUDE [functions-quickstart-azd-env](../../includes/functions-quickstart-azd-env.md)]
86
86
87
- 3. Run this command in the app's root folder (`/ http`):
87
+ 3. Run this command in the app's root folder (`http`):
88
88
89
- ```command
89
+ ```console
90
90
func init --worker-runtime java
91
91
```
92
92
93
- This command restores the _local.settings.json_ file in the app's root folder (`/ http`), which is required when running locally.
93
+ This command restores the _local.settings.json_ file in the app's root folder (`http`), which is required when running locally.
94
94
::: zone-end
95
95
::: zone pivot="programming-language-javascript"
96
96
1. In your local terminal or command prompt, run this `azd init` command in an empty folder:
@@ -103,7 +103,7 @@ You can use the `azd init` command to create a local Azure Functions code projec
103
103
104
104
3. Run this command in the root folder:
105
105
106
- ```command
106
+ ```console
107
107
func init --worker-runtime javascript
108
108
```
109
109
@@ -119,13 +119,13 @@ You can use the `azd init` command to create a local Azure Functions code projec
119
119
120
120
[!INCLUDE [functions-quickstart-azd-env](../../includes/functions-quickstart-azd-env.md)]
121
121
122
- 3. Run this command in the app's root folder (`/ src`):
122
+ 3. Run this command in the app's root folder (`src`):
123
123
124
- ```command
124
+ ```console
125
125
func init --worker-runtime powershell
126
126
```
127
127
128
- This command restores the _local.settings.json_ file in the app's root folder (`/ src`), which is required when running locally.
128
+ This command restores the _local.settings.json_ file in the app's root folder (`src`), which is required when running locally.
129
129
::: zone-end
130
130
::: zone pivot="programming-language-typescript"
131
131
1. In your local terminal or command prompt, run this `azd init` command in an empty folder:
@@ -138,7 +138,7 @@ You can use the `azd init` command to create a local Azure Functions code projec
138
138
139
139
3. Run this command in the root folder:
140
140
141
- ```command
141
+ ```console
142
142
func init --worker-runtime typescript
143
143
```
144
144
@@ -193,7 +193,7 @@ py -m venv .venv
193
193
1 . Run this command from your project's root folder in a terminal or command prompt:
194
194
195
195
::: zone pivot="programming-language-csharp, programming-language-powershell,programming-language-python,programming-language-javascript"
196
- ``` command
196
+ ``` console
197
197
func start
198
198
```
199
199
::: zone-end
@@ -217,7 +217,7 @@ py -m venv .venv
217
217
218
218
1. From your HTTP test tool in a new terminal, send an HTTP POST request with a JSON payload like in this example:
219
219
220
- :::code language=" http" source=" ~/functions-quickstart-dotnet-azd/FunctionHttp /test.http" range=" 5-11" :::
220
+ :::code language="http" source="~/functions-quickstart-dotnet-azd/http /test.http" range="5-11" :::
221
221
222
222
You can find examples of both HTTP requests in the _test.http_ project file.
223
223
@@ -232,7 +232,7 @@ You can review the code that defines the two HTTP trigger function endpoints:
232
232
233
233
### [`httpget`](#tab/get)
234
234
::: zone pivot="programming-language-csharp"
235
- :::code language="csharp" source="~/functions-quickstart-dotnet-azd/FunctionHttp /httpGetFunction.cs" range="17-28" :::
235
+ :::code language="csharp" source="~/functions-quickstart-dotnet-azd/http /httpGetFunction.cs" range="17-28" :::
236
236
::: zone-end
237
237
::: zone pivot="programming-language-java"
238
238
:::code language="java" source="~/functions-quickstart-java-azd/http/src/main/java/com/contoso/Function.java" range="24-38" :::
@@ -256,7 +256,7 @@ This `run.ps1` file implements the function code:
256
256
### [`httppost`](#tab/post)
257
257
258
258
::: zone pivot="programming-language-csharp"
259
- :::code language="csharp" source="~/functions-quickstart-dotnet-azd/FunctionHttp /httpPostBodyFunction.cs" range="19-31":::
259
+ :::code language="csharp" source="~/functions-quickstart-dotnet-azd/http /httpPostBodyFunction.cs" range="19-31":::
260
260
::: zone-end
261
261
::: zone pivot="programming-language-java"
262
262
:::code language="java" source="~/functions-quickstart-java-azd/http/src/main/java/com/contoso/Function.java" range="44-71" :::
@@ -323,7 +323,7 @@ You can use the Core Tools to obtain the URL endpoints of your functions running
323
323
324
324
1. In your local terminal or command prompt, run this `func azure functionapp list-functions` command:
325
325
326
- ` ` ` command
326
+ ```console
327
327
func azure functionapp list-functions <APP_NAME> --show-keys
328
328
```
329
329
0 commit comments