agentleFS
MicrosoftKnown publishermicrosoft/vscode-azureresourcegroups/AGENTS.md

vscode-azureresourcegroups

AGENTS.md80 starsChanged 12 days agoMITView on GitHub

For implementation, testing, and review rules, read .github/copilot-instructions.md. This map identifies code ownership, not additional product requirements. Start with the narrowest affected route. package.json contribution -> src/extension.ts / command registration -> handler or API adapter -> resource/subscription service or branch provider -> tree refresh, activity/output, or webview -> test. - Azure Resources supplies the shared Azure sign-in/subscription path used by consuming extensions. src/extension.ts -> getSubscriptionProviderFactory.ts -> Resources' VSCodeAzureSubscriptionProvider.ts -> @microsoft/vscode-azext-azureauth -> vscode.authentication -> VS Code's built-in Microsoft Authentication provider (microsoft,…

The file

Files
AGENTS.md

Architecture and ownership map

For implementation, testing, and review rules, read .github/copilot-instructions.md. This map identifies code ownership, not additional product requirements. Start with the narrowest affected route.

Trace a feature

package.json contribution -> src/extension.ts / command registration -> handler or API adapter -> resource/subscription service or branch provider -> tree refresh, activity/output, or webview -> test.

AreaStart hereRelated coverage / guidance
Activation, shared services, disposalsrc/extension.ts, src/extensionVariables.ts, src/constants.tstest/global.test.ts; repository rules
Commands, menus, settings, localizationpackage.json, package.nls.json, src/commands/registerCommands.ts, src/utils/localize.tsHandlers in src/commands; Azure workflows
Client API and authenticated host APIapi/src/index.ts, api/src/extensionApi.ts, src/api, src/hostapi.v2.internal.ts, src/hostapi.v4.internal.tstest/api, test/wrapFunctionsInTelemetry.test.ts; API guide
Resources and Focus viewssrc/tree/azure, src/tree/BranchDataItemCache.ts, src/tree/TreeItemState.tstest/grouping.test.ts, test/focusGroup.test.ts, test/ResourceGroupGroupingItem.test.ts; tree guide
Workspace, Accounts & Tenants, Activity Log treessrc/tree/workspace, src/tree/tenants, src/tree/activityLog, src/api/ResourceProviderManagers.tstest/api/workspaceResourceProvider.test.ts, test/authAccountStateManager.test.ts; tree guide
Subscription/authentication and ARM accesssrc/services/getSubscriptionProviderFactory.ts, src/services/AzureResourcesService.ts, src/utils/azureClients.tstest/api/MockAzureSubscriptionProvider.ts, test/api/mockServiceFactory.ts, test/nightly; Azure workflows
Resource-group actions, tags, managed identitysrc/commands/createResourceGroup.ts, src/commands/deleteResourceGroup, src/commands/tags, src/managedIdentitytest/getTagDiagnostics.test.ts, test/nightly; Azure workflows
Cloud Shell terminals and IPCsrc/cloudConsole, src/cloudConsole/cloudShellChildProcesstest/cloudConsole.test.ts, test/ipc.test.ts; Azure workflows
Chat and in-process MCP registrationsrc/chat, src/chat/tools/registerMcpTools.ts, src/extension.tsTool implementations under src/chat/tools; CoR tools share the pipeline below
Copilot on Rails project pipelinesrc/commands/copilotOnRails, src/chat/tools/copilotOnRails, src/webviews/copilotOnRails, src/tree/project, src/utils/copilotOnRailstest/copilotOnRails, docs/copilot-create-project.md; pipeline guide
Shipped agent prompts and eval contractsresources/agents, evals/check-agent-drift.ts, evals/msbench, .github/workflows/agent-contracts.ymlevals/grader-certification; evaluation guide

Important boundaries

  • Azure Resources supplies the shared Azure sign-in/subscription path used by consuming extensions. src/extension.ts -> getSubscriptionProviderFactory.ts -> Resources' VSCodeAzureSubscriptionProvider.ts -> @microsoft/vscode-azext-azureauth -> vscode.authentication -> VS Code's built-in Microsoft Authentication provider (microsoft, or microsoft-sovereign-cloud for non-public clouds). The package discovers accounts, tenants, and subscriptions and exposes subscription-bound session access; SDK credentials adapt those sessions. This is not Azure CLI login, nor the v4 extension-to-extension API credential handshake. See authentication guidance for interactive consent, cloud/account scope, and the explicit federated-provider exception.
  • api/src is the client library/contract; src/api implements the host and compatibility layers. api/docs contains documentation snapshots, not implementation imports.
  • Resource providers enumerate resources; branch data providers supply their tree representation. Azure, Focus, Workspace, Tenants, and Activity Log are separate refresh surfaces. The project progress tree is part of Copilot on Rails, not the generic resource-provider pipeline.
  • Copilot on Rails has extension-side controllers, browser-side React views, shared artifact types/parsers, and shipped agent instructions. Its workspace artifacts are untrusted inputs. Preserve the existing artifact-security and documentation-sync contracts.
  • esbuild.mjs builds the extension, Cloud Shell launcher, and CoR webview bundle. Root, api, evals, and React-view TypeScript configurations have different responsibilities.
  • Repo-wide ownership is recorded in .github/CODEOWNERS; do not infer a new team or API owner from this navigation map.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.