I have been trying to publish an elevation layer all day and have been running into problems.
I have been using the technique shown on this page.
As well as this technique
I am constantly just getting a publish failed with no explanation as to why.
After multiple attempts I tried to just publish my entire scene which should have included an elevation layer as seen in this blog post by Russell Roberts. https://www.esri.com/arcgis-blog/products/3d-gis/3d-gis/creating-and-using-elevation-layers-in-arcgis-online-arcgis-pro/
Though I did notice that an elevation layer was not included in the share as web scene menu.
Is this functionality still possible? Has the function been removed? Chances are it is user error but I have been successful publishing hosted elevation layers before so any help would be welcomed.