Hi
I have a DEPLOY TO IIS step that is not working correctly. The Application Pool section of the step has Identity set to Custom User and i am supplying a Username and Password. I would expect that after running the step the ApplicationPool would be running under the account specified in Username but it is running under ApplicationPoolIdentity. This occurs wheather the ApplicationPool is created by the step or is a preexisting ApplicationPool that was already configured to run under the account specified in Username. In both cases the ApplicationPool is running under ApplicationPoolIdentity after the step has run. I’m using octopus server v2023.1 and deploying to windows server 2022 running IIS 10.
Here is the logs section around the application pool configuration
Invoking target script E:\inetpub\wwwroot\i-conX\CustomerWebsites\VF.MT\23.1.1850\Octopus.Features.IISWebSite_BeforePostDeploy.ps1 with parameters.
Detected IIS Version 10.0
Making sure a Web Application "/VF.MT" is configured as a child of "Default Web Site" at "E:\inetpub\wwwroot\i-conX\CustomerWebsites\VF.MT\23.1.1850"...
Acquired mutex Global\Octopus-IIS-Metabase-Mutex
Looking for the parent Site "Default Web Site" at "IIS:\Sites\Default Web Site"...
Acquired mutex Global\Octopus-IIS-Metabase-Mutex
Loading Application pool
Application pool "DefaultAppPool" already exists
Acquired mutex Global\Octopus-IIS-Metabase-Mutex
Set application pool identity: ApplicationPoolIdentity
Acquired mutex Global\Octopus-IIS-Metabase-Mutex
Set .NET framework version: v4.0
Web Application "/VF.MT" already exists, no need to create it.
Acquired mutex Global\Octopus-IIS-Metabase-Mutex
Setting physical path of IIS:\Sites\Default Web Site\VF.MT to E:\inetpub\wwwroot\i-conX\CustomerWebsites\VF.MT\23.1.1850
Acquired mutex Global\Octopus-IIS-Metabase-Mutex
Loading Site
Assigning "IIS:\Sites\Default Web Site\VF.MT" to application pool "DefaultAppPool"...
IIS configuration complete
Thanks, Jonathan