Azure Code Samples Microsoft Azure.Products. All. App Service.Application Insights.Calling Web Service From Windows Application Store' title='Calling Web Service From Windows Application Store' />Azure Active Directory.Azure Active Directory B2.CAzure Cosmos DBAzure DNSAzure Monitor.Azure Resource Manager.You need to keep a Web Service application in running mode so it can be accessible for use, so go to my article Introduction to Web Service with Example in ASP.Net. Lately Ive been experimenting with building a web service.It mainly started out with a need for a particular customer of mine that needed to get the primary.Azure Search. Batch.Cloud Services. Cognitive Services.Content Delivery Network.Data Catalog. Data Factory.Data Lake Analytics.Data Lake Store. Event Hubs.Functions. HDInsight.Hockey. App. Io. T Hub.Key Vault. Load Balancer.Machine Learning Studio.Media Services. Notification Hubs.Power BI Embedded.Redis Cache. Service Fabric.A subset of WCF functionality is available from within a Windows Store application, see the following sections for more details.Both Text and Binary encodings are.Introduction to creating a Microsoft Azure Service Fabric application with stateless and stateful services.SQL Database. Storage.Stream Analytics.Traffic Manager. Virtual Machines.Virtual Network. Visual Studio Team Services.Platform. All. NETJava.Python. Node. js.Javascript. Ruby.Xamarin. PHPPowershell.Android. Ci. OSLinuxmbed. Office Aio 2011 By Amj Properties . RESTWindows. Sort by.Relevance. Date created.Date updated. A Z.Config. Mgr Web Service Version 1.System Center Config.Mgr. Lately Ive been experimenting with building a web service.It mainly started out with a need for a particular customer of mine that needed to get the primary user and device relationships during OSD.I turned to Maik Kosters excellent web service, but found out that it did not include any web method that I needed in this case.That kind of got me started by attempting to create one of my own.After a few failed attempts and a steep learning curve, I got my first web method working that I needed for the project.But why stop there I had a few other ideas that I wanted to implement as well.Before we continue, I want to give a shout out to Johan Arwidmark who sat down with me during Ignite to find out what how to determine if a task sequence is deployed hidden or not.Today, Im releasing my Config.Mgr Web. Service publicly.In this post, Ill go cover its intentions and functionality and how you can get it setup in your environment.Overview. The Config.Mgr Web. Service has been designed to extend the functionality of Operating System Deployment with Configuration Manager 2.Included in this web service, are the following web methods Get Primary User by Device.Get Primary Device by User.Get Boot Image Source Version.Get Deployed Applications by User.Get Deployed Applications by Device.Get Hidden Task Sequence Deployments.In the documentation section of this post, youll find sample scripts that could be used to invoke any of the web methods mentioned above.Download Config. Mgr Web.Service. In order to get your hands on the bits for this web service, you have some options.You can download the source code from my Git.Hub page, and compile the web service yourself.For installation instructions, follow whats outlined in the README.You can visit my Git.Hub page from the link below https github.Nickolaj. AConfig.Mgr. Web. Service.Your other option is to download a compiled version of the web service, ready for use.This version has been made available on Tech.Net Gallery https gallery.Config. Mgr Web. Service 1.Ive published the source code for the purpose of making it available for those organisations that cannot leverage untrusted publishers, but also if youd want to get your hands dirty and have a look at it.Installation instructions.To successfully run this web service, youll need to have IIS installed on a member server with ASP.NET enabled. Easiest way to get going is to install the Config.Mgr. Web. Service on the same server as where your Management Point role is hosted.Youll also need to have a service account for an application pool in IIS, that will be created.Its recommended that you add the service account in Config.Mgr with Full Administrator privileges.The instructions below are for the already compiled version of the Config.Mgr Web. Service.Create folder structure.Create a folder in C inetpub called Config.Mgr. Web. Service.Inside that folder, create a folder called bin.Download and extract the contents from the zip file on Tech.Net Gallery into C inetpubConfig.Mgr. Web. Service.Locate Admin. UI.Wql. Query. Engine.Microsoft. Configuration.Management. Management.Provider. dll in the Config.Mgr console installation location and copy them to C inetpubConfig.Mgr. Web. Servicebin.Add an Application Pool in IIS1.Open IIS management console, right click on Application Pools and select Add Application Pool.Enter Config. Mgr.Web. Service as name, select the.NET CLR version. NET CLR Version v.OK. 3. Select the new Config.Mgr. Web. Service application pool and select Advanced Settings.In the Process Model section, specify the service account that will have access to Config.Mgr in the Identity field and click OK.Add an Application to Default Web Site.Open IIS management console, expand Sites, right click on Default Web Site and select Add Application.As for Alias, enter Config.Mgr. Web. Service.Select Config. Mgr.Web. Service as application pool.Set the physical path to C inetpubConfig.Mgr. Web. Service and click OK.Set Application Settings.Open IIS management console, expand Sites and Default Web Site.Select Config. Mgr.Web. Service application and go to Application Settings.Enter values for each application settings, Site.Server being the server where the SMS Provider is installed, Site.Code being the site code of your site and Secret.Key being a custom string that you create yourself.You should now be able to browse to e.Config. Mgr. Web.ServiceConfig. Mgr.Documentation. When calling the web service methods, youll need to pass along a secret key that matches whats specified for the Secret.Key application setting in web.Without this parameter, the method will be invoked properly.This is a somewhat reasonable security mechanism at least its something that prevents unathorized users to invoke the methods and retrieve data from your Config.Mgr environment. Its recommended that you generate a GUID and enter that as the Secret.Key. Method name.Description. Parameters.Get. Primary. User.By. Device. This method returns all primary user associated for a specified device.Name string, secret.Key stringGet. Primary.Device. By. User.This methods returns all primary devices associated with a specified user.Name string, secret.Key stringGet. Deployed.Applications. By.User. This methods returns a list of all applications deployed targeting a specified user.Name string, secret.Key stringGet. Deployed.Applications. By.Device. This methods returns a list of all applications deployed targeting a specified device.Name string, secret.Key stringGet. Hidden.Task. Sequence. Deployments.This method returns a list of all task sequences deployed available and required as hidden.Key stringGet. Boot.Image. Source. Version.This method returns the source version of a specified Boot Image.Id string, secret.Key stringSample script.Below is a sample script that you can use to connect to the web service and invoke one of the methods.Reference the above documentation for the different web methods in order to set the proper parameters per method.Connect to web service.URI http localhostConfig.Mgr. Web. ServiceConfig.Mgr. asmx. Web New Web.Service. Proxy Uri URI.Invoke method. Web.Get. Deployed. Applications.By. Userusername, yoursecretkeydefinedinapplicationsettings.Principal Consultant and Enterprise Mobility MVP since 2.Nickolaj has been in the IT industry for the past 1.Enterprise Mobility and Security, Windows devices and deployments including automation.Currently working for True.Sec as a Principal Consultant.Awarded as Power.Shell Hero in 2. 01.Creator of Config.Mgr Prerequisites Tool, Config.Mgr OSD Front. End, Config.Mgr Web. Service to name a few.Frequent speaker at conferences and user groups.