How to integrate PowerShell ISE with Service Management Automation

  • 2

How to integrate PowerShell ISE with Service Management Automation

Line Break

Author: Frank Peter (97 Articles)

The other day I was checking out the Emulated Automation Activities module that, according to its author Joe Levy, “provides a PowerShell ISE-friendly implementation of all the SMA-only activities, using the SMA cmdlets behind the scenes”. The module works fine but in case of nested runbooks you would have to develop a corresponding emulation command for each inline call in order to test outside of SMA. As to me, the bottom line is that EmulatedAutomationActivities is fine for developing and testing child runbooks separately with ISE and as far as parent runbooks are concerned I opt for testing within SMA.

To be able to quickly upload a finished runbook definition to SMA (in my evaluation lab) and load an existing runbook definition into ISE I created two ISE Add-on menu items:

ise-sma-addon

Both options require the SMA PowerShell Module.

The “upload current file …” option requires a common PowerShell file with a runbook definition in the current tab and considers the file name as runbook name. If the runbook name already exists in SMA it transfers the file as a new draft for the correspondig runbook (it overwrites an existing draft). If the runbook name doesn’t exist it simply imports the file into SMA.

The “load runbook …” option opens a list of all current runbooks in a gridview window. After selecting the runbook in question and klicking OK it will open the runbook definition in a new ISE tab.

ise-sma-addon2

ise-sma-addon3

And here comes the code:

Please note that, with regard to production environments and continuous integration, the information contained in this post is only suitable to a limited extent. With this post I just want to provide some starting points.

Hope this helps

Disclaimer: I hope that the information in this post is valuable to you. Your use of the information contained in this post, however, is at your sole risk. All information on this post is provided “as is”, without any warranty, whether express or implied, of its accuracy, completeness, fitness for a particular purpose, title or non-infringement, and none of the third-party products or information mentioned in the work are authored, recommended, supported or guaranteed by me. Further, I shall not be liable for any damages you may sustain by using this information, whether direct, indirect, special, incidental or consequential, even if it has been advised of the possibility of such damages


2 Comments

szumigalski

February 16, 2017 at 1:12 am

VMware Certified Advanced Professional 6 (Desktop and Mobility Deployment) – The industry-recognized VCAP6-DTM Deploy certification validates that you know how to deploy and optimize VMware Horizon 6 (with View) environments. It proves that you have the knowledge and abilities necessary to leverage best practices to provide a scalable and dependable Business Mobility platform for your company. Some of the subjects include: Configuring and managing Horizon View components, configuring cloud pod archituecture, configuring Group Policy settings related to Horizon View, Configuring and optimizing desktop images for Horizon View & Mirage, Configuring and managing App Volumes AppStacks, Configuring desktop pools, Configuring and deploying ThinApp packaged applications, Configuring VMWare Identity Manager, etc.Szumigalski.com was created by Sebastian to circulate his interest for PowerShell & VMWare. Sebastian is an IT professional working in Singapore over fifteen years who’s routinely interested in cutting edge methods to develop his technical capabilities & understanding. Since then, Sebastian has became a member of PowerShell User Group & VMWare VMug group, and has been involved in every one of the meetings held in Singapore. This weblog will disclose just how Sebastian manage to automate his day-to-day duties utilizing PowerShell. There are study courses obtainable for the VCAP6-DTM test, which were personally published by Sebastian. Sebastian is licensed with VCAP6-DTM, and is professional with virtualization & server maintenance from 4 years experience of automation. The call for VMWare prepared admins and engineers are ever-increasing in today’s technology market. Get acquainted with more about PowerShell & VMWare with Szumigalski.com!

https://szumigalski.com

    Frank Peter

    February 16, 2017 at 8:31 am

    Sebastian, I think there are better places to promote your weblog 😉

Leave a Reply

*