title: programmatically added application pool (app pool) is not showing up in Internet Information Services (IIS) Manager
body: <p>(Using IronPython), I'm adding an application pool as follows, but the app pool won't show up in Internet Information Services (IIS) Manager.</p>
  
  <p>Anyone know why this discrepancy is happening? This is working because I see the app pool I added when I look through the app pools (<code>serverManager.ApplicationPools</code>).</p>
  
  <pre><code>import clr
  clr.AddReference("Microsoft.Web.Administration")
  
  from Microsoft.Web.Administration import *
  import getpass
  
  current_user = System.Security.Principal.WindowsIdentity.GetCurrent().Name
  
  serverManager = ServerManager()
  app_pool = serverManager.ApplicationPools.Add("my pool name")
  app_pool.AutoStart = True
  app_pool.ManagedPipelineMode = ManagedPipelineMode.Integrated
  app_pool.ManagedRuntimeVersion = "v2.0"
  app_pool.ProcessModel.IdentityType =   ProcessModelIdentityType.SpecificUser
  app_pool.ProcessModel.UserName = current_user
  app_pool.ProcessModel.Password = getpass.getpass("Password:")
  
  serverManager.CommitChanges()
  </code></pre>