Skip to content

Commit aa2af9f

Browse files
committed
Fix Java stuff
1 parent 67adca5 commit aa2af9f

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

articles/azure-functions/how-to-create-function-azure-cli.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ In this article, you use local command-line tools to create a function that resp
1313

1414
Completing this quickstart incurs a small cost of a few USD cents or less in your Azure account.
1515

16-
## Configure your local environment
17-
18-
Before you begin, you must have the following:
16+
## Prerequisites
1917

2018
+ 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).
2119

@@ -219,7 +217,7 @@ At this point, the Functions host is able to connect to the storage account secu
219217
::: zone pivot="programming-language-java"
220218
## Update the pom.xml file
221219

222-
After you've successfully created your function app in Azure, you must update the pom.xml file. In this way, Maven can deploy to your new app instead of trying to create new Azure resources.
220+
After you successfully created your function app in Azure, you must update the pom.xml file so that Maven can deploy to your new app. Otherwise, it creates new set of Azure resources.
223221

224222
1. In Azure Cloud Shell, use this [`az functionapp show`](/cli/azure/functionapp#az-functionapp-show) command to get the deployment container URL and ID of the new user-assigned managed identity:
225223

@@ -231,7 +229,7 @@ After you've successfully created your function app in Azure, you must update th
231229

232230
In this example, replace `<APP_NAME>` with the names of your function app.
233231

234-
1. In the project root directory, open the pom.xml file in a text editor, locate the `properties` element and make updates to these specific values:
232+
1. In the project root directory, open the pom.xml file in a text editor, locate the `properties` element, and make updates to these specific property values:
235233

236234
| Property name | Value |
237235
| ---- | ---- |
@@ -246,7 +244,7 @@ After you've successfully created your function app in Azure, you must update th
246244
<configuration>
247245
<appName>${functionAppName}</appName>
248246
<resourceGroup>AzureFunctionsQuickstart-rg</resourceGroup>
249-
<pricingTier>Flex Consumption</pricingTier>
247+
<pricingTier>Flex Consumption</pricingTier>
250248
<region>....</region>
251249
<runtime>
252250
<os>linux</os>
@@ -266,14 +264,14 @@ After you've successfully created your function app in Azure, you must update th
266264
</configuration>
267265
```
268266

269-
1. In the new `configuration` element, make these specific replacements of the elipses (`...`) values:
267+
1. In the new `configuration` element, make these specific replacements of the ellipses (`...`) values:
270268

271269
| Configuration | Value |
272270
| ---- | ---- |
273271
|`region` | The region code of your existing function app, such as `eastus`. |
274272
|`deploymentStorageAccount`| The name of your storage account. |
275-
|`deploymentStorageContainer`| The name of the deployment share, which comes after the `\` in the `containerUrl` value you just obtained. |
276-
|`userAssignedIdentityResourceId`| The fully-qualified ID of your managed identity, which you just obtained. |
273+
|`deploymentStorageContainer`| The name of the deployment share, which comes after the `\` in the `containerUrl` value you obtained. |
274+
|`userAssignedIdentityResourceId`| The fully qualified ID of your managed identity, which you obtained. |
277275

278276
1. Save your changes to the _pom.xml_ file.
279277

@@ -287,11 +285,7 @@ You can now use Maven to deploy your code project to your existing app.
287285
mvn clean package azure-functions:deploy
288286
```
289287

290-
## Invoke the function on Azure
291-
292-
Because your function uses an HTTP trigger and supports GET requests, you invoke it by making an HTTP request to its URL. It's easiest to do this in a browser.
293-
294-
1. Use this [`az functionapp function show`](/cli/azure/functionapp/function#az-functionapp-function-show) to get the URL for the `HttpExample` function endpoint:
288+
1. After your deployment succeeds, use this [`az functionapp function show`](/cli/azure/functionapp/function#az-functionapp-function-show) to get the URL of the remote `HttpExample` function endpoint:
295289

296290
```azurecli
297291
az functionapp function show --name <APP_NAME> --resource-group "AzureFunctionsQuickstart-rg" \
@@ -300,13 +294,19 @@ Because your function uses an HTTP trigger and supports GET requests, you invoke
300294

301295
In this example, replace `<APP_NAME>` with the names of your function app.
302296

303-
1. Copy and paste the returned endpoint URL in your browser address bar and run the function.
297+
1. Copy the returned endpoint URL, which you next use to invoke the function endpoint.
304298
::: zone-end
305-
::: zone pivot="programming-language-csharp,programming-language-javascript,programming-language-typescript,programming-language-powershell,programming-language-python"
299+
306300
## Invoke the function on Azure
307301

308-
Because your function uses an HTTP trigger and supports GET requests, you invoke it by making an HTTP request to its URL. It's easiest to do this in a browser. Copy the complete **Invoke URL** shown in the output of the publish command into a browser address bar. When you navigate to this URL, the browser should display similar output as when you ran the function locally.
302+
Because your function uses an HTTP trigger and supports GET requests, you invoke it by making an HTTP request to its URL. It's easiest to do execute a GET request in a browser.
303+
::: zone pivot="programming-language-csharp,programming-language-javascript,programming-language-typescript,programming-language-powershell,programming-language-python"
304+
Copy the complete **Invoke URL** shown in the output of the publish command into a browser address bar.
305+
::: zone-end
306+
::: zone pivot="programming-language-java"
307+
Paste the URL you copied into a browser address bar.
309308
::: zone-end
309+
When you navigate to this URL, the browser should display similar output as when you ran the function locally.
310310

311311
[!INCLUDE [functions-cleanup-resources-cli](../../includes/functions-cleanup-resources-cli.md)]
312312

0 commit comments

Comments
 (0)