Is there a way to monitor a Logic App application with Azure App Insights ?
NO, Unfortunately, there is no built-in support for Azure Logic Apps. One workaround you can do is to create an Azure Function to log events in your Azure Function subscription, and adding those actions in the key places you want to instrument for your logic app.
Related
I have implemented Rest API call using HttpTrigger based Azure functions, now customer has asked to implement the same using Azure Web Jobs instead of Azure Functions (owing to cost).
Are there any options available, please provide some reference how to achieve it in Azure web jobs
Thanks! in advance
No, that is not what WebJobs are for. You might be lookin into building an ASP.NET Web API and hosting it in an App Service Plan.
WebJobs is a feature of Azure App Service that enables you to run a program or script in the same context as a web app, API app, or mobile app. There is no additional cost to use WebJobs.
Taken from Run Background tasks with WebJobs in Azure App Service
Also, WebJobs do NOT support the HttpTrigger. The triggers that are supported by WebJobs:
Timer
Azure Storage queues and blobs
Azure Service Bus queues and topics
Azure Cosmos DB
Azure Event Hubs
File system
Source: What are Microsoft Flow, Logic Apps, Functions, and WebJobs? - Comparison table
EDIT:
As far as your solution goes: Either run it in a Function or in an App Service. If it's just one HttpTriggered call and (minor) startup times after some inactivity of the API aren't an issue: go for the Function implementation.
When retrieving a 'huge amount' of records (what is a huge amount?), as long as your Functions don't have any state and you pass in all information to determine the records to receive, there shouldn't be any issues. The Function app timeout duration in a consumption plan is 5 minutes by default.
Is there any provision to start/stop an azure function app via Azure Data Factory Web Activity.
Azure Logic Apps is the simplest way to achieve this.
You can call the below Management API to Start/Stop your Azure Function App:
START
POST https://management.azure.com/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroup>/providers/Microsoft.Web/sites/<FunctionAppName>/start?api-version=2015-08-01
STOP
POST https://management.azure.com/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroup>/providers/Microsoft.Web/sites/<FunctionAppName>/stop?api-version=2015-08-01
You can use Managed Service Identity authentication to authenticate above request.
Below are some screenshots for your reference:
Once you enable the Managed Identity for your Logic App , It will create a AD Application with the same name of your Logic App Work Flow.
Now Got to your Function App --> Platform Settings --> All Settings --> Access Control (IAM) --> Click on Add(+) button.
Add AD Application (Created with your Logic App Name) and Provide Contributor role and save.
Function can be started based on its trigger. eg. Timer, webhoook etc.
It can be stopped by stopping the function App and existing functions will be stopped
We are building multi-tenant microservices based platform on Azure and we are using service bus for integration between micro-services.
We are receiving input pipeline message from batch and real-time and I want to ensure all tenant message process with equal priority.
pipeline looks like
Note: we are using Azure function to process service-bus messages
below line I got from Microsoft documentation
This fully managed service is available in multi or single tenant
configurations with no servers to manage or licenses to buy.
Can anyone suggest, How to use service bus in multi-tenant scenario? do you think I really need to care if I'm using azure function (azure function will auto scale)?
I want to give equal priority to all tenant.
Thanks #Mikhail, I confused by below statement
This fully managed service is available in multi or single tenant
configurations with no servers to manage or licenses to buy.
Azure ServiceBus Standard run under shared resources while premium runs a dedicated instance of Service Bus.
Check here for more details
Will compute be available to an Azure Function app if it is assigned to an App Service Plan that has no App Services in it?
Yes, and that is in fact the way all Azure Function apps are create:
The App Service Plan gets created first
Then the FUnction App gets created in the App Service Plan
This applies to both Consumption and App Service Plan Function Apps
well, the easiest way to know is to create it? that would probably take as much time as asking this question, but I don't see why it would not work.
I have an Azure cloud service in which there are multiple background processing tasks which I would like to turn into WebJobs. I've read all I could find on the subject but it seems that WebJobs are tightly related to Web Apps and not Cloud services. I managed to create a web job in my cloud service solution and it seems it deployed correctly but I can't find a way to see it or its output on the new Azure portal (I couldn't see it in the classic management portal either)
Can one have a set of WebJobs running with a cloud service?
Web Jobs is a feature specific to Azure Web Apps. You'd need to create a Web App (in an App Service Plan) to create your Web Jobs. These are unrelated to Cloud Services (web/worker roles).