Using BizTalk360 to perform some action via a Powershell script
  • Updated on 18 Oct 2018
  • 1 minute to read
  • Contributors
  • Print
  • Share
  • Dark
    Light

Using BizTalk360 to perform some action via a Powershell script

  • Print
  • Share
  • Dark
    Light

Issue at Hand

BizTalk360 is raising an alert for some threshold alarm, but the customer would like some action to be performed via a Powershell script.

Powershell Custom Notification Channel in BizTalk360

With Custom Notification Channels, it’s very easy to send alerts to external systems like your ticketing system, internal databases, calling a REST endpoint, executing a PowerShell script etc. We have below article, which also has code for building a File Notification channel.

https://docs.biztalk360.com/docs/create-custom-notification-channel

But now, as few customers have asked how to integrate BizTalk360 with running a Powershell script, we have provided another GitHub DLL to help you. Use the steps from the above article to link it with BizTalk360.

  1. Kindly extract the folder from Github
  2. Please follow the above article to create New Custom Notification Channel
  3. During the configuration, provide the path along with the file name where the PowerShell script is present
  4. In the alarm, enable the PowerShell notifications channel. There is no need to provide the path once again, unless you wish to override the script provided in the settings page

Whenever a violation appears, the notification channel will be triggered and it will hit the PowerShell script.

Here, in the sample PowerShell script, we have included some basic code to restart the BizTalk360 analytics service, but you can include more complex code to perform any actions via a Powershell script.

Was this article helpful?