Skip to content

Commit 6a9a272

Browse files
committed
link and additional make change/redeploy step to quickstart
1 parent 4441e4e commit 6a9a272

File tree

2 files changed

+32
-4
lines changed

2 files changed

+32
-4
lines changed

articles/azure-functions/functions-create-first-java-maven.md

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,37 @@ curl -w '\n' -d AzureFunctionsTest https://fabrikam-functions-20170920120101928.
171171
Hello, AzureFunctionsTest
172172
```
173173

174+
## Make changes and redeploy
175+
176+
Edit the `src/main.../Function.java` source file in the generated project to alter the text returned by your Function app. Change this line:
177+
178+
```java
179+
return request.createResponse(200, "Hello, " + name);
180+
```
181+
182+
To the following:
183+
184+
```java
185+
return request.createResponse(200, "Hi, " + name);
186+
```
187+
188+
Save the changes and redeploy by running `azure-functions:deploy` from the terminal as before. The function app will be updated and this request:
189+
190+
```bash
191+
curl -w '\n' -d AzureFunctionsTest https://fabrikam-functions-20170920120101928.azurewebsites.net/api/HttpTrigger-Java
192+
```
193+
194+
Will have updated output:
195+
196+
```Output
197+
Hi, AzureFunctionsTest
198+
```
199+
174200
## Next steps
175201

176202
You've created a Java function app with a simple HTTP trigger and deployed it to Azure Functions.
177203

178204
- Review the [Java Functions developer guide](functions-reference-java.md) for more information on developing Java functions.
179205
- Add additional functions with different triggers to your project using the `azure-functions:add` Maven target.
180-
- Debug functions locally with Visual Studio Code. With the [Java extension pack](https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack) installed and with your Functions project open in Visual Studio Code, [attach the debugger](https://code.visualstudio.com/Docs/editor/debugging#_launch-configurations) to port 5005. Then set a breakpoint in the editor and trigger your function while it's running locally:
181-
![Debug functions in Visual Studio Code](media/functions-create-java-maven/vscode-debug.png)
182-
- Debug functions remotely with Visual Studio Code. Check the [Writing serverless Java Applications](https://code.visualstudio.com/docs/java/java-serverless#_remote-debug-functions-running-in-the-cloud) documentation for instructions.
206+
- Write and debug functions locally with [Visual Studio Code](https://code.visualstudio.com/docs/java/java-azurefunctions), [IntelliJ](functions-create-maven-intellij.md), and [Eclipse](functions-create-maven-eclipse.md).
207+
- Debug functions deployed in Azure with Visual Studio Code. See the Visual Studio Code [serverless Java applications](https://code.visualstudio.com/docs/java/java-serverless#_remote-debug-functions-running-in-the-cloud) documentation for instructions.

articles/azure-functions/functions-reference-java.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,12 @@ Each key / value mapping in the `values` map will be made available at runtime a
283283
With your code now depending on these environment variables, you can sign in to the Azure portal to set the same key / value pairs in your function app settings, so that your code functions equivalently when testing locally and when deployed to Azure.
284284

285285
## Next steps
286-
For more information, see the following resources:
286+
287+
For more information about Azure Function Java development, see the following resources:
287288

288289
* [Best practices for Azure Functions](functions-best-practices.md)
289290
* [Azure Functions developer reference](functions-reference.md)
290291
* [Azure Functions triggers and bindings](functions-triggers-bindings.md)
292+
- Local development and debug with [Visual Studio Code](https://code.visualstudio.com/docs/java/java-azurefunctions), [IntelliJ](functions-create-maven-intellij.md), and [Eclipse](functions-create-maven-eclipse.md).
291293
* [Remote Debug Java Azure Functions with Visual Studio Code](https://code.visualstudio.com/docs/java/java-serverless#_remote-debug-functions-running-in-the-cloud)
294+
* [Maven plugin for Azure Functions](https://github.com/Microsoft/azure-maven-plugins/blob/develop/azure-functions-maven-plugin/README.md) - Streamline function creation through the `azure-functions:add` goal and prepare a staging directory for [ZIP file deployment](deployment-zip-push.md).

0 commit comments

Comments
 (0)