Skip to content

Commit 15c1bd2

Browse files
committed
bug fixes
1 parent fbc7f51 commit 15c1bd2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,19 +78,19 @@ In Azure Functions, your code project is an app that contains one or more indivi
7878
### [Bash](#tab/bash)
7979
8080
```bash
81-
mvn archetype:generate -DarchetypeGroupId=com.microsoft.azure -DarchetypeArtifactId=azure-functions-archetype -DjavaVersion=8
81+
mvn archetype:generate -DarchetypeGroupId=com.microsoft.azure -DarchetypeArtifactId=azure-functions-archetype -DjavaVersion=17
8282
```
8383
8484
### [PowerShell](#tab/powershell)
8585
8686
```powershell
87-
mvn archetype:generate "-DarchetypeGroupId=com.microsoft.azure" "-DarchetypeArtifactId=azure-functions-archetype" "-DjavaVersion=8"
87+
mvn archetype:generate "-DarchetypeGroupId=com.microsoft.azure" "-DarchetypeArtifactId=azure-functions-archetype" "-DjavaVersion=17"
8888
```
8989
9090
### [Cmd](#tab/cmd)
9191
9292
```cmd
93-
mvn archetype:generate "-DarchetypeGroupId=com.microsoft.azure" "-DarchetypeArtifactId=azure-functions-archetype" "-DjavaVersion=8"
93+
mvn archetype:generate "-DarchetypeGroupId=com.microsoft.azure" "-DarchetypeArtifactId=azure-functions-archetype" "-DjavaVersion=17"
9494
```
9595
9696
---
@@ -119,9 +119,10 @@ In Azure Functions, your code project is an app that contains one or more indivi
119119
cd fabrikam-functions
120120
```
121121

122+
You can review the template-generated code for your new HTTP trigger function in _Function.java_ in the _\src\main\java\com\fabrikam_ project directory.
122123
::: zone-end
123124
::: zone pivot="programming-language-csharp,programming-language-javascript,programming-language-typescript,programming-language-powershell,programming-language-python"
124-
2. Use this `func new` command to add a function to your project:
125+
2. Use this [`func new`](./functions-core-tools-reference.md#func-new) command to add a function to your project:
125126

126127
```console
127128
func new --name HttpExample --template "HTTP trigger" --authlevel "anonymous"
@@ -186,7 +187,7 @@ Verify your new function by running the project locally and calling the function
186187

187188
## Update application settings
188189

189-
To enable the Functions host to connect to the default storage account using shared secrets, you must replace the `AzureWebJobsStorage` connection string setting with a complex setting, prefixed with `AzureWebJobsStorage`, that uses the user-assigned managed identity to connect to the storage account.
190+
To enable the Functions host to connect to the default storage account using shared secrets, you must replace the `AzureWebJobsStorage` connection string setting with several settings that are prefixed with `AzureWebJobsStorage__`. These settings define a complex setting that your app uses to connect to storage and Application Insights with a user-assigned managed identity.
190191

191192
1. Use this script to get the client ID of the user-assigned managed identity and uses it to define managed identity connections to both storage and Application Insights:
192193
@@ -220,10 +221,9 @@ Because your function uses an HTTP trigger and supports GET requests, you invoke
220221

221222
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.
222223

223-
---
224-
224+
::: zone pivot="programming-language-csharp,programming-language-javascript,programming-language-typescript,programming-language-powershell,programming-language-java"
225225
[!INCLUDE [functions-streaming-logs-cli-qs](../../includes/functions-streaming-logs-cli-qs.md)]
226-
226+
::: zone-end
227227
[!INCLUDE [functions-cleanup-resources-cli](../../includes/functions-cleanup-resources-cli.md)]
228228

229229
## Next steps

0 commit comments

Comments
 (0)