Windows Azure Pack / SMA: How to fix when some VM Clouds Automation Triggers does not work

In WAP VM Clouds provider, we are able to set trigger on different actions.



Yesterday, in a new test environment, I had a problem that some of them would not trigger.

When I tested Subscription trigger, it worked fine, but none of the others worked.


Luckily I asked my MVP network for help, and fellow CDM MVP Stan showed me the path to the fix! (Check his blog here:

He said some actions are handled directly by WAP, and some are handled by SPF.


The SMA Web service has to use a valid certificate that is trusted by the SPF server!


It is described here


“For VM Clouds to trigger runbooks in Service Management Automation, the Service Management Automation web service certificate must be trusted on the computer running Service Provider Foundation. “

By |2017-08-22T09:23:19+00:00May 22nd, 2015|Automation, Windows Azure Pack (WAP)|1 Comment

About the Author:

Jakob Gottlieb Svendsen

Twitter: @JakobGSvendsen

Jakob Gottlieb Svendsen is a Microsoft Cloud and Data Center Management MVP (, Working as Global Lead Developer, Senior Consultant and Trainer at CTGlobal, where he is one of the driving forces in keeping CTGlobal a System Center Gold Partner and member of the System Center Alliance.

Since he started at Coretech in 2007, he has focused on Scripting and Development, primarily developing tools, extensions and scripts for the System Center Suite. His main area is Automation (including OMS/Azure Automation, Service Management Automation, PowerShell and Orchestrator). Another area is Windows Azure Pack / Azure Stack, where he does implementation, development, workshops and presentations. He is a world-wide renowned voice in the Automation field.

He is passionately devoted to the community, to which he contributes by being a moderator at TechNet and sharing his knowledge at

  • Co-founder: PowerShell User Group Denmark
  • Speaker at MMS 2016, Minneapolis (
  • SCU Europe 2014, 2015, 2016 (
  • Microsoft TechEd North America 2014, Houston
  • NIC 2012,2013,2014,2015, Oslo (
  • Microsoft CampusDays 2011, 2013, Copenhagen
  • Microsoft TechDays 2015, Sweden (
  • Microsoft Partner Event: New in SC2012 SP1
  • User group meetings (PSUG.DK , SCUG.DK/BE/NO, AZMUG + more)
  • Microsoft Certified Trainer.
  • Microsoft Scripting Guys Forum Moderator

Main working areas:

  • Automation (Azure Automation, SMA, SCO)
  • Windows Azure Pack / Azure Stack
  • System CenterVisual Studio Team Services / Team Foundation Server
  • Development:C#.Net, VB.NET, VBScript, PowerShell, Service Manager, OpsMgr, ConfigMgr
  • Orchestrator
  • Windows Azure Pack / Azure Stack


  • Azure Automation
  • Service Management Automation
  • System Center Orchestrator
  • PowerShell, VBScript, C#.Net, VB.Net
  • Windows Azure Pack / Azure Stack Development Workshops

One Comment

  1. Alex January 31, 2017 at 14:28 - Reply

    Good morning, i have same issue? but in my case i have right trust betwenn servers and right membrship for sma group. spf analytic logs has next error:
    Component: Core

    Activity [Orchestrator::InvokeRunbookIfExists, id {8c90acf5-74d2-480c-8c9d-6a5ab0c43d6c}]
    Parent activity [SPF.Update, id {70c45640-6c40-4b71-bc12-9cd83ca33e60}]

    Elapsed: 8ms
    Context: {e92e6fab-54da-4a1a-bb99-0e70dd4009d6}

    InvokeRunbookIfExists Failed, error: An error occurred while executing the command definition. See the inner exception for details.. Inner error: at System.Data.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)
    at System.Data.Objects.Internal.ObjectQueryExecutionPlan.Execute[TResultType](ObjectContext context, ObjectParameterCollection parameterValues)
    at System.Data.Objects.ObjectQuery1.GetResults(Nullable1 forMergeOption)
    at System.Data.Objects.ObjectQuery1.System.Collections.Generic.IEnumerable.GetEnumerator()
    at System.Collections.Generic.List
    1..ctor(IEnumerable1 collection)
    at System.Linq.Enumerable.ToList[TSource](IEnumerable
    1 source)
    at Microsoft.SystemCenter.Foundation.Orchestrator.OrchestratorHelper.GetEnabledRunbooks(String resourceTypeName, String action)
    at Microsoft.SystemCenter.Foundation.Orchestrator.OrchestratorHelper.InvokeRunbookIfExists(HttpContext context, Object resource, String resourceTypeName, String action, Dictionary2 propertyParams, PowerShell ps, Nullable1 serializationDepth)

    May be does somebody have same issue?

Leave A Comment