Skip to content

Commit f439f30

Browse files
committed
Fix acrolinx issues in Functions Node.js articles
1 parent 338bc51 commit f439f30

5 files changed

+57
-61
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ In this article, you use command-line tools to create a JavaScript function that
1414

1515
[!INCLUDE [functions-nodejs-model-pivot-description](../../includes/functions-nodejs-model-pivot-description.md)]
1616

17-
Note that completion will incur a small cost of a few USD cents or less in your Azure account.
17+
Completion of this quickstart incurs a small cost of a few USD cents or less in your Azure account.
1818

19-
There is also a [Visual Studio Code-based version](create-first-function-vs-code-node.md) of this article.
19+
There's also a [Visual Studio Code-based version](create-first-function-vs-code-node.md) of this article.
2020

2121
## Configure your local environment
2222

23-
Before you begin, you must have the following:
23+
Before you begin, you must have the following prerequisites:
2424

2525
+ An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio).
2626

@@ -48,7 +48,7 @@ Before you begin, you must have the following:
4848

4949
### Prerequisite check
5050

51-
Verify your prerequisites, which depend on whether you are using Azure CLI or Azure PowerShell for creating Azure resources:
51+
Verify your prerequisites, which depend on whether you're using Azure CLI or Azure PowerShell for creating Azure resources:
5252

5353
# [Azure CLI](#tab/azure-cli)
5454

@@ -137,7 +137,7 @@ Each binding requires a direction, a type, and a unique name. The HTTP trigger h
137137
```console
138138
func init LocalFunctionProj --model V4
139139
```
140-
You are then prompted to choose a worker runtime and a language - choose Node for the first and JavaScript for the second.
140+
You're then prompted to choose a worker runtime and a language - choose Node for the first and JavaScript for the second.
141141

142142
2. Navigate into the project folder:
143143

@@ -153,7 +153,7 @@ Each binding requires a direction, a type, and a unique name. The HTTP trigger h
153153
func new
154154
```
155155

156-
Choose the template for "HTTP trigger". You can keep the default name (*httpTrigger*) or give it a new name (*HttpExample*). Your function name must be unique, or you'll be asked to confirm if your intention is to replace an existing function.
156+
Choose the template for "HTTP trigger". You can keep the default name (*httpTrigger*) or give it a new name (*HttpExample*). Your function name must be unique, or you're asked to confirm if your intention is to replace an existing function.
157157

158158
You can find the function you added in the *src/functions* directory.
159159

@@ -187,21 +187,21 @@ Each binding requires a direction, a type, and a unique name. The HTTP trigger h
187187
az functionapp create --resource-group AzureFunctionsQuickstart-rg --consumption-plan-location <REGION> --runtime node --runtime-version 18 --functions-version 4 --name <APP_NAME> --storage-account <STORAGE_NAME>
188188
```
189189

