Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-9234

IIS : Configuration of environment variables per app pool should be possible

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: IIS 4.5.1
    • Fix Version/s: None
    • Component/s: iis
    • Labels:
      None
    • Template:
      MODULES Bug Template
    • QA Risk Assessment:
      Needs Assessment

      Description

      Configuration of environment variables per app pool should be possible
      Module Version: 4.5.1
      Puppet Version: 4.7.2
      OS Name/Version: Windows 2016

      Currently you cannot manage environment variables per app pool with the IIS module. Beginning with IIS10 the environment variables are configured in "C:\Windows\System32\inetsrv\config\applicationHost.config".

      Here are also some commands to manage them via appcmd.exe.

      Adding Environment variables
      > %systemroot%\system32\inetsrv\AppCmd.exe set config -section:system.applicationHost/applicationPools /+"[name='02-Dev-GssoIdp'].environmentVariables.[name='foo',value='bar2']" /commit:apphost

      Removing Environment variables
      > %systemroot%\system32\inetsrv\AppCmd.exe set config section:system.applicationHost/applicationPools /"[name='02-Dev-GssoIdp'].environmentVariables.[name='foo']" /commit:apphost

      Changing Environment variables
      > %systemroot%\system32\inetsrv\AppCmd.exe set config -section:system.applicationHost/applicationPools /"[name='02-Dev-GssoIdp'].environmentVariables.[name='foo'].value:test" /commit:apphost

      Remove Environment variables root element
      > %systemroot%\system32\inetsrv\AppCmd.exe set config section:system.applicationHost/applicationPools /"[name='02-Dev-GssoIdp'].environmentVariables" /commit:apphost

      List all AppPools (including Environment variables)
      > C:\Windows\system32\inetsrv\AppCmd.exe list AppPool /text:*

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            DominikStark Dominik Stark
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support