I'm trying to connect to a custom skill which is an Azure Function on a Virtual Network in Debug Sessions. Although it works in an indexer, it gives me the following error om a debug session.
Enrichment.WebApiSkill.custom-embeding-skillCould not execute skill because the Web Api request failed.Web Api response status: 'Forbidden', Web Api response details: '<!DOCTYPE html> <html> <head> <title>Web App - Unavailable</title> <style type="text/css"> html { height: 100%; width: 100%; } #feature { width: 960px; margin: 95px auto 0 auto; overflow: auto; } #content { font-family: "Segoe UI"; font-weight: normal; font-size: 22px; color: #ffffff; float: left; width: 460px; margin-top: 68px; margin-left: 0px; vertical-align: middle; } #content h1 { font-family: "Segoe UI Light"; color: #ffffff; font-weight: normal; font-size: 60px; line-height: 48pt; width: 800px; } p a, p a:visited, p a:active, p a:hover { color: #ffffff; } #content a.button { background: #0DBCF2; border: 1px solid #FFFFFF; color: #FFFFFF; display: inline-block; font-family: Segoe UI; font-size: 24px; line-height: 46px; margin-top: 10px; padding: 0 15px 3px; text-decoration: none; } #content a.button img { float: right; padding: 10px 0 0 15px; } #content a.button:hover { background: #1C75BC; } </style> </head> <body bgcolor="#00abec"> <div id="feature"> <div id="content"> <h1 id="unavailable">Error 403 - Forbidden</h1> <p id="tryAgain">The web app you have attempted to reach has blocked your access.</p> </div> </div> </body> </html> '
My skillset is simple as below.

I set up a shared private link on AI Search to the Azure Function.

Network settings of the Azure Function. If I enable all public network access, debugging works well.

Both the AI Search and the Azure Functions on the same Virtual Network, but no luck, only in Debug sessions.