How do hide Azure function app from search results ?
What is the correct way to hide the published Azure function app from search result ?
For an eventual consistent systems the Azure Function app is mostly the backend that a client or a server can access. So it needs to be hidden from searches.
I tried adding a RobotsEndpoint function but the function URL will have a api/{robots.txt} route name and thus it is no longer in the root directory.
How to explicitly add robots.txt User-agent: * Disallow: /
There's no official guidance or feature to make this simpler. So currently, you'd need to do something like creating the appropriate route and serving the file, but we're transferring this to the appropriate repo to track.
FYI @mattchenderson