Why did we build Automated Tasks in BizTalk360?

Published on : May 24, 2022

Category : BizTalk Server

Senthil Kumar


Microsoft BizTalk Server is the on-premises middleware system from Microsoft that automates business processes using various adapters to communicate with different systems. The latest version of Microsoft BizTalk Server 2020 supports Azure Blob Adapters, Office Mail Adapters, etc. BizTalk Server Administrator’s primary job is to manage the health of the BizTalk Server infrastructure, and configuration is significant. Similarly, the BizTalk Solution Developers or Deployment Team is responsible for BizTalk Application deployment and maintenance.

There are use cases in which the BizTalk Administrator or deployment team must carry out manual operations on BizTalk Ports, and Host Instances. For Instance:

  • Windows Security patch updates: The administrator needs to bring down all BizTalk Application Artifacts and BizTalk Host Instances gradually before applying the security patches. Similarly, once after applying the security updates, bring the BizTalk Application(s) up and running.
  • In certain BizTalk Integrations, users don’t want to receive the files during weekends. Administrator or BizTalk Operators must disable the receive location(s) on Friday end of the business day, and enable the receive location(s) on Monday morning

To cover this challenge in BizTalk360, in v10.3(Roadmap), we are bringing a brand-new feature Automated Tasks.

Automated Tasks in BizTalk360

In the above-mentioned scenarios, manual intervention would be required to maintain smooth business transactions during scheduled maintenance or unplanned events that happened in the BizTalk environment. BizTalk360 can support you in handling situations that require immediate attention. The Automated task feature supports users that are requested for Automated actions on specific Application Artifacts, like Receive Locations, Orchestrations, and Send Ports to handle during the scheduled maintenance. In the BizTalk360 Feedback forum, customers requested automated actions on Ports and Host Instances.

Automated Tasks

Automated Tasks is available as a general feature under Environment Settings. For each BizTalk group, users can configure the actions that perform automatically on Applications and Host Instances in the scheduled time.

BizTalk maintenance

Automated Task covers the operations that can be performed on:

  • Applications
  • Application Artifacts (Receive Locations, Orchestrations, Send Ports, and Send Ports Groups)
  • Host Instances
  • Custom Workflow with Application Artifacts
  • Logic Apps

Automated Tasks on BizTalk Applications

As like in the BizTalk Admin Console, Start or Stop operations can be performed on BizTalk Applications.

Start Operations

  • Enlist and Start All Orchestrations
  • Enlist and Start All Send Ports
  • Enable all Receive Locations

Stop Operations

  • Disable receive locations
  • Disable receive locations, stop all orchestrations, send ports and send port groups
  • Disable receive locations, unenlist orchestrations, send ports and send port groups

Users can choose the options available for Start/stop operations of Applications based on the business requirements or nature of the scheduled maintenance they are undergoing.

Application task

Automated Tasks on Application Artifacts

The Automated Tasks feature enables you to enable/disable Receive Locations from different BizTalk Applications. This is helpful in the scenarios like stopping receiving files from a sender (partner) or during BizTalk Applications deployment for specific BizTalk integrations.

Similarly, you can configure automated tasks for the (multiple) send ports and orchestrations in the Application Artifacts Task schedule.

Host Instances Operations

Users can also configure Start/Stop/Restart operations for the Host Instances in BizTalk Group. If a user wants to restart specific Host Instances in a Weekly/Monthly interval, they can configure an automated task to restart at a specific date and time.

Custom Workflow (Application Artifacts)

During the Scheduled maintenance or BizTalk Application deployment, a user wants to disable or stop a set of receive locations, and orchestrations and send ports in a specific order. To handle this scenario, you can configure the Custom workflow in which application artifacts can be actioned.

Application Artifacts

You can create two automated tasks to handle the scheduled maintenance

  • Before the scheduled maintenance, an automated task is configured that performs the custom workflow operations to disable/stop the receive locations, Send Ports, Orchestrations, and Host Instances in specific workflow steps
  • After the maintenance, schedule another task to Start, Restart or Enable the applications artifacts

A bunch of BizTalk360 users have requested this feature to Stop/Disable Ports before maintenance and enable them back after the scheduled maintenance is over.

Logic Apps

Automated actions for Azure Logic Apps are configured in Logic Apps Task configuration. Operations that can be performed on Logic Apps are:

  • Enable
  • Disable
  • Resubmit
  • Run Trigger

A Logic Apps Task is configured to change the state of Logic Apps (Enable/Disable), Resubmit the Logic Apps Run, and Run Trigger the Logic Apps.

How do Automated Tasks work?

Automated actions are performed on Applications, Artifacts, Host Instances, and Logic Apps which can be configured with the following schedule options:

  1. One Time Schedule: This schedule will execute only once
  2. Recurrence Schedule: This schedule type can be scheduled at a Daily, Weekly, or Monthly recurrence at a specific time. The termination policy of automated tasks is:
    1. No End Date
    2. End after xx executions
    3. End after a specific date
  1. Manual Trigger: To make the Automated Task feature more useful, we bring a Run Now That way, it will also be useful during BizTalk application deployments

While configuring the task, if a user wants to run the task immediately, they can choose the Run the Task Immediately option.

Users can provide their preferred way of receiving notifications via Email, or Notification Channels like Microsoft Teams, Slack, SMTP, ServiceNow, etc.

Schedule configuration

Skip the Run: During the unexpected circumstances, the BizTalk360 monitoring service did not execute the automated task, there is an option to skip running the task after the configured time. This can be helpful during BizTalk Application deployment.

skip running the task

Task Execution History

The task will be triggered either by Schedule or Manually, once it has acted on Application Artifacts, Host Instances, Custom Workflow, and Logic Apps. Once it has completed the task, the Task history will capture the status of Task Run, Type of Trigger, Resource Name (actioned Artifacts), and Task Executed Time.

Security & Governance Audit

Automated Tasks are intended to perform some important operations, so only BizTalk360 Superusers can manage the Automated Tasks. During the task execution, it will capture the audit of artifacts which has been performed during the automated Task. In Governance/Audit, users can understand which Task performed the action with a user who performed the activity (Automated Task\<<Name of Automated Task>>).

Security & Governance Audit


The Automated Task feature in BizTalk360 will be handy to automate the BizTalk schedule maintenance or to take actions against Host Instances periodically.  Hopefully, this feature will be useful to manage the BizTalk environment more efficiently.