You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-create-first-java-gradle.md
+13-11Lines changed: 13 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ azurefunctions {
55
55
Open the new Function.java file from the *src/main/java* path in a text editor and review the generated code. This code is an [HTTP triggered](functions-bindings-http-webhook.md) function that echoes the body of the request.
56
56
57
57
> [!div class="nextstepaction"]
58
-
> [I ran into an issue](https://www.research.net/r/javae2e?tutorial=functions-maven-quickstart&step=generate-project)
58
+
> [I ran into an issue](https://www.research.net/r/javae2e?tutorial=functions-create-first-java-gradle&step=generate-project)
The [function key](functions-bindings-http-webhook-trigger.md#authorization-keys) isn't required when running locally.
94
+
> [!NOTE]
95
+
> If you set authLevel to `FUNCTION` or `ADMIN`, the [function key](functions-bindings-http-webhook-trigger.md#authorization-keys) isn't required when running locally.
96
+
95
97
Use `Ctrl+C` in the terminal to stop the function code.
96
98
97
99
> [!div class="nextstepaction"]
98
-
> [I ran into an issue](https://www.research.net/r/javae2e?tutorial=functions-maven-quickstart&step=local-run)
100
+
> [I ran into an issue](https://www.research.net/r/javae2e?tutorial=functions-create-first-java-gradle&step=local-run)
99
101
100
102
## Deploy the function to Azure
101
103
@@ -123,20 +125,20 @@ This creates the following resources in Azure, based on the values in the build.
123
125
124
126
The deployment also packages the project files and deploys them to the new function app using [zip deployment](functions-deployment-technologies.md#zip-deploy), with run-from-package mode enabled.
125
127
126
-
Because the HTTP trigger we published uses `authLevel = AuthorizationLevel.FUNCTION`, you need to get the function key to call the function endpoint over HTTP. The easiest way to get the function key is from the [Azure portal].
128
+
The authLevel for HTTP Trigger in sample project is `ANONYMOUS`, which will skip the authentication. However, if you use other authLevel like `FUNCTION` or `ADMIN`, you need to get the function key to call the function endpoint over HTTP. The easiest way to get the function key is from the [Azure portal].
127
129
128
130
> [!div class="nextstepaction"]
129
-
> [I ran into an issue](https://www.research.net/r/javae2e?tutorial=functions-maven-quickstart&step=deploy)
131
+
> [I ran into an issue](https://www.research.net/r/javae2e?tutorial=functions-create-first-java-gradle&step=deploy)
130
132
131
133
## Get the HTTP trigger URL
132
134
133
135
You can get the URL required to trigger your function, with the function key, from the Azure portal.
134
136
135
137
1. Browse to the [Azure portal], sign in, type the _appName_ of your function app into **Search** at the top of the page, and press enter.
136
138
137
-
1. In your function app, expand**Functions (Read Only)**, choose your function, then select**</> Get function URL** at the top right.
139
+
1. In your function app, select**Functions**, choose your function, then click**</> Get Function Url** at the top right.
138
140
139
-

141
+
:::image type="content" source="./media/functions-create-first-java-gradle/get-function-url-portal.png" alt-text="Copy the function URL from the Azure portal":::
140
142
141
143
1. Choose **default (Function key)** and select **Copy**.
142
144
@@ -147,17 +149,17 @@ You can now use the copied URL to access your function.
147
149
To verify the function app running on Azure using `cURL`, replace the URL from the sample below with the URL that you copied from the portal.
0 commit comments