SC 2012 Virtual Machine Manager Integration Pack & Orchstrator

Facebooktwitterredditpinterestlinkedinmail

While trying to build some Private Cloud runbook I first wanted to get the User Role Quota… well, it’s sounds easy because I’ve got a built in component for that action…

As you can see… I had to add the VMM Connection that I’ve configured for working with that OIP.

Everything looks great and ready for running… but wait, when testing it I’m getting this error:

The following errors occurred when invoking PowerShell script:VMM is unable to perform this operation without a connection to a Virtual Machine Manager management server. (Error ID: 1615)

Use the Get-VMMServer cmdlet or the -VMMServer parameter to connect to a Virtual Machine Manager management server. For more information, type at the command prompt: Get-Help Get-VMMServer -detailed.

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.GetUserRoleQuota.DoWork(IActivityRequest request, IActivityResponse response)
at Microsoft.SystemCenter.Orchestrator.Integration.VMM2012QIK.VMMBase.Execute(IActivityRequest request, IActivityResponse response)

Hey ! I’ve used the VMM Connection, why the component say it cannot connect the VMM ?- I dunno… but the workaround goes like this:

  1. Drag the “Run VMM PowerShell Script” Component
  2. add the following line code in the “Powershell Script” field: $con = Get-SCVMMServer -ComputerName “yourVMMServer.domain.local”
  3. add the following line code in the “Output Variable 01” field: $con
  4. Link this component to the Get User Role Quota Component.
  5. Run your runbook and… Walla !

Have fun !

2 thoughts on “SC 2012 Virtual Machine Manager Integration Pack & Orchstrator

Leave a Reply

Your email address will not be published. Required fields are marked *