Unable to select durable function in Azure Logic app editor - azure

I have created a python durable function
So there is a trigger function(HTTP) - that should be accessible from Logic app, orchestrator function, and activity.
However, if I want to select this function in a logic app I cannot see it

After reproducing from my end, I could able to see the HTTP Trigger functions where the route is set to null.
To reproduce we have created 2 HTTP functions
Function1 where the route is set to null
Function2 where the route is not set to null
In my logic app

Related

Deploying same Azure cloud function for each environment - dev, qa, prod

Have a function app with single cloud function in it. The cloud function is triggered by an HTTP call and pushes the payload to a Azure service bus queue. What needs to be done is, as part of automated deployment, would like to have few variables configured per environment -
Function Name
Queue Name
Queue Connection String
Deployment is to be done using Azure DevOps. Function code is also on Azure DevOps repository which will have branch for each environment, so will need function with different function name for eg - Dev_Function, QA_Function,etc since it needs to connect to corresponding environment queue. Also aware that variables can be configured using App Settings on Azure portal. Any help/insights appreciated!
i think you could keep the function name as it is and change make the Queue name and Connection string to be pickup from Azure function app service configuration.
[FunctionName("SendEmailFunc")]
public static async Task SendEmailFunc([QueueTrigger($"%{FuncAppConstants.Queue.EmailQueueName}%")] EmailMessage emailMessage)
{
}
you can get the queue name at runtime by using this
[QueueTrigger($"%prod_queue_name%")]
and configuration will just look like below in the local.setting.json
"prod_queue_name": "test-email-queue"
and similarly in the Azure function app configuration
And same can be done for the connection string

Does EventGridTrigger wors in App service plan and ASE?

I have an Event Grid Trigger Azure function deployed to a function app which is in an ASE. I have created an event grid subscription with this function as an end point. The purpose of this subscription is to call this function once a blob file is created.
When I placed the file in the location, the event is supposed to call the function but I see the event is undelivered.
How can I resolve the issue?
I found this in Azure documents :
" When your function app runs in either an App Service plan or an App Service Environment, you can use non-HTTP trigger functions. For your functions to get triggered correctly, you must be connected to a virtual network with access to the resource defined in the trigger connection. "
Maybe you can refer to this article.enter link description here
I have created an eventgrid subscription that writes the event to a queue whenever a file is created in blob. I have modified exiting EvenGridTrigger function to QueueTrigger function. Both storage account and function app are in same vnet.

How to get response back within azure function which is calling an azure automation runnbook via webhoook

I have a https triggered function app which is calling a webhook which internally is calling a runbook. Runbook is running on hybrid worker group and based on the inputs it's returns some output is there any way to get the response back to the azure function without storing the runbook output in any temporary storage.

How to pass a parameter to a logic app invoked from an alert

I have an Alert (Scheduled Query Request) that invokes an Action Group that invokes a Logic App that executes a Function App. The logic app is HTTP triggered.
I would like to deploy the same alert on Test, Pre-Prod, Prod and pass the "environment" as a parameter from alert to the action group to the Logic App to the Function App.
Is there a way to pass a parameter from the alert? Can you point me to a JSON sample?
Consider deploying a local version of the logic app to each environment and initializing a variable with the environment name at the start of the logic app. Use parameterized ARM templates and Azure Devops to apply the proper environment value to each. It can get a little messy mixing ARM and Logic App definitions, but it can be very rewarding in cases like these.

How get Azure Function URL directly by code in Azure Function Apps?

In Azure Portal, you can get function URL directly from portal. there is also another way here that you can get Azure Function URL using Azure ARM API. But I want to know, Is there any way to get "Function URL" by code (Node.js, Python, ...) in Azure Function Apps directly?
For Node.js azure function, you can just use this line of code: req.originalUrl.
Detailed steps as below:
1.In Azure portal, create a Http Trigger function, select JavaScript as it's Programming Language.
2.In the index.js file, add this line of code: context.log(req.originalUrl);
3.Sample code like below:
module.exports = function (context, req) {
context.log(req.originalUrl);
//write you other logic below
};
Please refer to the screenshot below for test result:

Resources