azure-functions-host
Copilot instructions2k starsChanged 3 months agoMITView on GitHub
Trending
Quiet this year.thin dataabout the whole repository
Who's talking about Azure/azure-functions-host
- Azure/Azure-Functions“WebSockets on Azure Functions”GitHub · Mar 27, 2018 · 68 reactions
- hashicorp/terraform-provider-azurerm“azurerm_windows_function_app and zip_deploy_file not updating existing zip”GitHub · Apr 24, 2023 · 30 reactions
- Azure/Azure-Functions“Use Cases Lost with the Removal of Functions Proxies in Function V4”GitHub · Sep 23, 2021 · 25 reactions
- Azure/azure-webjobs-sdk-extensions“order HTTP routes in a logical way”GitHub · Apr 11, 2023 · 23 reactions
- Azure/azure-functions-core-tools“[Epic] Release Core Tools support for linux arm64”GitHub · Feb 21, 2025 · 21 reactions
The biggest 5 of 10 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 10
Talked about on GitHub (10 times).
On GitHub · 10
- Mar 27, 2018WebSockets on Azure Functions — Azure/Azure-Functions68 reactions · 52 comments
- Apr 24, 2023azurerm_windows_function_app and zip_deploy_file not updating existing zip — hashicorp/terraform-provider-azurerm30 reactions · 13 comments
- Sep 23, 2021Use Cases Lost with the Removal of Functions Proxies in Function V4 — Azure/Azure-Functions25 reactions · 15 comments
- Apr 11, 2023order HTTP routes in a logical way — Azure/azure-webjobs-sdk-extensions23 reactions · 5 comments
- Feb 21, 2025[Epic] Release Core Tools support for linux arm64 — Azure/azure-functions-core-tools21 reactions · 21 comments
5 more on GitHub
- Feb 24, 2023HTTP model enhancements — Azure/azure-functions-dotnet-worker21 reactions · 19 comments
- Nov 29, 2021Improve Node.js Functions programming model 🚀 — Azure/azure-functions-nodejs-worker19 reactions · 17 comments
- Jan 15, 2020IConfiguration not available in Startup class before service configuration — Azure/azure-webjobs-sdk19 reactions · 3 comments
- Jun 26, 2018[Documentation] Zero/minimal downtime deployment best practices documentation request — Azure/Azure-Functions14 reactions · 20 comments
- Aug 8, 2018EventHubs Trigger with "cardinality": "many" fails when input is not valid JSON — Azure/azure-functions-eventhubs-extension12 reactions · 2 comments
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
16 rules. About 0 are common, 7 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 4
Always use the latest version of C#, currently C# 13 features.
- Very specific: line 5
Never change global.json unless explicitly asked to.
- Very specific: line 6
Never change package.json or package-lock.json files unless explicitly asked to.
- Distinctive: line 7
Never change NuGet.config files unless explicitly asked to.
- Distinctive: line 13
Prefer file-scoped namespace declarations and single-line using directives.
- Distinctive: line 15
Ensure that the final return statement of a method is on its own line.
- Distinctive: line 16
Use pattern matching and switch expressions wherever possible.
- Very specific: line 17
Use nameof instead of string literals when referring to member names.
- Very specific: line 18
Ensure that XML doc comments are created for any public APIs.
- Very specific: line 23
Always use is null or is not null instead of == null or != null.
- Distinctive: line 28
Do not emit "Act", "Arrange" or "Assert" comments.
- Distinctive: line 29
Use Moq for mocking in tests.
- Very specific: line 31
Do not use private reflection (e.g., BindingFlags.NonPublic, GetField, GetProperty with non-public flags) to access internal state in tests.
- Very specific: line 35
Prefer System.Text.Json over Newtonsoft.Json for new code.
- Very specific: line 37
Do not use event-based communication (IScriptEventManager pub/sub) for new component coordination.
- Very specific: line 41
When the user reports that Verify_DepsJsonChanges failed, or asks to update / refresh the WebHost deps.json baseline, follow the workflow …
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
General
- Make only high-confidence suggestions when reviewing code changes.
- Always use the latest version of C#, currently C# 13 features.
- Never change global.json unless explicitly asked to.
- Never change package.json or package-lock.json files unless explicitly asked to.
- Never change NuGet.config files unless explicitly asked to.
- For C# string comparisons, always use string.Equals with an appropriate, explicit,
StringComparison.
Formatting
- Apply code-formatting style defined in
.editorconfig. - Prefer file-scoped namespace declarations and single-line using directives.
- Insert a newline before the opening curly brace of any code block (e.g., after
if,for,while,foreach,using,try, etc.). - Ensure that the final return statement of a method is on its own line.
- Use pattern matching and switch expressions wherever possible.
- Use
nameofinstead of string literals when referring to member names. - Ensure that XML doc comments are created for any public APIs. When applicable, include
<example>and<code>documentation in the comments.
Nullable Reference Types
- Declare variables non-nullable, and check for
nullat entry points. - Always use
is nulloris not nullinstead of== nullor!= null. - Trust the C# null annotations and don't add null checks when the type system says a value cannot be null.
Testing
- Do not emit "Act", "Arrange" or "Assert" comments.
- Use Moq for mocking in tests.
- Copy existing style in nearby files for test method names and capitalization.
- Do not use private reflection (e.g.,
BindingFlags.NonPublic,GetField,GetPropertywith non-public flags) to access internal state in tests. If something needs to be tested, make it accessible through public or internal APIs, test-specific seams, or refactor the design to be testable without reflection.
Dependencies & Patterns
- Prefer
System.Text.JsonoverNewtonsoft.Jsonfor new code. Only use Newtonsoft when interfacing with existing APIs that require it (e.g.,JObject-based shared helpers). - In this repository,
Microsoft.Azure.WebJobs.Script.IEnvironmentis our internal interface for accessing process environment data (for example, environment variables and related flags). Do not introduce new usage ofIEnvironmentfor reading configuration; prefer the standardMicrosoft.Extensions.Configuration.IConfigurationabstraction instead. ExistingIEnvironmentusage in legacy code is acceptable but should not be extended beyond its current scope. - Do not use event-based communication (
IScriptEventManagerpub/sub) for new component coordination. Prefer direct method calls orawait-based flows.
Prompts & Workflows
- When the user reports that
Verify_DepsJsonChangesfailed, or asks to update / refresh the WebHostdeps.jsonbaseline, follow the workflow in.github/prompts/update-deps-json.prompt.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

