How to set the identity in IIS App Pools
To set the indentity in a IIS App Pools we will use a combination of salt modules to get the different app pools and a templated power shell script to change/set the identity including the type which is part of the advanced mode.
The power shell script below is jinja templated: