Createing an IIS WebAppPool, properties do not set

Welcome Forums DSC (Desired State Configuration) Createing an IIS WebAppPool, properties do not set

This topic contains 1 reply, has 2 voices, and was last updated by

 
Keymaster
4 years, 3 months ago.

  • Author
    Posts
  • #17619

    Participant
    Points: 0
    Rank: Member

    Has anyone run accross the this,
    When I use the following the code any script beyond the new-webAppPool does not get executed.
    I can run it when I test it as a standalone function but, no go with in the dsc resource.

    Set-Target Resource
    {
    Param(
    [system.string]$name
    [system.string]$RuntimeVersion
    )

    ...other code

    write-verbose('Create New WeAppPool $name")
    new-WebAppPool -name $name

    write-verbose('Set RuntimeVersion)
    Set-ItemProperty -Path IIS:\\AppPools\$name ManageRunTimeVersion $RunTimeVersion

    ...other set-itemproperty (I've also tried : & $env:windir\system32\inetsrv\appcmd.exe)

    }

  • #17656

    Keymaster
    Points: 1,624
    Helping HandTeam Member
    Rank: Community Hero

    So, my first suspect is usually permissions, since the LCM runs as SYSTEM. Have you looked at that?

The topic ‘Createing an IIS WebAppPool, properties do not set’ is closed to new replies.