Hello @tamizh ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
I understand that you would like to know if it is possible to setup an architecture where traffic will be routed from Azure Front Door to Azure Firewall(Hub vnet) to APIM External Vnet(Spoke vnet) to Azure private Endpoint App Services in a Hub-Spoke topology.
Your desired setup should be possible. We have a document explaining a similar architecture that you can refer below:
https://learn.microsoft.com/en-us/azure/architecture/example-scenario/security/hardened-web-app
A custom fully qualified domain name (FQDN) is needed to represent the back-end web app/function app and is mapped through CNAME or A DNS resource records to the public IP address of an Azure firewall.
You can refer the below doc for the steps to configure the above:
https://github.com/Azure/hardened-webapp
The function app is assigned the custom FQDN through the domain verification ID property of the web app. This allows the custom FQDN already mapped to the public IP address of the Azure Firewall to be reused with the web app without altering Domain Name System (DNS) name resolution and network flows.
Refer : https://learn.microsoft.com/en-us/azure/dns/dns-custom-domain
The above custom FQDN is used as a "Custom" backend for your Azure Front Door.
The Azure Firewall is deployed to its own reserved subnet in a virtual network (Hub Virtual Network in the example) and is configured to perform destination network address translation (DNAT) of incoming requests to the private IP address or the private endpoint associated with the web app.
Kindly let us know if the above helps or you need further assistance on this issue.
----------------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.