Skip to content

Commit 9ecc284

Browse files
committed
Fix code refs
1 parent 23fdccb commit 9ecc284

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ You can use the `azd init` command to create a local Azure Functions code projec
5656

5757
```azd
5858
azd init --template functions-quickstart-dotnet-azd
59-
cd FunctionHttp
59+
cd http
6060
```
6161
[!INCLUDE [functions-quickstart-azd-env](../../includes/functions-quickstart-azd-env.md)]
6262
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:
6464
6565
```json
6666
{
@@ -84,13 +84,13 @@ You can use the `azd init` command to create a local Azure Functions code projec
8484
8585
[!INCLUDE [functions-quickstart-azd-env](../../includes/functions-quickstart-azd-env.md)]
8686
87-
3. Run this command in the app's root folder (`/http`):
87+
3. Run this command in the app's root folder (`http`):
8888
89-
```command
89+
```console
9090
func init --worker-runtime java
9191
```
9292
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.
9494
::: zone-end
9595
::: zone pivot="programming-language-javascript"
9696
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
103103
104104
3. Run this command in the root folder:
105105
106-
```command
106+
```console
107107
func init --worker-runtime javascript
108108
```
109109
@@ -119,13 +119,13 @@ You can use the `azd init` command to create a local Azure Functions code projec
119119
120120
[!INCLUDE [functions-quickstart-azd-env](../../includes/functions-quickstart-azd-env.md)]
121121
122-
3. Run this command in the app's root folder (`/src`):
122+
3. Run this command in the app's root folder (`src`):
123123
124-
```command
124+
```console
125125
func init --worker-runtime powershell
126126
```
127127
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.
129129
::: zone-end
130130
::: zone pivot="programming-language-typescript"
131131
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
138138
139139
3. Run this command in the root folder:
140140
141-
```command
141+
```console
142142
func init --worker-runtime typescript
143143
```
144144
@@ -193,7 +193,7 @@ py -m venv .venv
193193
1. Run this command from your project's root folder in a terminal or command prompt:
194194

195195
::: zone pivot="programming-language-csharp, programming-language-powershell,programming-language-python,programming-language-javascript"
196-
```command
196+
```console
197197
func start
198198
```
199199
::: zone-end
@@ -217,7 +217,7 @@ py -m venv .venv
217217

218218
1. From your HTTP test tool in a new terminal, send an HTTP POST request with a JSON payload like in this example:
219219

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" :::
221221

222222
You can find examples of both HTTP requests in the _test.http_ project file.
223223

@@ -232,7 +232,7 @@ You can review the code that defines the two HTTP trigger function endpoints:
232232
233233
### [`httpget`](#tab/get)
234234
::: 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" :::
236236
::: zone-end
237237
::: zone pivot="programming-language-java"
238238
:::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:
256256
### [`httppost`](#tab/post)
257257
258258
::: 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":::
260260
::: zone-end
261261
::: zone pivot="programming-language-java"
262262
:::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
323323

324324
1. In your local terminal or command prompt, run this `func azure functionapp list-functions` command:
325325
326-
```command
326+
```console
327327
func azure functionapp list-functions <APP_NAME> --show-keys
328328
```
329329

0 commit comments

Comments
 (0)