Hi Syed Munaz,
To be able to reach the keyvault privately you need the private endpoint on the keyvault. The keyvault gets a private ip address and you can refer to it from your app service.
If you want to use the name of the keyvault you need to add a private dns zone for keyvaults and associate the private endpoint to the dns zone.