Hi,
I'm using BDTF 5.7 with BizTalk Server 2016 and I can't get the
IdentityType = SpecificUser in the IISAppPool itemgroup to work 'out-of-the-box'. BTDF keeps throwing error 'IdentityType is set to SpecificUser but either the UserName or the Password is missing.'
Fields are present and populated in the settingsfilegenerator.xml. They are retrieved using PropsFromEnvSettings, as is acknowledged in the output window during deployment:
SetPropertiesFromEnvironmentSettings:
Setting properties from environment settings file (D:\Development\..\EnvironmentSettings\Exported_LocalSettings.xml)
Setting property 'SsoAppUserGroup' to value 'BizTalk Application Users'.
Setting property 'SsoAppAdminGroup' to value 'BizTalk Server Administrators'.
Setting property 'VDIR_UserPass' to value 'pwd'.
Setting property 'VDIR_UserName' to value 'username'.
The AppPool definition is as follows:
<ItemGroup>
<IISAppPool Include="MyAppPool">
<DeployAction>CreateOrUpdate</DeployAction>
<DotNetFrameworkVersion>v4.0</DotNetFrameworkVersion>
<IdentityType>SpecificUser</IdentityType>
<UserName>$(VDIR_UserName)</UserName>
<Password>$(VDIR_UserPass)</Password>
<PipelineMode>Integrated</PipelineMode>
<UndeployAction>Delete</UndeployAction>
</IISAppPool>
</ItemGroup>
But this throws error 'IdentityType is set to SpecificUser but either the UserName or the Password is missing.'
Funny thing is, when I alter the Deployment.btdfproj file by explicitly adding a ItemDefinitionGroup for the IISAppPool with items
UserName and
Password the deployment succeeds!????
<ItemDefinitionGroup>
<IISAppPool>
<IdentityType>SpecificUser</IdentityType>
<UserName>$(VDIR_UserName)</UserName>
<Password>$(VDIR_UserPass)</Password>
</IISAppPool>
</ItemDefinitionGroup>
<ItemGroup>
<IISAppPool Include="MyAppPool">
<DeployAction>CreateOrUpdate</DeployAction>
<DotNetFrameworkVersion>v4.0</DotNetFrameworkVersion>
<PipelineMode>Integrated</PipelineMode>
<UndeployAction>Delete</UndeployAction>
</IISAppPool>
</ItemGroup>
Output from 'Output Window':
DeployIISAppPools:
Updating IIS application pool 'MyAppPool'...
Created/updated IIS application pool 'MyAppPool'.
Anyone any idea why the 'out-of-the-box' IISAppPool definition with SpecificUser doesn't seem to work, but by defining the ItemDefinitionGroup it does? And more importantly, why is the first example not working?
Cheers,
Michel