agentleFS
MicrosoftKnown publishermicrosoft/frontier-sre-agent-rvas/usecases/0083-update-manager-patching-failure-investigation/manifests/skills/patching-investigation-live/SKILL.md

patching-investigation-live

Skill9 starsChanged 49 days agoMITView on GitHub

Read-only Azure Update Manager post-patching cycle reporting and automated per-machine failure & blocker root-cause investigation across Azure VMs and Azure Arc-enabled servers.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use ONLY patching-investigation-report.

    line 10
  2. Very specific:

    If SUBSCRIPTION_ID or MANAGED_IDENTITY_CLIENT_ID still contains a <PLACEHOLDER>, the tool fails closed before authentication or network …

    line 15
  3. Very specific:

    Every machine in arg_compute_machines is correlated with its maintenance cycles, installation runs, assessment status, pending packages, …

    line 27
  4. Very specific:

    When sharing_mode="native_ui", render all four *_url values unchanged as native Markdown links/file widgets in the same turn.

    line 45

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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
SKILL.md

Azure Update Manager patching & failure investigation

Use ONLY patching-investigation-report. The specialist must explicitly select only this tool and this skill; never enable shell, exec, generic Python, write connectors, VM start/stop, or installPatches / assessPatches actions.

Scope, identity and read-only guarantees

  • The tool reads fixed administrator constants (SUBSCRIPTION_ID, MANAGED_IDENTITY_CLIENT_ID, CLIENT_NAME, CLIENT_LOGO_DATA_URI, CLIENT_LOGO_ALT, OUTPUT_DIRECTORY = "patching-investigation-reports").
  • If SUBSCRIPTION_ID or MANAGED_IDENTITY_CLIENT_ID still contains a <PLACEHOLDER>, the tool fails closed before authentication or network calls with status="error" and error.code="configuration_required" (artifact_status="not_written").
  • Executes 7 read-only Azure Resource Graph (https://management.azure.com/providers/Microsoft.ResourceGraph/resources?api-version=2022-10-01) queries:
    1. arg_compute_machines (microsoft.compute/virtualmachines, microsoft.hybridcompute/machines)
    2. arg_patch_assessments (patchassessmentresources | where type !endswith '/softwarepatches')
    3. arg_software_patches_pending (patchassessmentresources | where type endswith '/softwarepatches')
    4. arg_patch_installations (patchinstallationresources | where type !endswith '/softwarepatches')
    5. arg_software_patches_installed (patchinstallationresources | where type endswith '/softwarepatches')
    6. arg_maintenance_cycles (maintenanceresources)
    7. arg_patch_extensions (microsoft.compute/virtualmachines/extensions, microsoft.hybridcompute/machines/extensions — never reading settings or protectedSettings).

Automated per-machine root-cause investigation contract

Every machine in arg_compute_machines is correlated with its maintenance cycles, installation runs, assessment status, pending packages, Hotpatch readiness, and guest extensions into an explicit diagnostic category:

  • maintenance_window_unresponsive: Scheduled maintenance cycle ended in ShutdownOrUnresponsive or installation run failed / exceeded the window.
  • arc_agent_expired_or_disconnected: Azure Arc machine (microsoft.hybridcompute/machines) has status in Expired, Disconnected, or Error.
  • assessment_stuck_or_readiness_undetermined: Assessment is stuck in InProgress or Failed, or detectedVMGuestPatchSupportState is UnableToDetermine / Unsupported.
  • hotpatch_or_patch_extension_error: hotpatchStatus reports an error (such as HotpatchEnablementRequiredForReadiness referencing C:\WindowsAzure\Logs\Plugins\Microsoft.CPlat.Core.WindowsPatchExtension\...) or a guest extension is in provisioningState="Failed".
  • pending_security_patches_unscheduled: Assessment succeeded and found pending Security, Critical, or UpdateRollUp patches, but the machine has no assigned maintenance configuration or installation runs in the window.
  • unassessed_no_update_manager_telemetry: Machine exists in compute inventory (typically deallocated) with no patchassessmentresources or patchinstallationresources telemetry.
  • healthy: Machine is assessed, has no failed/unresponsive cycles, no extension/Hotpatch errors, and zero unscheduled security/critical updates.

Four-file report delivery (operation="report")

For a report request (or the monthly 0 8 1 * * scheduled task), invoke operation="report" once (default period="last_30d", with all filter/paging parameters at defaults) and immediately deliver all four artifacts:

  • report_path / report_url: patch-<timestamp>-<hash>.html
  • snapshot_path / snapshot_url: patch-<timestamp>-<hash>-snapshot.json
  • machines_csv_path / machines_csv_url: patch-<timestamp>-<hash>-machines.csv
  • patches_csv_path / patches_csv_url: patch-<timestamp>-<hash>-patches.csv

When sharing_mode="native_ui", render all four *_url values unchanged as native Markdown links/file widgets in the same turn. Never invent or reuse a thread UUID.

Bounded queries (operation="query")

For targeted questions, invoke operation="query" with view in summary, machines, failures, cycles, patches, extensions, coverage, or actions, and optional filters period, hosting, failure_category, machine_name, limit, and offset. Disclose total_matched, returned, has_more, next_offset, and transport_capped.

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.