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-azure-function-azure-cli.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,14 +97,14 @@ Provide the following values when prompted:
97
97
98
98
| Prompt | Value | Description |
99
99
| ------ | ----- | ----------- |
100
-
|**groupId**|`com.fabrikam`| A value that uniquely identifies your project across all projects, following the [package naming rules](https://docs.oracle.com/javase/specs/jls/se6/html/packages.html#7.7) for Java. |
101
-
|**artifactId**|`fabrikam-functions`| A value that is the name of the jar, without a version number. |
100
+
|**groupId**|`com.functions`| A value that uniquely identifies your project across all projects, following the [package naming rules](https://docs.oracle.com/javase/specs/jls/se6/html/packages.html#7.7) for Java. |
101
+
|**artifactId**|`azure-functions-sample`| A value that is the name of the jar, without a version number. |
102
102
|**version**|`1.0-SNAPSHOT`| Choose the default value. |
103
-
|**package**|`com.fabrikam.functions`| A value that is the Java package for the generated function code. Use the default. |
103
+
|**package**|`com.functions`| A value that is the Java package for the generated function code. Use the default. |
104
104
105
105
Type `Y` or press Enter to confirm.
106
106
107
-
Maven creates the project files in a new folder with a name of _artifactId_, which in this example is `fabrikam-functions`.
107
+
Maven creates the project files in a new folder with a name of _artifactId_, which in this example is `azure-functions-sample`.
108
108
::: zone-end
109
109
Navigate into the project folder:
110
110
@@ -115,7 +115,7 @@ cd LocalFunctionProj
115
115
::: zone-end
116
116
::: zone pivot="programming-language-java"
117
117
```
118
-
cd fabrikam-functions
118
+
cd azure-functions-sample
119
119
```
120
120
::: zone-end
121
121
This folder contains various files for the project, including configurations files named [local.settings.json](functions-run-local.md#local-settings-file) and [host.json](functions-host-json.md). Because *local.settings.json* can contain secrets downloaded from Azure, the file is excluded from source control by default in the *.gitignore* file.
@@ -140,15 +140,15 @@ The return object is an [ActionResult](/dotnet/api/microsoft.aspnetcore.mvc.acti
140
140
#### Function.java
141
141
*Function.java* contains a `run` method that receives request data in the `request` variable is an [HttpRequestMessage](/java/api/com.microsoft.azure.functions.httprequestmessage) that's decorated with the [HttpTrigger](/java/api/com.microsoft.azure.functions.annotation.httptrigger) annotation, which defines the trigger behavior.
The response message is generated by the [HttpResponseMessage.Builder](/java/api/com.microsoft.azure.functions.httpresponsemessage.builder) API.
146
146
147
147
#### pom.xml
148
148
149
149
Settings for the Azure resources created to host your app are defined in the **configuration** element of the plugin with a **groupId** of `com.microsoft.azure` in the generated pom.xml file. For example, the configuration element below instructs a Maven-based deployment to create a function app in the `java-functions-group` resource group in the `westus` region. The function app itself runs on Windows hosted in the `java-functions-app-service-plan` plan, which by default is a serverless Consumption plan.
You can change these settings to control how resources are created in Azure, such as by changing `runtime.os` from `windows` to `linux` before initial deployment. For a complete list of settings supported by the Maven plug-in, see the [configuration details](https://github.com/microsoft/azure-maven-plugins/wiki/Azure-Functions:-Configuration-Details).
0 commit comments