190-
The [az functionapp create](/cli/azure/functionapp#az-functionapp-create) command creates the function app in Azure. It is recommended that you use the latest version of Node.js, which is currently 18. You can specify the version by setting `--runtime-version` to `18`.
190+
The [az functionapp create](/cli/azure/functionapp#az-functionapp-create) command creates the function app in Azure. It's recommended that you use the latest version of Node.js, which is currently 18. You can specify the version by setting `--runtime-version` to `18`.
191191

192192
# [Azure PowerShell](#tab/azure-powershell)
193193

194194
```azurepowershell
195195
New-AzFunctionApp -Name <APP_NAME> -ResourceGroupName AzureFunctionsQuickstart-rg -StorageAccount <STORAGE_NAME> -Runtime node -RuntimeVersion 18 -FunctionsVersion 4 -Location <REGION>
196196
```
197197

198-
The [New-AzFunctionApp](/powershell/module/az.functions/new-azfunctionapp) cmdlet creates the function app in Azure. It is recommended that you use the latest version of Node.js, which is currently 18. You can specify the version by setting `--runtime-version` to `18`.
198+
The [New-AzFunctionApp](/powershell/module/az.functions/new-azfunctionapp) cmdlet creates the function app in Azure. It's recommended that you use the latest version of Node.js, which is currently 18. You can specify the version by setting `--runtime-version` to `18`.
199199

200200
---
201201

202202
In the previous example, replace `<STORAGE_NAME>` with the name of the account you used in the previous step, and replace `<APP_NAME>` with a globally unique name appropriate to you. The `<APP_NAME>` is also the default DNS domain for the function app.
203203

204-
This command creates a function app running in your specified language runtime under the [Azure Functions Consumption Plan](consumption-plan.md), which is free for the amount of usage you incur here. The command also provisions an associated Azure Application Insights instance in the same resource group, with which you can monitor your function app and view logs. For more information, see [Monitor Azure Functions](functions-monitoring.md). The instance incurs no costs until you activate it.
204+
This command creates a function app running in your specified language runtime under the [Azure Functions Consumption Plan](consumption-plan.md), which is free for the amount of usage you incur here. The command also creates an associated Azure Application Insights instance in the same resource group, with which you can monitor your function app and view logs. For more information, see [Monitor Azure Functions](functions-monitoring.md). The instance incurs no costs until you activate it.
205205

206206
::: zone pivot="nodejs-model-v4"
207207
## Update app settings

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ In this article, you use command-line tools to create a TypeScript function that
1414

1515
[!INCLUDE [functions-nodejs-model-pivot-description](../../includes/functions-nodejs-model-pivot-description.md)]
1616

17-
Note that completion will incur a small cost of a few USD cents or less in your Azure account.
17+
Completion of this quickstart incurs a small cost of a few USD cents or less in your Azure account.
1818

1919
There's also a [Visual Studio Code-based version](create-first-function-vs-code-typescript.md) of this article.
2020

2121
## Configure your local environment
2222

23-
Before you begin, you must have the following:
23+
Before you begin, you must have the following prerequisites:
2424

2525
+ An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio).
2626

@@ -153,7 +153,7 @@ Each binding requires a direction, a type, and a unique name. The HTTP trigger h
153153
func new
154154
```
155155

156-
Choose the template for "HTTP trigger". You can keep the default name (*httpTrigger*) or give it a new name (*HttpExample*). Your function name must be unique, or you'll be asked to confirm if your intention is to replace an existing function.
156+
Choose the template for "HTTP trigger". You can keep the default name (*httpTrigger*) or give it a new name (*HttpExample*). Your function name must be unique, or you're asked to confirm if your intention is to replace an existing function.
157157

158158
You can find the function you added in the *src/functions* directory.
159159

@@ -191,20 +191,20 @@ Each binding requires a direction, a type, and a unique name. The HTTP trigger h
191191
```
192192
::: zone-end
193193

194-
Toward the end of the output, the following should appear:
194+
Toward the end of the output, the following logs should appear:
195195

196196
![Screenshot of terminal window output when running function locally.](./media/functions-create-first-azure-function-azure-cli/functions-test-local-terminal.png)
197197

198198
>[!NOTE]
199-
> If HttpExample doesn't appear as shown below, you likely started the host from outside the root folder of the project. In that case, use **Ctrl**+**C** to stop the host, navigate to the project's root folder, and run the previous command again.
199+
> If HttpExample doesn't appear as shown in the logs, you likely started the host from outside the root folder of the project. In that case, use <kbd>Ctrl</kbd>+<kbd>c</kbd> to stop the host, navigate to the project's root folder, and run the previous command again.
200200

201201
1. Copy the URL of your `HttpExample` function from this output to a browser and append the query string `?name=<your-name>`, making the full URL like `http://localhost:7071/api/HttpExample?name=Functions`. The browser should display a message like `Hello Functions`:
202202

203203
![Result of the function run locally in the browser](./media/functions-create-first-azure-function-azure-cli/function-test-local-browser.png)
204204

205205
The terminal in which you started your project also shows log output as you make requests.
206206

207-
1. When you're ready, use **Ctrl**+**C** and choose `y` to stop the functions host.
207+
1. When you're ready, use <kbd>Ctrl</kbd>+<kbd>c</kbd> and choose <kbd>y</kbd> to stop the functions host.
208208

209209
[!INCLUDE [functions-create-azure-resources-cli](../../includes/functions-create-azure-resources-cli.md)]
210210

@@ -230,7 +230,7 @@ Each binding requires a direction, a type, and a unique name. The HTTP trigger h
230230

231231
In the previous example, replace `<STORAGE_NAME>` with the name of the account you used in the previous step, and replace `<APP_NAME>` with a globally unique name appropriate to you. The `<APP_NAME>` is also the default DNS domain for the function app.
232232

233-
This command creates a function app running in your specified language runtime under the [Azure Functions Consumption Plan](consumption-plan.md), which is free for the amount of usage you incur here. The command also provisions an associated Azure Application Insights instance in the same resource group, with which you can monitor your function app and view logs. For more information, see [Monitor Azure Functions](functions-monitoring.md). The instance incurs no costs until you activate it.
233+
This command creates a function app running in your specified language runtime under the [Azure Functions Consumption Plan](consumption-plan.md), which is free for the amount of usage you incur here. The command also creates an associated Azure Application Insights instance in the same resource group, with which you can monitor your function app and view logs. For more information, see [Monitor Azure Functions](functions-monitoring.md). The instance incurs no costs until you activate it.
234234

235235
::: zone pivot="nodejs-model-v4"
236236
## Update app settings
@@ -264,7 +264,7 @@ Before you use Core Tools to deploy your project to Azure, you create a producti
264264
npm run build
265265
```
266266

267-
1. With the necessary resources in place, you're now ready to deploy your local functions project to the function app in Azure by using the [func azure functionapp publish](functions-run-local.md#project-file-deployment) command. In the following example, replace `<APP_NAME>` with the name of your app.
267+
1. With the necessary resources in place, you're now ready to deploy your local functions project to the function app in Azure by using the [publish](functions-run-local.md#project-file-deployment) command. In the following example, replace `<APP_NAME>` with the name of your app.
268268

269269
```console
270270
func azure functionapp publish <APP_NAME>

articles/azure-functions/create-first-function-vs-code-node.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Use Visual Studio Code to create a JavaScript function that responds to HTTP req
1818

1919
[!INCLUDE [functions-nodejs-model-pivot-description](../../includes/functions-nodejs-model-pivot-description.md)]
2020

21-
Note that completion will incur a small cost of a few USD cents or less in your Azure account.
21+
Completion of this quickstart incurs a small cost of a few USD cents or less in your Azure account.
2222

2323
There's also a [CLI-based version](create-first-function-cli-node.md) of this article.
2424

@@ -35,7 +35,7 @@ Before you get started, make sure you have the following requirements in place:
3535

3636
## <a name="create-an-azure-functions-project"></a>Create your local project
3737

38-
In this section, you use Visual Studio Code to create a local Azure Functions project in JavaScript. Later in this article, you'll publish your function code to Azure.
38+
In this section, you use Visual Studio Code to create a local Azure Functions project in JavaScript. Later in this article, you publish your function code to Azure.
3939

4040
1. Choose the Azure icon in the Activity bar. Then in the **Workspace (local)** area, select the **+** button, choose **Create Function** in the dropdown. When prompted, choose **Create new project**.
4141

@@ -150,7 +150,7 @@ To enable your V4 programming model app to run in Azure, you need to add a new a
150150
```
151151
1. [Rerun the function](#run-the-function-locally) app locally.
152152

153-
1. In the prompt **Enter request body** change the request message body to { "name": "Tom","sport":"basketball" }. Press Enter to send this request message to your function.
153+
1. In the prompt **Enter request body**, change the request message body to { "name": "Tom","sport":"basketball" }. Press Enter to send this request message to your function.
154154

155155
1. View the response in the notification:
156156

@@ -168,7 +168,7 @@ To enable your V4 programming model app to run in Azure, you need to add a new a
168168

169169
## Troubleshooting
170170

171-
Use the table below to resolve the most common issues encountered when using this quickstart.
171+
Use the following table to resolve the most common issues encountered when using this quickstart.
172172

173173
|Problem|Solution|
174174
|--|--|

articles/azure-functions/create-first-function-vs-code-typescript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ In this article, you use Visual Studio Code to create a TypeScript function that
1414

1515
[!INCLUDE [functions-nodejs-model-pivot-description](../../includes/functions-nodejs-model-pivot-description.md)]
1616

17-
Note that completion will incur a small cost of a few USD cents or less in your Azure account.
17+
Completion of this quickstart incurs a small cost of a few USD cents or less in your Azure account.
1818

1919
There's also a [CLI-based version](create-first-function-cli-typescript.md) of this article.
2020

@@ -46,7 +46,7 @@ Before you get started, make sure you have the following requirements in place:
4646

4747
## <a name="create-an-azure-functions-project"></a>Create your local project
4848

49-
In this section, you use Visual Studio Code to create a local Azure Functions project in TypeScript. Later in this article, you'll publish your function code to Azure.
49+
In this section, you use Visual Studio Code to create a local Azure Functions project in TypeScript. Later in this article, you publish your function code to Azure.
5050

5151
1. Choose the Azure icon in the Activity bar. Then in the **Workspace (local)** area, select the **+** button, choose **Create Function** in the dropdown. When prompted, choose **Create new project**.
5252

0 commit comments

Comments
 (0)