Skip to content

Azure Functions

Hanxiao Liu edited this page Jun 24, 2022 · 4 revisions

Maven Central

<plugin>
    <groupId>com.microsoft.azuregroupId>
    <artifactId>azure-functions-maven-pluginartifactId>
    <version>[Use the latest version above]version>
plugin>

Prerequisites

Tool Required Version
JDK 1.8 and above
Maven 3.0 and above
.Net Core SDK Latest version
Azure Functions Core Tools 2.0 and above

Note: See how to install Azure Functions Core Tools - 2.x

Common Questions

Q : Where can I find the valid values for function configuration, like and ?

A : You could find these values in Configuration Details

Q: Can I upload other static content, e.g. HTML files, as part of the function deployment?

A: You can achieve this by adding configurations for the maven-resources-plugin. For example:

<plugin>
  <artifactId>maven-resources-pluginartifactId>
  <executions>
    <execution>
      <id>copy-resourcesid>
      <phase>packagephase>
      <goals>
        <goal>copy-resourcesgoal>
      goals>
      <configuration>
        <overwrite>trueoverwrite>
        <outputDirectory>${stagingDirectory}outputDirectory>
        <resources>         
          ...         
          
          <resource>
            <directory>${project.basedir}/src/main/resourcesdirectory>
            <includes>
              <include>www/**include>
            includes>
          resource>
        resources>
      configuration>
    execution>
    ...
  executions>
plugin>

Clone this wiki locally