Answered by:
Query suspend instance using WMI - not found application name

Question
-
I use WMI to query suspend instance.
Class: MSBTS_ServiceInstance
https://msdn.microsoft.com/en-us/library/aa578129.aspxI would like to get application name of a suspend instance. I understand this is in AssemblyName.
Some suspend instance result I get have application name in AssemblyName and some do not have. For those which do not have, I can query application name from BizTalk admin console.
For those suspend instance which do not have application name in AssemblyName, how do I query for application name?
Thanks.
Monday, April 10, 2017 8:54 AM
Answers
-
Hi,
You can refer the discussion here: https://social.msdn.microsoft.com/Forums/en-US/ce21111b-a498-40e3-a39d-cdd997891861/getting-application-name-of-biztalk-suspended-messages-using-c-biztalkoperations-dll?forum=biztalkgeneral
Rachit Sikroria (Microsoft Azure MVP)
- Proposed as answer by Rachit SikroriaModerator Thursday, April 20, 2017 8:41 AM
- Marked as answer by Rachit SikroriaModerator Thursday, April 20, 2017 8:41 AM
Monday, April 10, 2017 9:00 AMModerator -
Hi What you basically need to do is use the Biztalk Operations class from the Biztalk Operation.dll and you can query the service instances on your environment programatically either using C# or powershell for example.
Please refer the MSDN documentation for the same
BizTalkOperations.GetServiceInstances Method ()
MessageBoxServiceInstance Class
You need to call the GetServiceInstances method and store the result into the messagaeBoxServiceInstance list , then you will be able to filter out the suspended instances based upon the vaue of the InstanceStatus property ofeach individual instance.
Regards
Mandar Dharmadhikari
- Proposed as answer by Rachit SikroriaModerator Thursday, April 20, 2017 8:41 AM
- Marked as answer by Rachit SikroriaModerator Thursday, April 20, 2017 8:41 AM
Monday, April 10, 2017 9:17 AMModerator
All replies
-
Hi,
You can refer the discussion here: https://social.msdn.microsoft.com/Forums/en-US/ce21111b-a498-40e3-a39d-cdd997891861/getting-application-name-of-biztalk-suspended-messages-using-c-biztalkoperations-dll?forum=biztalkgeneral
Rachit Sikroria (Microsoft Azure MVP)
- Proposed as answer by Rachit SikroriaModerator Thursday, April 20, 2017 8:41 AM
- Marked as answer by Rachit SikroriaModerator Thursday, April 20, 2017 8:41 AM
Monday, April 10, 2017 9:00 AMModerator -
Hi What you basically need to do is use the Biztalk Operations class from the Biztalk Operation.dll and you can query the service instances on your environment programatically either using C# or powershell for example.
Please refer the MSDN documentation for the same
BizTalkOperations.GetServiceInstances Method ()
MessageBoxServiceInstance Class
You need to call the GetServiceInstances method and store the result into the messagaeBoxServiceInstance list , then you will be able to filter out the suspended instances based upon the vaue of the InstanceStatus property ofeach individual instance.
Regards
Mandar Dharmadhikari
- Proposed as answer by Rachit SikroriaModerator Thursday, April 20, 2017 8:41 AM
- Marked as answer by Rachit SikroriaModerator Thursday, April 20, 2017 8:41 AM
Monday, April 10, 2017 9:17 AMModerator