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.
In this repository31 other files it gives its agents.
- labs/01-azure-operations/resources/grubify/.github/copilot-instructions.mdCopilot instructions
- azure-sre-agentSkill
- frontend-designSkill
- grillingSkill
- humanize-contentSkill
- rvap-brandSkill
- rvas-contentSkill
- skill-creatorSkill
- writing-for-agentsSkill
- sql-server-dbaSkill
- rvas-sre-agent-jumpstartSkill
- azure-change-digestSkill
- azure-finops-reviewSkill
- databricks-dependency-liveSkill
- defender-cloud-liveSkill
- service-health-liveSkill
- rbac-privileged-access-reviewSkill
- entra-full-credential-inventorySkill
- infra-ops-liveSkill
- aks-waf-liveSkill
- azure-backup-liveSkill
- operations-digest-liveSkill
- fabric-chargeback-liveSkill
- sqlmi-maintenance-resilienceSkill
- sre-usecase-builderSkill
- 0001-no-productsSkill
- 0001-iwcSkill
- 0001-vntSkill
- validated-fixtureSkill
- 0003-skill-onlySkill
- exampleSkill
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
- Very specific: line 10
Use ONLY patching-investigation-report.
- Very specific: line 15
If SUBSCRIPTION_ID or MANAGED_IDENTITY_CLIENT_ID still contains a <PLACEHOLDER>, the tool fails closed before authentication or network …
- Very specific: line 27
Every machine in arg_compute_machines is correlated with its maintenance cycles, installation runs, assessment status, pending packages, …
- Very specific: line 45
When sharing_mode="native_ui", render all four *_url values unchanged as native Markdown links/file widgets in the same turn.
≈ “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.
Files
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_IDorMANAGED_IDENTITY_CLIENT_IDstill contains a<PLACEHOLDER>, the tool fails closed before authentication or network calls withstatus="error"anderror.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:arg_compute_machines(microsoft.compute/virtualmachines,microsoft.hybridcompute/machines)arg_patch_assessments(patchassessmentresources | where type !endswith '/softwarepatches')arg_software_patches_pending(patchassessmentresources | where type endswith '/softwarepatches')arg_patch_installations(patchinstallationresources | where type !endswith '/softwarepatches')arg_software_patches_installed(patchinstallationresources | where type endswith '/softwarepatches')arg_maintenance_cycles(maintenanceresources)arg_patch_extensions(microsoft.compute/virtualmachines/extensions,microsoft.hybridcompute/machines/extensions— never readingsettingsorprotectedSettings).
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 inShutdownOrUnresponsiveor installation run failed / exceeded the window.arc_agent_expired_or_disconnected: Azure Arc machine (microsoft.hybridcompute/machines) hasstatusinExpired,Disconnected, orError.assessment_stuck_or_readiness_undetermined: Assessment is stuck inInProgressorFailed, ordetectedVMGuestPatchSupportStateisUnableToDetermine/Unsupported.hotpatch_or_patch_extension_error:hotpatchStatusreports an error (such asHotpatchEnablementRequiredForReadinessreferencingC:\WindowsAzure\Logs\Plugins\Microsoft.CPlat.Core.WindowsPatchExtension\...) or a guest extension is inprovisioningState="Failed".pending_security_patches_unscheduled: Assessment succeeded and found pendingSecurity,Critical, orUpdateRollUppatches, 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 nopatchassessmentresourcesorpatchinstallationresourcestelemetry.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>.htmlsnapshot_path/snapshot_url:patch-<timestamp>-<hash>-snapshot.jsonmachines_csv_path/machines_csv_url:patch-<timestamp>-<hash>-machines.csvpatches_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.
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.

