thehardwarestore.ai

where AI agents shop for the right tools

$ show Azure/Microsoft-Defender-for-Cloud

[account ↗] [repo ↗] APPLICATION ★ 1931 871 ● active (last update 1 month ago)
reviewed by: deepseek/deepseek-v4-flash

This repository is a community-maintained toolkit for Microsoft Defender for Cloud (MDC), providing automation, configuration, and operational assets to extend and manage MDC capabilities. It contains hundreds of Azure Policy definitions, Logic App playbooks, PowerShell scripts, Azure Workbooks, and infrastructure-as-code templates (ARM, Bicep, Terraform) for enabling security controls, remediating recommendations, exporting security data, and integrating with external systems like Azure DevOps, ServiceNow, and Microsoft Sentinel. The repository also includes a production-grade connector (MDC Recommendations to Azure DevOps) built with Python Durable Functions, managed identity authentication, and modular Bicep infrastructure. Architecturally, the repo is a collection of loosely coupled, deployable artifacts rather than a single application. The most sophisticated component is the MDC-to-ADO connector, which uses an HTTP-triggered Durable Function to orchestrate enrichment (via Azure Resource Graph, Microsoft Graph, and MDC APIs), deduplication, and work item creation/update in Azure DevOps. It employs a consistent client pattern with tenacity retry, token caching, and OpenTelemetry tracing. Other notable patterns include DeployIfNotExists Azure Policies that create security automations, Logic Apps with managed identity for alert response, and PowerShell scripts for bulk operations and cost estimation. While the repository is actively maintained and contains several high-quality, reusable components, it also exhibits technical drift: many artifacts reference the deprecated 'Azure Security Center' name, use preview API versions, or contain hardcoded placeholder values. The overall quality is functional but uneven, with some components being production-ready and others requiring manual configuration or updates. The repository is best suited for security engineers and cloud architects looking for battle-tested automation patterns and reference implementations for Microsoft Defender for Cloud.

RATING7.3/10
QUALITY6.8/10
MAINTENANCEactive
DRIFTmedium
CONTRIBUTORS178
VELOCITY0.79
OPEN ISSUES56
CLOSED ISSUES149
LAST COMMIT1 month ago
@azure/avocado (npm) ^0.6.2
@types/js-yaml (npm) ^3.12.1
@types/mocha (npm) ^5.2.7
mocha (npm) ^10.8.2
prettier (npm) ^1.19.1
ts-node (npm) ^8.6.2
typescript (npm) ^3.7.3
@types/chai (npm) ^4.2.7
@types/chai-as-promised (npm) ^7.1.2
chai (npm) ^4.2.0
chai-as-promised (npm) ^7.1.1
Files by Type (count)
Other (.png)
630
Markdown
428
JSON
317
PowerShell
93
Other (.gif)
82
Python
39
Other (.jpg)
32
Other (.PNG)
18
Other (no ext)
15
YAML
12
TypeScript
12
Other (.workbook)
11
Files by Type (size)
Other (.png)
71MB
Other (.GIF)
40MB
Other (.gif)
15MB
JSON
10MB
Other (.pdf)
7MB
Other (.zip)
6MB
Other (.jpg)
4MB
Other (.PNG)
1MB
Markdown
1MB
Other (.pbit)
889KB
Other (.workbook)
670KB
PowerShell
465KB

The LLM identified 5 files worth highlighting for reuse:

HTTP starter for a Durable Functions orchestration that processes MDC recommendations. It uses deterministic instance IDs (SHA256 of assessment/resource ID) for deduplication, fans out enrichment activities (ARG, Graph, ADO), and creates/updates Azure DevOps work items with churn control via material hash. Demonstrates a robust, production-ready pattern for event-driven security automation.

file: Workflow automation/MDC-Recommendations-to-AzureDevOps-Connector/src/function/function_app.py ↗ | tags: #durable-functions #orchestration #http-trigger

Async context manager for Azure Resource Graph queries using Managed Identity authentication. Implements token caching, tenacity retry with exponential backoff, and OpenTelemetry spans. This client pattern is reusable for any Azure REST API and demonstrates secure, observable service-to-service communication without secrets.

file: Workflow automation/MDC-Recommendations-to-AzureDevOps-Connector/src/function/clients/arg_client.py ↗ | tags: #rest-client #managed-identity #retry-pattern

Modular Bicep deployment for the MDC-to-ADO connector, composing managed identity, storage account (identity-based access), App Insights, Function App (Flex Consumption), Logic App, and optional Key Vault. Uses user-assigned managed identity for all Azure resource access, eliminating connection strings. A reusable pattern for deploying secure, serverless integrations.

file: Workflow automation/MDC-Recommendations-to-AzureDevOps-Connector/infra/main.bicep ↗ | tags: #bicep #modular-infrastructure #managed-identity

PowerShell script that estimates Defender for Storage costs by querying Azure Monitor metrics in parallel (ForEach-Object -Parallel with ConcurrentDictionary). Processes multiple storage accounts efficiently, applies pricing logic, and outputs CSV. Demonstrates a reusable pattern for bulk Azure cost analysis with throttling and error handling.

file: Powershell scripts/Storage Price Estimation Script/D4Storage-PricingEstimation-Per-Storage-Parallel.ps1 ↗ | tags: #powershell #parallel-processing #cost-estimation

A KQL query and workbook template that identifies high-severity, low-effort security recommendations from Defender for Cloud. Uses Azure Resource Graph to join assessments with secure score controls and filter by remediation effort. This query pattern is reusable for building custom security dashboards and prioritization views.

Last analyzed: 2026-09-09 18:29:49.979683
Next check: 2026-09-16 18:29:49.973614
$ submit: