agentleFS
Microsoft AzureKnown publisherAzure/Azure-Sentinel/Tools/Microsoft-Sentinel-Classic-CLv1-Tables-Impact-Assessment/.github/copilot-instructions.md

Azure-Sentinel / Microsoft-Sentinel-Classic-CLv1-Tables-Impact-Assessment

Copilot instructions6.2k starsChanged 6 months agoMITView on GitHub

These instructions apply to all Copilot interactions in this repository. They provide context about the project, coding conventions, and domain knowledge so that Copilot can give accurate, relevant assistance. PowerShell tool that discovers classic V1 custom log tables (CLv1) in a Microsoft Sentinel / Log Analytics workspace, assesses dependency impact across all content types, and maps tables to Content Hub solutions with connector classification. The HTTP Data Collector API retires September 14, 2026. All classic custom log tables must migrate…

Trending

Quiet since July.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the Azure/Azure-Sentinel repository that our weekly crawl found: only 5 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

The file

Show its rules and text

We split this copilot-instructions.md into the rules it gives an agent

15 rules. About 0 are common, 7 are distinctive, and 8 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.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Always end with _CL suffix

    line 71
  2. Distinctive:

    Must be migrated to DCR-based custom tables using the Logs Ingestion API

    line 73
  3. Distinctive:

    When mapping tables to Content Hub solutions, each connector is classified:

    line 77
  4. Very specific:

    All ARM calls go through Invoke-ArmRequest — handles pagination and token refresh

    line 111
  5. Very specific:

    Use the Write-Step/Info/Ok/Warn2/Err helpers for console output

    line 114
  6. Distinctive:

    Avoid comments unless explaining complex algorithms

    line 115
  7. Distinctive:

    No build step — the script runs directly

    line 116
  8. Distinctive:

    Must work offline — no external CDN or asset references

    line 122
  9. Very specific:

    Do not edit solution-mapping.json manually — it is auto-generated

    line 129
  10. Very specific:

    Commit messages follow conventional commit format (feat:, fix:, docs:, chore:)

    line 135
  11. Distinctive:

    Do not suggest breaking the script into multiple module files — the single-file design is intentional

    line 139
  12. Very specific:

    Do not add Write-Host calls — use the existing output helpers

    line 140
  13. Very specific:

    Do not call Invoke-RestMethod directly — use Invoke-ArmRequest

    line 141
  14. Distinctive:

    Do not suggest Terraform, Bicep, or ARM template deployments — this is a read-only analysis tool

    line 142
  15. Very specific:

    Do not suggest modifications to data/solution-mapping.json — it is auto-generated

    line 143

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

Microsoft Sentinel Classic (CLv1) Table Impact Assessment — Copilot Instructions

These instructions apply to all Copilot interactions in this repository. They provide context about the project, coding conventions, and domain knowledge so that Copilot can give accurate, relevant assistance.


Project overview

PowerShell tool that discovers classic V1 custom log tables (CLv1) in a Microsoft Sentinel / Log Analytics workspace, assesses dependency impact across all content types, and maps tables to Content Hub solutions with connector classification.

The HTTP Data Collector API retires September 14, 2026. All classic custom log tables must migrate to DCR-based ingestion before this date. This tool automates the discovery and impact assessment to support migration planning.

Repository structure

Invoke-TableMigrationReview.ps1           # Main script — single-file entry point
Templates/report.html.template            # Self-contained HTML report template
data/solution-mapping.json                # Static table→solution lookup (auto-updated weekly)
data/update-solution-mapping.mjs          # Node.js script to refresh mapping from upstream CSVs
.github/copilot-instructions.md           # This file — global Copilot context
.github/instructions/powershell.instructions.md  # PowerShell-specific coding conventions
.github/agents/sentinel-migration-assistant.md   # Copilot custom agent for guided execution
.github/workflows/update-solution-mapping.yml    # Weekly GitHub Action to refresh mapping data
LICENSE                                   # MIT License
README.md                                 # Full project documentation

Architecture

Single-script design

The entire tool is a single PowerShell script (Invoke-TableMigrationReview.ps1) with no external module dependencies beyond Az.Accounts. All helper functions are defined inline. This is intentional — it keeps deployment simple (copy one file).

Execution flow

  1. Authenticate — Validates Az.Accounts context, refreshes ARM bearer token
  2. Discover — GET workspace tables API, filter CustomLog / Classic
  3. Assess impact — Load all content types via ARM, scan for table name references
  4. Map to Content Hub — Match tables against data/solution-mapping.json, classify connectors
  5. Export — Write CSV, JSON, and HTML reports to the output directory

Key internal functions

  • Invoke-ArmRequest — All Azure REST calls go through this wrapper. It handles pagination (nextLink), token refresh, and error formatting. Never call Invoke-RestMethod directly.
  • Get-ArmToken — Retrieves a bearer token from the current Az.Accounts context.
  • Write-Step, Write-Info, Write-Ok, Write-Warn2, Write-Err — Formatted console output helpers. Never use raw Write-Host for status messages.

Data flow

  • Input: Azure subscription ID, resource group, workspace name
  • ARM APIs queried: Tables, Alert Rules, Saved Searches, Workbooks, Logic Apps, DCRs, Content Hub Packages
  • Static data: data/solution-mapping.json (826 tables → 495 solutions, refreshed weekly from Azure-Sentinel upstream)
  • Output: Pipeline PSCustomObject + CSV files + JSON report + HTML report in OutputPath

Domain knowledge

Classic custom log tables (CLv1)

  • Identified by TableType = CustomLog and TableSubType = Classic
  • Always end with _CL suffix
  • Ingested via the HTTP Data Collector API (retiring September 14, 2026)
  • Must be migrated to DCR-based custom tables using the Logs Ingestion API

Connector classification

When mapping tables to Content Hub solutions, each connector is classified:

  • CCF — Codeless Connector Framework. Connector ID ends in CCP, CCF, or Definition. Modern, preferred.
  • AMA — Azure Monitor Agent based. Connector name ends in Ama. Modern, preferred.
  • Platform — Microsoft-native connectors (Azure AD, Office 365, Defender, etc.). Platform-managed.
  • AzureFunctions — Name contains Serverless, AzureFunction, or Polling. Legacy — should migrate to CCF.
  • Agent — CEF / Syslog based. Agent-based collection.
  • Legacy — Anything else. Review manually.

Content types scanned for impact

  • Analytics Rules — Scheduled and NRT detection queries (KQL)
  • Hunting Queries — Proactive threat hunting saved searches (Category = Hunting Queries)
  • Parsers — Workspace functions for normalisation (Category = Samples or function-based)
  • Saved Searches — Log Analytics saved queries
  • Workbooks — Full serialised JSON walk of all query steps
  • SOAR Playbooks — Logic App workflow definitions (action body text)
  • Data Collection Rules — Transform KQL in DCR pipelines

Azure RBAC

The script is read-only and never modifies the workspace. Minimum roles:

  • Microsoft Sentinel Reader — covers alert rules, content hub, saved searches
  • Monitoring Reader — covers DCRs
  • Logic App Reader — covers playbooks
  • Workbook Reader — covers workbooks (subscription-level)

Coding conventions

PowerShell (see also .github/instructions/powershell.instructions.md)

  • PowerShell 7.0+ required — uses null-coalescing (??), ForEach-Object -Parallel
  • #Requires statements for version and module dependencies, not inline checks
  • $ErrorActionPreference = 'Stop' — fail fast on errors
  • All ARM calls go through Invoke-ArmRequest — handles pagination and token refresh
  • Return structured [PSCustomObject] to the pipeline
  • Export CSV with -NoTypeInformation -Encoding UTF8
  • Use the Write-Step/Info/Ok/Warn2/Err helpers for console output
  • Avoid comments unless explaining complex algorithms
  • No build step — the script runs directly

HTML template

  • Templates/report.html.template is a self-contained HTML file with inline CSS and JS
  • Placeholders use {{VARIABLE_NAME}} syntax, replaced by the script at export time
  • Must work offline — no external CDN or asset references

Solution mapping data

  • data/solution-mapping.json is the static lookup file for mapping tables to Content Hub solutions.
  • Source: Azure-Sentinel Solutions Analyzer
  • `` fetches upstream CSVs and regenerates the JSON
  • Do not edit solution-mapping.json manually — it is auto-generated

Git conventions

  • Output directory ./migration-report/ is git-ignored
  • node_modules/ and .vscode/ are git-ignored
  • Commit messages follow conventional commit format (feat:, fix:, docs:, chore:)

What Copilot should NOT do

  • Do not suggest breaking the script into multiple module files — the single-file design is intentional
  • Do not add Write-Host calls — use the existing output helpers
  • Do not call Invoke-RestMethod directly — use Invoke-ArmRequest
  • Do not suggest Terraform, Bicep, or ARM template deployments — this is a read-only analysis tool
  • Do not suggest modifications to data/solution-mapping.json — it is auto-generated

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.