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,…
In this repositoryOne other file it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
The file
Files
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.
| Area | Start here | Related coverage / guidance |
| Activation, shared services, disposal | src/extension.ts, src/extensionVariables.ts, src/constants.ts | test/global.test.ts; repository rules |
| Commands, menus, settings, localization | package.json, package.nls.json, src/commands/registerCommands.ts, src/utils/localize.ts | Handlers in src/commands; Azure workflows |
| Client API and authenticated host API | api/src/index.ts, api/src/extensionApi.ts, src/api, src/hostapi.v2.internal.ts, src/hostapi.v4.internal.ts | test/api, test/wrapFunctionsInTelemetry.test.ts; API guide |
| Resources and Focus views | src/tree/azure, src/tree/BranchDataItemCache.ts, src/tree/TreeItemState.ts | test/grouping.test.ts, test/focusGroup.test.ts, test/ResourceGroupGroupingItem.test.ts; tree guide |
| Workspace, Accounts & Tenants, Activity Log trees | src/tree/workspace, src/tree/tenants, src/tree/activityLog, src/api/ResourceProviderManagers.ts | test/api/workspaceResourceProvider.test.ts, test/authAccountStateManager.test.ts; tree guide |
| Subscription/authentication and ARM access | src/services/getSubscriptionProviderFactory.ts, src/services/AzureResourcesService.ts, src/utils/azureClients.ts | test/api/MockAzureSubscriptionProvider.ts, test/api/mockServiceFactory.ts, test/nightly; Azure workflows |
| Resource-group actions, tags, managed identity | src/commands/createResourceGroup.ts, src/commands/deleteResourceGroup, src/commands/tags, src/managedIdentity | test/getTagDiagnostics.test.ts, test/nightly; Azure workflows |
| Cloud Shell terminals and IPC | src/cloudConsole, src/cloudConsole/cloudShellChildProcess | test/cloudConsole.test.ts, test/ipc.test.ts; Azure workflows |
| Chat and in-process MCP registration | src/chat, src/chat/tools/registerMcpTools.ts, src/extension.ts | Tool implementations under src/chat/tools; CoR tools share the pipeline below |
| Copilot on Rails project pipeline | src/commands/copilotOnRails, src/chat/tools/copilotOnRails, src/webviews/copilotOnRails, src/tree/project, src/utils/copilotOnRails | test/copilotOnRails, docs/copilot-create-project.md; pipeline guide |
| Shipped agent prompts and eval contracts | resources/agents, evals/check-agent-drift.ts, evals/msbench, .github/workflows/agent-contracts.yml | evals/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, ormicrosoft-sovereign-cloudfor 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/srcis the client library/contract;src/apiimplements the host and compatibility layers.api/docscontains 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.mjsbuilds 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.
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.

