Search This Blog

Sunday, July 7, 2013

System Center 2012 SP1 Orchestrator runbook to deploy a SCVMM service from a template



Here is an example of System Center 2012 SP1 Orchestrator’s runbook to deploy a SCVMM service from a defined template.


Service Template Name   equals {TemplateName from “Initialize Data”}
Service Template Release   equals {TemplateRelease from “Initialize Data”}

Service Template Name {Service Template Name from “Get Service Template”}

Note that deployment did not work from the beginning with error:
“The following errors occurred when invoking PowerShell script:Could not find service template    Exception: InvalidOperationException Target site: PSRunspaceInvoker.HandleInvokeErrors Stack trace:    at Microsoft.SystemCenter.Orchestrator.Integration.PowerShellConnector.PSRunspaceInvoker.HandleInvokeErrors(IList invokeErrors)    at Microsoft.SystemCenter.Orchestrator.Integration.PowerShellConnector.PSRunspaceInvoker.Invoke(RunspaceInvoke runspace, String script, ILogger logger)    at Microsoft.SystemCenter.Orchestrator.Integration.PowerShellConnector.PSScriptRunner.Execute(String script)    at Microsoft.SystemCenter.Orchestrator.Integration.VMM2012QIK.ActivityBase.DoWork(IActivityRequest request, IActivityResponse response)    at Microsoft.SystemCenter.Orchestrator.Integration.VMM2012QIK.VMMBase.Execute(IActivityRequest request, IActivityResponse response)”
The solution was to add optional parameter Cloud Name as shown in the screen above.

Service Configuration Name {Service Configuration Name from “Configure Service Deployment”}



No comments: