SCO 2012 R2: System Management Automation – Using the Web Service in Visual Studio 2012


update: more information have been released by microsoft. Start here

The new preview of System Center Orchestrator 2012 R2, comes with a new part called "System Management Automation"

In this article series i can been focusing on the 3 parts:

  • Web Service
  • Runbook Worker
  • PowerShell Module

In this article i’ll show how to use the web service in Visual studio. An earlier post described more about the web service


Browse using Internet Browser


The idea is to give you a chance to play around with it, and any kind of comments/feedback is very welcomed!

Lets go!


To make better and easier use of the web service, you might want to add it to a visual studio solution.

This can be done by using the data source wizard:

Step by Step:


Open Visual studio 2012 and create a new solution

Open “Data Sources” tab

Click “Add new data source


Select “Service”. Click Next


Type in URI Address for web service including default tenantID, in my lab it is

(00000000-0000-0000-0000-000000000000 is the guid for the default tenant)


Click Go

Give the namespace a name, in this case i called it SCOServiceReference, but you can name it however you want.

Click OK

You might experience a “Security Alert”. Click Yes


The wizard connects to the web service and list the available services. your result should look similar to this


You can browse the web service in the wizard


or you can select OrchestratorApi and click OK

Click Finish


Now you are ready to browse and use the web service in your visual studio project:


You can also right click the Service reference and select View in object browser to get a better overview




By | 2013-07-19T14:29:24+00:00 July 19th, 2013|Automation|0 Comments

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

Leave A Comment