Services/Jobs and Logic App

Nikhil Kumar 21 Reputation points
2022-05-08T05:44:22.147+00:00

On the onpremises servers, we have console/worker services batch job (services) deployed. Can I use the logic APP to keep track of them?
When I mention tracking, I mean

  1. remotely activating any console job/service
  2. remotely stopping the job/service
  3. Skipping jobs, halting job/service, and disabling job/service
  4. Skipping jobs, halting job/service, and disabling job/service
  5. If any exceptions are thrown, get the service(job) error status.
    Which Microsoft tool may be used in this situation? We intend to create a dashboard that will allow us to remotely monitor and control all of our services. My question is, can we make use of Logic App in this circumstance in any way?
Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,416 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,875 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
324 questions
0 comments No comments
{count} votes

Accepted answer
  1. VenkateshDodda-MSFT 18,856 Reputation points Microsoft Employee
    2022-05-11T14:14:28.377+00:00

    @Nikhil Kumar Thanks for reaching out. Based on your requirement Currently we don't have any built-in solution. You can achieve this by creating custom solution using any of the below

    Solution-1: **
    **On Premise Custom Service / Agent

    • Create a custom Service that can track your running services and also control them (start/stop/pause/etc.)
    • Connects to Service Bus to receive commands to control your on-premise services from a dashboard running on Azure (App Service)
    • This service could publish statuses of running services to Azure by storing them in table storage or cosmos db, which your dashboard can fetch from

    **Cloud Dashboard (App Service / Functions) **

    • Connects to Service Bus to send commands to on-premises agent
    • Retrieves status from table/cosmos to display the dashboard

    May this solution give's more control, but it needs more effort to configure On-prem and Cloud agent.

    Solution-2:

    • To manage your jobs scheduling/start/stop you can leverage PowerShell Azure functions, by using the hybrid connection feature in the app service as discussed in this documentation.
    • For monitoring and creating the dashboards, you can use Azure Monitor. You need to install log analytics agent to collect monitoring data from the guest operating system. Azure monitor can collect system logs, windows event logs and custom logs as explained here.

    Solution-3:

    • You can use Azure automation with Hybrid run book worker to schedule the jobs by writing runbooks. Azure automations allows you to write the run books in either PowerShell or in python. Hybrid Run book depends on the log analytics agent using that you can monitor and create the dashboards accordingly.

    Feel Free to reach back to me if you have any further questions on this.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful