Edit IIS DSC PullServer

Tagged: ,

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Randy Rakestraw Randy Rakestraw 3 weeks, 1 day ago.

  • Author
  • #54614
    Profile photo of Randy Rakestraw
    Randy Rakestraw

    Main Question:
    As the title suggests I was wondering if it is possible to edit the iis pull server in such a way that I can capture all requests and run my own code path.

    Some background:
    I have created the IIS pull server following this tutorial from microsoft: Setting Up a DSC Web Pull Server
    In my DSC configuration I have imported the xWebAdministration module and used the xDscWebService resource to create my PullServer and its endpoints.
    I have applied this configuration to my pull server machine and have been able to have my pull client pull configurations from the pull server.

    Hopes and Dreams:
    The goal of my question is to be able to trigger my own code following any pull request from client nodes.

  • #54717
    Profile photo of Nitin Gupta
    Nitin Gupta

    Running custom code on the Pull Server is currently not supported. What custom code are you planning to run on the pull server? There could be another way to accomplish that.

  • #54725
    Profile photo of Randy Rakestraw
    Randy Rakestraw

    I was planning on creating code for a maintenance window. The goal would be that the pull server would only supply a configuration if the target node was in the set window. With custom code on the pull server I could capture the pull request and run my logic to determine if the target node is currently in the maintenance window.
    Any idea on how to accomplish this would be greatly appreciated.

You must be logged in to reply to this topic.