The elevation service in Azure Maps never made it to GA (general availability) and was instead deprecated as there was a lack of interest from customers. So it no longer exists.
That said, there are many different ways to get elevation data depending on your need. If you simply need to get the elevation for individual points, there are a ton of options out there, especially if you are only focused on an individual country. For example, in the US, the USGS has high resolution elevation data available for the whole country (higher resolution that what was in Azure Maps). This is available as a REST service called "The National Map - Elevation Point Query Service" https://apps.nationalmap.gov/epqs/ You most likely will want the spatial reference identifier to be 4326, as this is for WGS84 latitude/longitude values which are used by Azure Maps and most other online maps (and GPS devices). This service makes use of the data from the USGS 3DEP program which has 0.5 meter resolution lidar data in some places which is significantly better than the 30 or 90 meter resolution data Azure Maps was using from NASA. Several other countries have similar 3D elevation programs.