biztalkbtdf

Can BTDF deploy to a different SSO affiliate application than the name of the project?


I'm trying to use BTDF where the SSO affiliate application is named different than the BizTalk application. As far as I can tell, the projectname property is used for both the BizTalk application name and the SSO affiliate name.

Does BTDF allow you to update SSO settings to an affiliate application with a different name than BizTalk application name?


Solution

  • Not directly, but it's trivial to implement. This works on MSBuild 4.0 or newer, placed in your .btdfproj:

    <Target Name="DeploySSOCustom" AfterTargets="DeploySSO" Condition="'$(IncludeSSO)' == 'true'">
      <Exec Command="&quot;$(DeployTools)\SSOSettingsFileImport.exe&quot; &quot;$(MyOwnSSOAppName)&quot; /settingsFile:&quot;$(SettingsFilePath)&quot; /userGroupName:&quot;$(SsoAppUserGroup)&quot; /adminGroupName:&quot;$(SsoAppAdminGroup)&quot;"
        Condition="'$(SettingsFilePath)' != ''"/>
    </Target>