The Powershell ISE add-on provides a vertical menu to testing and publish SMA runbooks easily.
Install.ps1 will automatically create the folder structure, copy the files and add commands for importing the module to the profile file.
-
Copy SMAAuthoring folder to Powershell Modules folder (either of following): * C:\Windows\System32\WindowsPowerShell\v1.0\Modules * C:\Users\username\Documents\WindowsPowershell\Modules
-
Edit the ISE profile (Microsoft.PowerShellISE_profile.ps1) to import the module during each launch: - Import-Module SMAAuthoring
- Fill-in your SMA web service URL to the textbox (i.e.: https://hostname:9090/00000000-0000-0000-0000-000000000000)
- Clicking to Test button will update draft of existing runbook and trigger a Test run.
- If no runbooks were selected, it will create a new one.
- Results of test will be shown in the output box.
- Clicking to Publish button will publish the last draft of the runbook.