How to set mapping IP addresses to host name like in /etc/hosts in windows on azure function/azure app services

Zbigniew Napieralski 0 Reputation points
2023-10-21T10:00:30.4333333+00:00

Hi,

I have problem with find option to map IP adressess to host name.

I have Azure VPN connection between Azure and on-premise enviromnet and its working fine, I can connect to api on on-prem side, I can use tcpping to it.

But from on-prem side I have one IP adress which connected two services on diffrent ports.

User's image

On screen tcpping using ip address and ports works ok, but when I try to ping hostname not work.

Normally I will add record to /etc/hosts and it will works but on Azure I do not have privileges to modify this file

User's image

I need map IP address to HostName because Apache Kafka is configured in that way that only accept host name not IP address and this IP is just NAT(Kafka have diffrent IP)

And ofcourse I can not modify any part on on-premise side ( its different company, they provide to us some data)

I have Azure Function connected to VNET, function stored on OS Windows, hosting on app service plan, using .NET7 - I do not know if its necessery information but I added - maybe on linux operation system it will works?

Have someone had the same issue?

Thanks in advance

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,338 questions
{count} votes