Unable to add a Keyhole Markup Language (KML) or KMZ (compressed version of KML) file through the Virtual Directory URL in Portal for ArcGIS Map Viewer in ArcGIS Enterprise when it is on the same machine as Portal for ArcGIS.
Portal for ArcGIS in ArcGIS Enterprise fails to add Keyhole Markup Language (KML) as an item when the KML/KMZ file is hosted on the same web server as the ArcGIS Web Adaptor machine.