AzureDataFactoryV2/RegExReplace/Scripts/Replace-Values.config.xml
<!--
THIS FILE IS JUST FOR TESTING!!! THE FILE THAT IS USED DURING BUILD/RELASE IS IN THE BRANCH 'adf_publish'!!! --> <valuesToReplace> <!-- each <regExSearch> must contain 3 groups (defined by brackets) the second group will be replaced by <replaceWith> make sure that every element of the regex is covered by a group! --> <valueToReplace> <description>The EnvironmentIdentifier Parameter has to be replace to match the new Environment</description> <isActive>true</isActive> <regExSearch>("environmentIdentifier"\s*:\s*{\s*"type"\s*:\s*"String"\s*,\s*"defaultValue":\s*")(s[a-z][a-z]-sdp-dv[0-9])("\s*})</regExSearch> <replaceWith>__Analytics-Platform-EnvironmentPrefix__</replaceWith> </valueToReplace> <valueToReplace> <description>The EnvironmentIdentifier may also be assigned as string directly to e.g. as an activity parameter</description> <isActive>true</isActive> <regExSearch>("environmentIdentifier"\s*:\s*")(s[a-z][a-z]-sdp-dv[0-9])(")</regExSearch> <replaceWith>__Analytics-Platform-EnvironmentPrefix__</replaceWith> </valueToReplace> <valueToReplace> <description>Change the default sqlAdminName to match the Admin-User in the new environemnt</description> <isActive>true</isActive> <regExSearch>("sqlAdminName"\s*:\s*{\s*"type"\s*:\s*"String"\s*,\s*"defaultValue":\s*")([^\"]+)("\s*})</regExSearch> <replaceWith>__Analytics-DataSources-SQL-IPReporting-AdminUsername__</replaceWith> </valueToReplace> <valueToReplace> <description>Change the default sqlAdminPassword to match the Admin-Password in the new environemnt</description> <isActive>true</isActive> <regExSearch>("sqlAdminPassword"\s*:\s*{\s*"type"\s*:\s*"String"\s*,\s*"defaultValue":\s*")([^\"]+)("\s*})</regExSearch> <replaceWith>__Analytics-DataSources-SQL-IPReporting-AdminPassword__</replaceWith> </valueToReplace> <valueToReplace> <description>Change all references to an Integration Runtime</description> <isActive>true</isActive> <regExSearch>("connectVia"\s*:\s*{\s*"referenceName"\s*:\s*")([^"]*)("\s*,)</regExSearch> <replaceWith>__MyDevOpsVariableContainingTheNewIntegrationRuntimeName__</replaceWith> </valueToReplace> <!-- We need to update all TumblingWindow-Triggers to match the Go-Live date in the specific environment. TumblingWindow-Triggers cannot be updated once they were created! --> <valueToReplace> <description>Update Trigger 'TRG_DeviceDataAndSession_Hour' to match the actual start date in the new environemnt</description> <isActive>true</isActive> <regExSearch>(\/TRG_DeviceDataAndSession_Hour[\w\W]*?[Pp]roperties[\w\W]*?[Tt]ypeProperties[\w\W]*?"startTime":\s")([^"]*)(",)</regExSearch> <replaceWith>__Analytics-DataSources-IotPlatform-DeviceData-GoLiveDateUTC__</replaceWith> </valueToReplace> <valueToReplace> <description>Update Trigger 'TRG_DeviceProperties_Hour' to match the actual start date in the new environemnt</description> <isActive>true</isActive> <regExSearch>(\/TRG_DeviceProperties_Hour[\w\W]*?[Pp]roperties[\w\W]*?[Tt]ypeProperties[\w\W]*?"startTime":\s")([^"]*)(",)</regExSearch> <replaceWith>__Analytics-DataSources-IotPlatform-DeviceProperties-GoLiveDateUTC__</replaceWith> </valueToReplace> <valueToReplace> <description>Update Trigger 'TRG_Gamification_Hourly' to match the actual start date in the new environemnt</description> <isActive>true</isActive> <regExSearch>(\/TRG_Gamification_Hourly[\w\W]*?[Pp]roperties[\w\W]*?[Tt]ypeProperties[\w\W]*?"startTime":\s")([^"]*)(",)</regExSearch> <replaceWith>__Analytics-DataSources-Gamification-GoLiveDateUTC__</replaceWith> </valueToReplace> <valueToReplace> <description>Update Trigger 'TRG_InsurancePortal_Hour' to match the actual start date in the new environemnt</description> <isActive>true</isActive> <regExSearch>(\/TRG_InsurancePortal_Hour[\w\W]*?[Pp]roperties[\w\W]*?[Tt]ypeProperties[\w\W]*?"startTime":\s")([^"]*)(",)</regExSearch> <replaceWith>__Analytics-DataSources-InsurancePortal-GoLiveDateUTC__</replaceWith> </valueToReplace> <valueToReplace> <description>Update Trigger 'TRG_Maneuvers_Hour' to match the actual start date in the new environemnt</description> <isActive>true</isActive> <regExSearch>(\/TRG_Maneuvers_Hour[\w\W]*?[Pp]roperties[\w\W]*?[Tt]ypeProperties[\w\W]*?"startTime":\s")([^"]*)(",)</regExSearch> <replaceWith>__Analytics-DataSources-IotPlatform-Maneuvers-GoLiveDateUTC__</replaceWith> </valueToReplace> </valuesToReplace> |