Orchestrator 2012 web service reference

Over the last couple of years, I’ve been involved in the SCCM 2007/2012 realm and automation in general.  One of the other products within the System Center family is System Center Orchestrator 2012, which helps with automation.   One of the things that interests me is System Center 2012 – Orchestrator Web Service reference

http://msdn.microsoft.com/en-us/library/hh921667.aspx

I’m trying to learn more in-depth, my latest adventure is trying to make all my calls from PowerShell to the web service to perform actions within Runbooks.   I hope future articles can go more in-depth. 

For introduction, there is a PowerShell module hosted on CodePlex which provides a good starter module.  This article isn’t meant to teach PowerShell, I download the module and put in %SystemRoot%System32WindowsPowerShellv1.0Modules in a folder called Orchestrator and rename the module to Orchestrator.psm1

Here is the code I currently use to connect and retrieve information.

Import-Module Orchestrator
$Cred = Get-Credential
$URL = http://Server:81/Orchestrator2012/Orchestrator.svc/

#Folder with the Runbook folders
$RunBookPath = “Automation.0”
$Runbook = Get-OrchestratorRunbook -serviceurl $url -runbookpath $RunBookPath -credentials $Cred

Clean Slate : Week 4

This has been a productive week.  I went from swimming on my back doing the back stroke to using a kick board.  It doesnt feel comfortable, performing freestyle is necessary to complete the swimming portion of a triathlon.  A good friend shared a few drills, which Im training with now.   One inspiration this week and appears to be my theme verse for Clean Slate is Hebrews 11:8-11.  As I type this, I still cant swim freestyle more than 1/2 lap in a swimming pool, that is dreadful and makes me wonder, but Ill keep after it.  Putting together swimming stroke, breathing and good form is the goal on the swimming portion.  I admire those who can, breathing in the water is a challenge!  I have faith Ill over come.

Entered the 4th week of running, Couch to 5k is an amazing 9 week program, the intervals are gradual enough, it can take someone like me who didnt like running and look forward to that workout.  This week had the running more than walking.  I peaked in the 5th week, the running portion has two 8 minutes intervals.  That is close to running 2 miles.  Me, running two miles, yeah right. Its encouraging.  On the biking portion, Im going to get my own Spinning bike, I enjoy working out in the comfort of my own home than at a club. 

Training twice a day 4 days this week takes a lot of time, energy.  Im over the hurdle of doing exercise on a regular interval, its a matter of juggling everything else in life and continue train.. I admire people who train for these events, it provides a new perspective because I honestly cant imagine finishing, let alone trying to win an event. 

In conclusion, the adventure continues, week 4 in the books.  The theme verse and trying new things in swimming highlight the week and I think will help take steps forward in becoming like I can finish 1/4 mile swimming.  In a week or so, Ill be traveling so training will be interesting! 

Keep on battling,

Steve

Clean Slate : Third week

Ive finished the third week, been quite amazing actually.  I continue the Couch to 5k program.  This week had me running 1.5 minutes, walk 1.5 and run and walk 3 minutes.  After finishing up the third workout, the text stated I would start running a 1/2 of 5k starting the 4th week.  Wow, 1.5 miles.  The thought crossed my mind, I hope before the triathlon I could run 3 miles and bike 12 miles three times a week  Time will tell.

I started biking this week too, fortunately I was able to make it an hour each time.  I rode both times doing a few intervals, nothing too crazy.  I was happy just to finish the hour without stop pedaling, not too many times Smile  The instructors are hard core riders, are part of competitive teams and seemed pretty competitive.  I let them give me instruction of what I should do, I waited patiently and then told them, I thought I didnt know 1/2 of what he was talking about, I mentioned to them I m happy to just finish the hour without stop peddling, that is my near term goal.  None the less, I get to ride the bike an hour a day, 3 days a week.   Stay tuned on this.

I started swimming, let me tell you, its going to be a miracle if I can swim a 1/4 mile by June.  As a side note, I get to give my testimony this week at Church on how God has been involved in my life.  One of the scriptures is Hebrews 11:11.  It covers And by faith even Sarah, who was past childbearing age, was enabled to bear children because she[b] considered him faithful who had made the promise. (NIV)  I have to tell you, my journey is not as dramatic, not by any stretch of the imagination, but I have faith to be able achieve this.  How, I have no idea, but Ill keep after it and doing research.  Starting today, Ill be praying asking for guidance.   Keep this in your prayers. 

So, biking, running and swimming.  Ill keep training having faith Ill get better!  The adventure continues.