Configure PowerShell Channel
  • Updated on 29 Oct 2018
  • 1 minute to read
  • Contributors
  • Print
  • Share
  • Dark
    Light

Configure PowerShell Channel

  • Print
  • Share
  • Dark
    Light

Adding to the already existing list of notification channels available for BizTalk360, we now have integration with Powershell thereby allowing you to execute a powershell script each time an alarm is triggered when the threshold is crossed. This would enable the user to perform some tasks via the Powershell script each time the alarm was triggered.

Setting up a PowerShell notification in BizTalk360 requires the following steps:

Create the Powershell Script

  1. Create the script in a plain text editor such as Notepad and save with a .PS1file extension (for example, myscript.ps1 ).
  2. Run the script by entering the full path to the script ( c:/scripts/myscript.ps1), or if it's in the current directory, prefix it with a period followed by a backslash ( ./myscript.ps1 ).

Configuring the PowerShell Notification Channel in BizTalk360

  • You can find the Powershell Notification Channel under Settings > Monitoring and Notification > Manage Notification Channels. Select B360.Notifier.PowerShellNotification.
  • Click “Configure” to open the configuration panel.

PowershellSetup1.png

During the configuration, provide the path along with the file name where the PowerShell script is present.

  • In the Alarm section (Monitoring -> Manage Alarms) when you edit the alarm, enable the PowerShell notifications channel using the slider (No need to provide the path once again, unless you wish to override the script provided in the settings page)

PowershellSetup2.png

Whenever the violation appears, it will trigger the notification channel 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. Thus, we have added to our already growing set of notifications available on BizTalk360. This can also be considered as an action to be carried out if the alarms are triggered.

Was this article helpful?