Azure / Azure/Azure-Functions

How do hide Azure function app from search results ?

Open
#2,182 2 comments 1 reaction 0 assignees View on GitHub
enhancement feature
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

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: /

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing Azure Functions routing behavior for a RobotsEndpoint function and the generated api/{robots.txt} route. Check whether the platform supports a root-level robots.txt containing User-agent: * and Disallow: /. Done means the published app serves that content from the root URL rather than under /api.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
backend, cloud
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.