Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set custom handler arguments via Application settings? #9260

Closed
xlight05 opened this issue May 6, 2023 · 1 comment
Closed

How to set custom handler arguments via Application settings? #9260

xlight05 opened this issue May 6, 2023 · 1 comment
Assignees

Comments

@xlight05
Copy link

xlight05 commented May 6, 2023

Question

I'm in the process of adding debugging capabilities for Ballerina Azure functions ;). Ballerina is implemented using Custom handlers. I need to pass debug args to start the ballerina debug server upon func start. I noticed, in other languages such as java you can use the field "languageWorkers__java__arguments" in application settings to do this. What is the equivalent of that for custom handlers?

Please note I want to do this using application settings. not host.json as we need vscode impl, we need to programmatically set these.

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

Ballerina(Custom Handlers)

@soninaren
Copy link
Member

Here is the documentation for setting arguments for custom handlers.
https://learn.microsoft.com/en-us/azure/azure-functions/functions-custom-handlers

Here is the documentation that describes how to override host.json config using app settings.
https://learn.microsoft.com/en-us/azure/azure-functions/functions-app-settings

Mainly you need to use the app setting in the following format. AzureFunctionsJobHost__path__to__setting in your case it should translate to AzureFunctionsJobHost__customHandler__arguments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants