I needed to find out if adding a baseline using the API to a server automation plan’s XML is possible.
For example - I have an server automation xml with the following steps:
Step 101: Baseline patching
Step 102: Power OFF VM
Step 103: VM Resizing
Step 104: Power ON VM
In step 101, we use different monthly baselines from the baseline tab. Here, I wanted to add this monthly baseline using the IEM CLI and PowerShell, but the problem is that the xml format obtained by exporting the baseline is different from the format to be used in the server automation plan xml.
Baseline format after export:
Server automation plan after initiating the action, stopping it and then exporting it -
<step id = 101>
<baseline name = '...' site-url='...' fixlet-id='...' modification-time='...'>
<step id = 102>
<step id = 103>
<step id = 104>
So basically the question is, if it is possible to include the baseline (which changes every month) in step 101, by using the API to import the baseline in a format suitable for the server automation plan to accept.