@Andy Lau Pik Hui thank you for posting the question on Microsoft Q&A.
Based on the error received, the installer script was not able to connect to the following URL - "https://gbl.his.arc.azure.com/discovery?location=southeastasia&api-version=2.1"
You could verify connectivity from your machine to this URL endpoint, by opening a browser and trying to access it. In working scenario, it should return a set of endpoints as below:
RETURNED OUTPUT:
{"hisEndpoints":["https://sea.his.arc.azure.com"],"atsEndpoints":["https://SoutheastAsia-ats.his.arc.azure.com","https://sea.his.arc.azure.com"]}
In case you are not able to access the url and getting timeout or some other error, I would suggest checking with your networking team to understand the issue. This clearly points to a networking issue than the issue with installer itself.
You have mentioned that the set of URLs were added to host file in windows (in second screenshot of the question)? Did you mean that you added these entries in the host file located in directory - "C:\Windows\System32\drivers\etc"
?
If yes, note that the host file is used by the OS to map the URL to specific IP addresses, without using the DNS. It should not be edited manually unless the IP addresses are well known and not subject to change. I would suggest resetting the host file to the default setting and checking again.
In case I misunderstood the scenario, please add more details/context to help me better understand.
Hope this helps.
If the answer did not help, please add more context/follow-up question for it. Else, if the answer helped, please click Accept answer so that it can help others in the community looking for help on similar topics.