microsoft / azure-gradle-plugins

Azure Plugins for Gradle
MIT License
45 stars 28 forks source link

isSessionsEnabled = true does not reflect in function.json #129

Open 11ohina017 opened 3 years ago

11ohina017 commented 3 years ago

I set is SessionsEnabled = true, but the setting is not reflected in function.json generated after building with gradle azureFunctionsPackage.

public class Function {

@FunctionName("FunctionApp")
public void run(
        @ServiceBusQueueTrigger(
               name = "TriggerName",
               queueName = "queueName",
               connection = "ConnectionString", 
               isSessionsEnabled = true
        ) String message,
        ExecutionContext context
) {
  }
}
{
  "scriptFile" : "../func.jar",
  "entryPoint" : "test.Function.run",
  "bindings" : [ {
    "type" : "serviceBusTrigger",
    "direction" : "in",
    "name" : "TriggerName",
    "queueName" : "queueName",
    "connection" : "ConnectionString"
  } ]
}

How to set isSessionsEnabled = true in function.json?

11ohina017 commented 3 years ago

It seems that isSessionsEnabled is supported by mave plugin, but for some reason isSessionsEnabled is not generated in fucntion.json when implemented with gradle plugin.

https://github.com/microsoft/azure-maven-plugins/issues/822

11ohina017 commented 2 years ago

When will this issue be completed?