question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to update local machine Java function from V2 to V3

See original GitHub issue

Is your question related to a specific version? If so, please specify:

V3

What language does your question apply to? (e.g. C#, JavaScript, Java, All)

Java

Question

I am unable to switch my Function Runtime Version to 3.X from version 2. I followed all recommendations in https://docs.microsoft.com/en-us/azure/azure-functions/functions-versions#migrating-from-2x-to-3x
to update my function

image

Here’s my setting in pom.xml

            <plugin>
                <groupId>com.microsoft.azure</groupId>
                <artifactId>azure-functions-maven-plugin</artifactId>
                <configuration>
                    <resourceGroup>${functionResourceGroup}</resourceGroup>
                    <appName>${functionAppName}</appName>
                    <region>${functionAppRegion}</region>
                    <appSettings>
                        <!-- Run Azure Function from package file by default -->
                        <property>
                            <name>WEBSITE_RUN_FROM_PACKAGE</name>
                            <value>1</value>
                        </property>
                        <property>
                            <name>FUNCTIONS_EXTENSION_VERSION</name>
                            <value>~3</value>
                        </property>
                    </appSettings>
                </configuration>
                <executions>
                    <execution>
                        <id>package-functions</id>
                        <goals>
                            <goal>package</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

(As a side note I can get this to work in .NET Core, but my project must be in Java)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mhoegercommented, Jan 21, 2020

You might have installed azure-functions-core-tools through a different way first? Can you try finding where it’s installed by running where func on Windows or which func on Mac?

0reactions
alanokelly-cicommented, Jan 27, 2020

I removed the chocolatey reference and it fixed, thanks for the help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Function in Java does not work locally
I started receiving this error after installing the latest versions of IDEA IntelliJ w/ Azure Toolkit for IntelliJ plugin, & Azure Core Tools...
Read more >
Azure function app upgrade, function V4 ...
This blog will talk about some common issues you may meet when you try to upgrade your Azure function from older runtime version...
Read more >
What is Java Auto Update? How do I change notify settings?
From the Java Control Panel Update tab, you can manually check for an update any time by clicking on the Update Now button...
Read more >
Troubleshooting errors in AWS Glue for Spark
It's possible to update Java without updating this variable, and if it points to a folder that no longer exists, Jupyter notebooks fail...
Read more >
Consolidated JDK 8 Release Notes
Commands from a removed "java" or "javac" group are now unavailable for system Java switch, which potentially changes the current system Java without...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found