I have one road shapfile and one raster which has surface information
How can I combine them and create elevation profile?
If you have access to the 3D Extension, then the Stack Profile tool will create an elevation profile from a line. It doesn't "combine the lines and raster"
If you just want to get Z-values into the lines you can use the the Interpolate Shape tool.
If you don't have access to the 3D extension, you'll need to break out the workflow, doing something like:
closest
function to get the Z values onto your "line-points"Alternatively you could do this all in Python and an InsertCursor, moving through the line geometry (vertices) using the Get Cell Value tool to pull the elevation from the raster at a given location.
New in ArcGIS Pro 2.4 : Profile viewing it's fantastic for slicing a UAV derived SLPK mesh and compare to LiDAR from an earlier date as I have in example 2.
You may use the Elevation tool for ArcGIS Pro available in the ArcGIS Marketplace. It is especially suited to compare profiles from different DEM, for example, to analyse the evolution of the elevation over time. https://www.esri.com/en-us/arcgis-marketplace/listing/products/4c66005712cd4e9482b4a937dea86819