Open sreyanps opened 11 months ago
@sreyanps Thanks for your report and really sorry for the late response. Yes you could get the app settings with System.getenv("FUNCTIONS_EXTENSION_VERSION");
, and functions maven plugin will help you set the app settings defined in pom to Azure after deployment.
However, if you want to test it locally with mvn azure-functions:run
, you need to set the value in local.settings.json
, which by default locate in the root of your project, here is an example
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "",
"FUNCTIONS_WORKER_RUNTIME": "java",
"FUNCTIONS_EXTENSION_VERSION": "4"
}
}
azure-maven-plugin
Is there a way to read or set values from the field in the azure-maven-plugin ?
Something like
System.getenv("FUNCTIONS_EXTENSION_VERSION");
orSystem.getProperty("FUNCTIONS_EXTENSION_VERSION");