[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6GY823PBPZZT2DA15XYP1N9":3,"skill-same:01M6GY823PBPZZT2DA15XYP1N9":85},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":53,"install":54,"resources":67},"01M6GY823PBPZZT2DA15XYP1N9","implementing-azure-defender-for-cloud",null,"Implementing Microsoft Defender for Cloud to enable cloud security posture management, workload protection across VMs, containers, databases, and storage, configure security recommendations, and set up adaptive security controls with automated remediation.","micsapp\u002Fmicstec-skills","micsapp","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F82411001?v=4","01M6GWCFQ6D3PV8EHNY62NN5VW","01M6GWCFVE1PA5HG0DKC7AMFJ3",4,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002F_universal\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-azure-defender-for-cloud\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"azure defender for cloud","defender","azure","cloud","implementing azure defender for cloud","cwpp","recommendations","across","configure security","databases","up","configure","security-recommendations","cybersecurity","defender-for-cloud","cspm","SET","remediation","cloud-security","storage","2026-11-10 10:12:30",false,"---\nname: implementing-azure-defender-for-cloud\ndescription: >\n  Implementing Microsoft Defender for Cloud to enable cloud security posture management,\n  workload protection across VMs, containers, databases, and storage, configure security\n  recommendations, and set up adaptive security controls with automated remediation.\ndomain: cybersecurity\nsubdomain: cloud-security\ntags: [cloud-security, azure, defender-for-cloud, cspm, cwpp, security-recommendations]\nversion: \"1.0\"\nauthor: mahipal\nlicense: Apache-2.0\n---\n\n# Implementing Azure Defender for Cloud\n\n## When to Use\n\n- When enabling comprehensive security monitoring across Azure subscriptions\n- When implementing cloud workload protection for VMs, containers, SQL, storage, and Key Vault\n- When compliance requirements demand continuous assessment against regulatory frameworks\n- When building adaptive security controls that respond to detected threats\n- When centralizing security findings from Azure-native and hybrid workloads\n\n**Do not use** for non-Azure workload protection exclusively (use AWS Security Hub or GCP SCC), for application-level security testing (use Azure DevOps DAST\u002FSAST), or for identity-specific protection (use Microsoft Defender for Identity).\n\n## Prerequisites\n\n- Azure subscription with Contributor or Security Admin role\n- Azure Policy enabled for compliance assessment\n- Log Analytics workspace for diagnostic data collection\n- Azure Arc connected machines for hybrid server protection\n- Pricing tier set to Standard for Defender plans (free tier provides CSPM only)\n\n## Workflow\n\n### Step 1: Enable Defender for Cloud Plans\n\nEnable the appropriate Defender plans for each workload type requiring protection.\n\n```bash\n# Enable Defender for Cloud CSPM (foundational posture management)\naz security pricing create --name CloudPosture --tier standard\n\n# Enable Defender for Servers\naz security pricing create --name VirtualMachines --tier standard \\\n  --subplan P2\n\n# Enable Defender for Containers\naz security pricing create --name Containers --tier standard\n\n# Enable Defender for Storage\naz security pricing create --name StorageAccounts --tier standard \\\n  --subplan PerStorageAccount\n\n# Enable Defender for SQL\naz security pricing create --name SqlServers --tier standard\n\n# Enable Defender for Key Vault\naz security pricing create --name KeyVaults --tier standard\n\n# Enable Defender for App Service\naz security pricing create --name AppServices --tier standard\n\n# Verify all enabled plans\naz security pricing list \\\n  --query \"[].{Plan:name, Tier:pricingTier, SubPlan:subPlan}\" -o table\n```\n\n### Step 2: Configure Auto-Provisioning of Security Agents\n\nEnable automatic deployment of monitoring agents to VMs and containers.\n\n```bash\n# Enable auto-provisioning of Log Analytics agent\naz security auto-provisioning-setting update \\\n  --name default --auto-provision on\n\n# Configure Log Analytics workspace for data collection\naz security workspace-setting create \\\n  --name default \\\n  --target-workspace \"\u002Fsubscriptions\u002FSUB_ID\u002FresourceGroups\u002FRG\u002Fproviders\u002FMicrosoft.OperationalInsights\u002Fworkspaces\u002FSecurityWorkspace\"\n\n# Enable Defender for Containers auto-provisioning components\naz security setting update \\\n  --name Sentinel \\\n  --setting-kind DataExportSettings\n\n# Verify auto-provisioning status\naz security auto-provisioning-setting list -o table\n```\n\n### Step 3: Review and Prioritize Security Recommendations\n\nRetrieve security recommendations and prioritize remediation based on secure score impact.\n\n```bash\n# Get the current secure score\naz security secure-score list \\\n  --query \"[].{Name:displayName, Current:current, Max:max, Percentage:percentage}\" -o table\n\n# List all active security recommendations\naz security assessment list \\\n  --query \"[?status.code=='Unhealthy'].{Name:displayName, Severity:metadata.severity, Category:metadata.category, ResourceCount:status.cause}\" \\\n  -o table\n\n# Get recommendations sorted by severity\naz security assessment list \\\n  --query \"[?status.code=='Unhealthy'] | sort_by(@, &metadata.severity)\" \\\n  -o table\n\n# Get detailed recommendation with remediation steps\naz security assessment show \\\n  --name ASSESSMENT_ID \\\n  --query \"{Name:displayName, Description:metadata.description, Severity:metadata.severity, Remediation:metadata.remediationDescription}\"\n\n# List recommendations by control\naz security secure-score-controls list \\\n  --query \"[].{Control:displayName, CurrentScore:current, MaxScore:max, NotHealthy:notHealthyResourceCount}\" \\\n  -o table\n```\n\n### Step 4: Configure Regulatory Compliance Dashboard\n\nEnable compliance standards and monitor adherence across subscriptions.\n\n```bash\n# List available regulatory compliance standards\naz security regulatory-compliance-standards list \\\n  --query \"[].{Standard:name, State:state}\" -o table\n\n# Enable specific compliance standards\naz security regulatory-compliance-standards update \\\n  --name \"CIS-Azure-2.0\" --state \"Enabled\"\n\naz security regulatory-compliance-standards update \\\n  --name \"PCI-DSS-4.0\" --state \"Enabled\"\n\naz security regulatory-compliance-standards update \\\n  --name \"NIST-SP-800-53-R5\" --state \"Enabled\"\n\n# Get compliance status for a specific standard\naz security regulatory-compliance-controls list \\\n  --standard-name \"CIS-Azure-2.0\" \\\n  --query \"[].{Control:id, Description:displayName, State:state, PassedResources:passedResources, FailedResources:failedResources}\" \\\n  -o table\n\n# Get failing assessments for a control\naz security regulatory-compliance-assessments list \\\n  --standard-name \"CIS-Azure-2.0\" \\\n  --control-name \"2.1\" \\\n  --query \"[?state=='Failed'].{Assessment:id, State:state}\" -o table\n```\n\n### Step 5: Set Up Security Alerts and Automation\n\nConfigure alert notifications and automated response workflows.\n\n```bash\n# Create security contact for alert notifications\naz security contact create \\\n  --name \"SecurityTeam\" \\\n  --email \"security-ops@company.com\" \\\n  --phone \"+1-555-0199\" \\\n  --alert-notifications on \\\n  --alerts-to-admins on\n\n# List active security alerts\naz security alert list \\\n  --query \"[?status=='Active'].{Name:alertDisplayName, Severity:severity, Time:timeGeneratedUtc, Status:status}\" \\\n  -o table\n\n# Create workflow automation for high-severity alerts (Logic App trigger)\naz security automation create \\\n  --name \"high-severity-alert-response\" \\\n  --resource-group \"security-rg\" \\\n  --scopes \"[{\\\"description\\\":\\\"Full subscription\\\",\\\"scopePath\\\":\\\"\u002Fsubscriptions\u002FSUB_ID\\\"}]\" \\\n  --sources \"[{\n    \\\"eventSource\\\":\\\"Alerts\\\",\n    \\\"ruleSets\\\":[{\n      \\\"rules\\\":[{\n        \\\"propertyJPath\\\":\\\"Severity\\\",\n        \\\"propertyType\\\":\\\"String\\\",\n        \\\"expectedValue\\\":\\\"High\\\",\n        \\\"operator\\\":\\\"Equals\\\"\n      }]\n    }]\n  }]\" \\\n  --actions \"[{\n    \\\"logicAppResourceId\\\":\\\"\u002Fsubscriptions\u002FSUB_ID\u002FresourceGroups\u002Fsecurity-rg\u002Fproviders\u002FMicrosoft.Logic\u002Fworkflows\u002Falert-response\\\",\n    \\\"actionType\\\":\\\"LogicApp\\\"\n  }]\"\n```\n\n### Step 6: Implement Adaptive Application Controls and JIT VM Access\n\nConfigure advanced workload protection features for runtime security.\n\n```bash\n# Enable Just-In-Time VM access\naz security jit-policy create \\\n  --resource-group \"production-rg\" \\\n  --name \"jit-policy\" \\\n  --virtual-machines \"[{\n    \\\"id\\\":\\\"\u002Fsubscriptions\u002FSUB_ID\u002FresourceGroups\u002Fproduction-rg\u002Fproviders\u002FMicrosoft.Compute\u002FvirtualMachines\u002Fweb-server-01\\\",\n    \\\"ports\\\":[\n      {\\\"number\\\":22,\\\"protocol\\\":\\\"TCP\\\",\\\"allowedSourceAddressPrefix\\\":\\\"*\\\",\\\"maxRequestAccessDuration\\\":\\\"PT3H\\\"},\n      {\\\"number\\\":3389,\\\"protocol\\\":\\\"TCP\\\",\\\"allowedSourceAddressPrefix\\\":\\\"*\\\",\\\"maxRequestAccessDuration\\\":\\\"PT3H\\\"}\n    ]\n  }]\"\n\n# Request JIT access when needed\naz security jit-policy initiate \\\n  --resource-group \"production-rg\" \\\n  --name \"jit-policy\" \\\n  --virtual-machines \"[{\n    \\\"id\\\":\\\"VM_ID\\\",\n    \\\"ports\\\":[{\\\"number\\\":22,\\\"endTimeUtc\\\":\\\"2026-02-23T15:00:00Z\\\",\\\"allowedSourceAddressPrefix\\\":\\\"10.0.1.50\\\"}]\n  }]\"\n\n# Review adaptive application control recommendations\naz security adaptive-application-controls list \\\n  --query \"[].{Group:displayName, Recommendation:recommendationAction, VMCount:vmRecommendations|length(@)}\" \\\n  -o table\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| Microsoft Defender for Cloud | Azure-native security platform providing CSPM and cloud workload protection (CWP) across Azure, hybrid, and multi-cloud environments |\n| Secure Score | Numerical measure of an organization's security posture based on the percentage of security recommendations that have been implemented |\n| Security Recommendation | Actionable guidance from Defender for Cloud to improve security posture, prioritized by severity and secure score impact |\n| Defender Plan | Workload-specific protection tier (Servers, Containers, SQL, Storage, etc.) that enables advanced threat detection for specific resource types |\n| Just-In-Time VM Access | Feature that reduces attack surface by blocking management ports (SSH\u002FRDP) by default and granting time-limited access on request |\n| Adaptive Application Controls | Machine-learning-based allowlisting that recommends which applications should be allowed to run on VMs |\n\n## Tools & Systems\n\n- **Microsoft Defender for Cloud**: Central security platform with CSPM, CWP, and regulatory compliance capabilities\n- **Azure Policy**: Governance service used by Defender for Cloud to evaluate and enforce security configurations\n- **Log Analytics Workspace**: Backend data store for security telemetry collected by Defender agents\n- **Azure Logic Apps**: Workflow automation for incident response triggered by Defender alerts\n- **Azure Arc**: Extends Defender for Cloud protection to hybrid and multi-cloud servers and Kubernetes clusters\n\n## Common Scenarios\n\n### Scenario: Rolling Out Defender for Cloud Across a Multi-Subscription Enterprise\n\n**Context**: An enterprise with 20 Azure subscriptions needs to enable Defender for Cloud with server, container, and SQL protection while establishing a compliance baseline against CIS Azure 2.0.\n\n**Approach**:\n1. Enable the CSPM plan (CloudPosture) across all subscriptions using Azure Policy initiative\n2. Enable Defender for Servers P2, Containers, and SQL on production subscriptions\n3. Configure auto-provisioning to deploy Log Analytics agents to all VMs\n4. Enable CIS Azure 2.0 and PCI DSS 4.0 compliance standards\n5. Create security contacts and configure alert notifications to the SOC team\n6. Set up workflow automation for High severity alerts via Logic Apps\n7. Enable JIT VM access for all production servers to eliminate persistent SSH\u002FRDP exposure\n8. Create a weekly Secure Score report for executive stakeholders\n\n**Pitfalls**: Defender for Servers P2 costs per server per hour. For environments with many VMs, costs can escalate quickly. Use Defender for Servers P1 for development subscriptions and P2 only for production. Auto-provisioning of agents may conflict with existing agent deployments managed by SCCM or other tools.\n\n## Output Format\n\n```\nMicrosoft Defender for Cloud Deployment Report\n=================================================\nOrganization: Acme Corp\nSubscriptions: 20 (12 production, 8 non-production)\nDeployment Date: 2026-02-23\n\nDEFENDER PLANS ENABLED:\n  CloudPosture (CSPM):     20 \u002F 20 subscriptions\n  Servers P2:              12 \u002F 20 (production only)\n  Containers:              12 \u002F 20 (production only)\n  SQL:                     12 \u002F 20 (production only)\n  Storage:                 20 \u002F 20 all subscriptions\n  Key Vault:               20 \u002F 20 all subscriptions\n\nSECURE SCORE:\n  Current: 62% (baseline)\n  Target: 80% within 90 days\n\nCOMPLIANCE STATUS (CIS Azure 2.0):\n  Compliant controls:        78 \u002F 142 (55%)\n  Non-compliant controls:    52 \u002F 142\n  Not applicable:            12 \u002F 142\n\nRECOMMENDATIONS:\n  Critical:    8 recommendations affecting 34 resources\n  High:       24 recommendations affecting 89 resources\n  Medium:     56 recommendations affecting 234 resources\n  Low:        34 recommendations affecting 112 resources\n\nSECURITY ALERTS (Last 7 Days):\n  High severity:    3\n  Medium severity:  12\n  Low severity:     28\n```\n","# Implementing Azure Defender for Cloud\n\n## When to Use\n\n- When enabling comprehensive security monitoring across Azure subscriptions\n- When implementing cloud workload protection for VMs, containers, SQL, storage, and Key Vault\n- When compliance requirements demand continuous assessment against regulatory frameworks\n- When building adaptive security controls that respond to detected threats\n- When centralizing security findings from Azure-native and hybrid workloads\n\n**Do not use** for non-Azure workload protection exclusively (use AWS Security Hub or GCP SCC), for application-level security testing (use Azure DevOps DAST\u002FSAST), or for identity-specific protection (use Microsoft Defender for Identity).\n\n## Prerequisites\n\n- Azure subscription with Contributor or Security Admin role\n- Azure Policy enabled for compliance assessment\n- Log Analytics workspace for diagnostic data collection\n- Azure Arc connected machines for hybrid server protection\n- Pricing tier set to Standard for Defender plans (free tier provides CSPM only)\n\n## Workflow\n\n### Step 1: Enable Defender for Cloud Plans\n\nEnable the appropriate Defender plans for each workload type requiring protection.\n\n```bash\n# Enable Defender for Cloud CSPM (foundational posture management)\naz security pricing create --name CloudPosture --tier standard\n\n# Enable Defender for Servers\naz security pricing create --name VirtualMachines --tier standard \\\n  --subplan P2\n\n# Enable Defender for Containers\naz security pricing create --name Containers --tier standard\n\n# Enable Defender for Storage\naz security pricing create --name StorageAccounts --tier standard \\\n  --subplan PerStorageAccount\n\n# Enable Defender for SQL\naz security pricing create --name SqlServers --tier standard\n\n# Enable Defender for Key Vault\naz security pricing create --name KeyVaults --tier standard\n\n# Enable Defender for App Service\naz security pricing create --name AppServices --tier standard\n\n# Verify all enabled plans\naz security pricing list \\\n  --query \"[].{Plan:name, Tier:pricingTier, SubPlan:subPlan}\" -o table\n```\n\n### Step 2: Configure Auto-Provisioning of Security Agents\n\nEnable automatic deployment of monitoring agents to VMs and containers.\n\n```bash\n# Enable auto-provisioning of Log Analytics agent\naz security auto-provisioning-setting update \\\n  --name default --auto-provision on\n\n# Configure Log Analytics workspace for data collection\naz security workspace-setting create \\\n  --name default \\\n  --target-workspace \"\u002Fsubscriptions\u002FSUB_ID\u002FresourceGroups\u002FRG\u002Fproviders\u002FMicrosoft.OperationalInsights\u002Fworkspaces\u002FSecurityWorkspace\"\n\n# Enable Defender for Containers auto-provisioning components\naz security setting update \\\n  --name Sentinel \\\n  --setting-kind DataExportSettings\n\n# Verify auto-provisioning status\naz security auto-provisioning-setting list -o table\n```\n\n### Step 3: Review and Prioritize Security Recommendations\n\nRetrieve security recommendations and prioritize remediation based on secure score impact.\n\n```bash\n# Get the current secure score\naz security secure-score list \\\n  --query \"[].{Name:displayName, Current:current, Max:max, Percentage:percentage}\" -o table\n\n# List all active security recommendations\naz security assessment list \\\n  --query \"[?status.code=='Unhealthy'].{Name:displayName, Severity:metadata.severity, Category:metadata.category, ResourceCount:status.cause}\" \\\n  -o table\n\n# Get recommendations sorted by severity\naz security assessment list \\\n  --query \"[?status.code=='Unhealthy'] | sort_by(@, &metadata.severity)\" \\\n  -o table\n\n# Get detailed recommendation with remediation steps\naz security assessment show \\\n  --name ASSESSMENT_ID \\\n  --query \"{Name:displayName, Description:metadata.description, Severity:metadata.severity, Remediation:metadata.remediationDescription}\"\n\n# List recommendations by control\naz security secure-score-controls list \\\n  --query \"[].{Control:displayName, CurrentScore:current, MaxScore:max, NotHealthy:notHealthyResourceCount}\" \\\n  -o table\n```\n\n### Step 4: Configure Regulatory Compliance Dashboard\n\nEnable compliance standards and monitor adherence across subscriptions.\n\n```bash\n# List available regulatory compliance standards\naz security regulatory-compliance-standards list \\\n  --query \"[].{Standard:name, State:state}\" -o table\n\n# Enable specific compliance standards\naz security regulatory-compliance-standards update \\\n  --name \"CIS-Azure-2.0\" --state \"Enabled\"\n\naz security regulatory-compliance-standards update \\\n  --name \"PCI-DSS-4.0\" --state \"Enabled\"\n\naz security regulatory-compliance-standards update \\\n  --name \"NIST-SP-800-53-R5\" --state \"Enabled\"\n\n# Get compliance status for a specific standard\naz security regulatory-compliance-controls list \\\n  --standard-name \"CIS-Azure-2.0\" \\\n  --query \"[].{Control:id, Description:displayName, State:state, PassedResources:passedResources, FailedResources:failedResources}\" \\\n  -o table\n\n# Get failing assessments for a control\naz security regulatory-compliance-assessments list \\\n  --standard-name \"CIS-Azure-2.0\" \\\n  --control-name \"2.1\" \\\n  --query \"[?state=='Failed'].{Assessment:id, State:state}\" -o table\n```\n\n### Step 5: Set Up Security Alerts and Automation\n\nConfigure alert notifications and automated response workflows.\n\n```bash\n# Create security contact for alert notifications\naz security contact create \\\n  --name \"SecurityTeam\" \\\n  --email \"security-ops@company.com\" \\\n  --phone \"+1-555-0199\" \\\n  --alert-notifications on \\\n  --alerts-to-admins on\n\n# List active security alerts\naz security alert list \\\n  --query \"[?status=='Active'].{Name:alertDisplayName, Severity:severity, Time:timeGeneratedUtc, Status:status}\" \\\n  -o table\n\n# Create workflow automation for high-severity alerts (Logic App trigger)\naz security automation create \\\n  --name \"high-severity-alert-response\" \\\n  --resource-group \"security-rg\" \\\n  --scopes \"[{\\\"description\\\":\\\"Full subscription\\\",\\\"scopePath\\\":\\\"\u002Fsubscriptions\u002FSUB_ID\\\"}]\" \\\n  --sources \"[{\n    \\\"eventSource\\\":\\\"Alerts\\\",\n    \\\"ruleSets\\\":[{\n      \\\"rules\\\":[{\n        \\\"propertyJPath\\\":\\\"Severity\\\",\n        \\\"propertyType\\\":\\\"String\\\",\n        \\\"expectedValue\\\":\\\"High\\\",\n        \\\"operator\\\":\\\"Equals\\\"\n      }]\n    }]\n  }]\" \\\n  --actions \"[{\n    \\\"logicAppResourceId\\\":\\\"\u002Fsubscriptions\u002FSUB_ID\u002FresourceGroups\u002Fsecurity-rg\u002Fproviders\u002FMicrosoft.Logic\u002Fworkflows\u002Falert-response\\\",\n    \\\"actionType\\\":\\\"LogicApp\\\"\n  }]\"\n```\n\n### Step 6: Implement Adaptive Application Controls and JIT VM Access\n\nConfigure advanced workload protection features for runtime security.\n\n```bash\n# Enable Just-In-Time VM access\naz security jit-policy create \\\n  --resource-group \"production-rg\" \\\n  --name \"jit-policy\" \\\n  --virtual-machines \"[{\n    \\\"id\\\":\\\"\u002Fsubscriptions\u002FSUB_ID\u002FresourceGroups\u002Fproduction-rg\u002Fproviders\u002FMicrosoft.Compute\u002FvirtualMachines\u002Fweb-server-01\\\",\n    \\\"ports\\\":[\n      {\\\"number\\\":22,\\\"protocol\\\":\\\"TCP\\\",\\\"allowedSourceAddressPrefix\\\":\\\"*\\\",\\\"maxRequestAccessDuration\\\":\\\"PT3H\\\"},\n      {\\\"number\\\":3389,\\\"protocol\\\":\\\"TCP\\\",\\\"allowedSourceAddressPrefix\\\":\\\"*\\\",\\\"maxRequestAccessDuration\\\":\\\"PT3H\\\"}\n    ]\n  }]\"\n\n# Request JIT access when needed\naz security jit-policy initiate \\\n  --resource-group \"production-rg\" \\\n  --name \"jit-policy\" \\\n  --virtual-machines \"[{\n    \\\"id\\\":\\\"VM_ID\\\",\n    \\\"ports\\\":[{\\\"number\\\":22,\\\"endTimeUtc\\\":\\\"2026-02-23T15:00:00Z\\\",\\\"allowedSourceAddressPrefix\\\":\\\"10.0.1.50\\\"}]\n  }]\"\n\n# Review adaptive application control recommendations\naz security adaptive-application-controls list \\\n  --query \"[].{Group:displayName, Recommendation:recommendationAction, VMCount:vmRecommendations|length(@)}\" \\\n  -o table\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| Microsoft Defender for Cloud | Azure-native security platform providing CSPM and cloud workload protection (CWP) across Azure, hybrid, and multi-cloud environments |\n| Secure Score | Numerical measure of an organization's security posture based on the percentage of security recommendations that have been implemented |\n| Security Recommendation | Actionable guidance from Defender for Cloud to improve security posture, prioritized by severity and secure score impact |\n| Defender Plan | Workload-specific protection tier (Servers, Containers, SQL, Storage, etc.) that enables advanced threat detection for specific resource types |\n| Just-In-Time VM Access | Feature that reduces attack surface by blocking management ports (SSH\u002FRDP) by default and granting time-limited access on request |\n| Adaptive Application Controls | Machine-learning-based allowlisting that recommends which applications should be allowed to run on VMs |\n\n## Tools & Systems\n\n- **Microsoft Defender for Cloud**: Central security platform with CSPM, CWP, and regulatory compliance capabilities\n- **Azure Policy**: Governance service used by Defender for Cloud to evaluate and enforce security configurations\n- **Log Analytics Workspace**: Backend data store for security telemetry collected by Defender agents\n- **Azure Logic Apps**: Workflow automation for incident response triggered by Defender alerts\n- **Azure Arc**: Extends Defender for Cloud protection to hybrid and multi-cloud servers and Kubernetes clusters\n\n## Common Scenarios\n\n### Scenario: Rolling Out Defender for Cloud Across a Multi-Subscription Enterprise\n\n**Context**: An enterprise with 20 Azure subscriptions needs to enable Defender for Cloud with server, container, and SQL protection while establishing a compliance baseline against CIS Azure 2.0.\n\n**Approach**:\n1. Enable the CSPM plan (CloudPosture) across all subscriptions using Azure Policy initiative\n2. Enable Defender for Servers P2, Containers, and SQL on production subscriptions\n3. Configure auto-provisioning to deploy Log Analytics agents to all VMs\n4. Enable CIS Azure 2.0 and PCI DSS 4.0 compliance standards\n5. Create security contacts and configure alert notifications to the SOC team\n6. Set up workflow automation for High severity alerts via Logic Apps\n7. Enable JIT VM access for all production servers to eliminate persistent SSH\u002FRDP exposure\n8. Create a weekly Secure Score report for executive stakeholders\n\n**Pitfalls**: Defender for Servers P2 costs per server per hour. For environments with many VMs, costs can escalate quickly. Use Defender for Servers P1 for development subscriptions and P2 only for production. Auto-provisioning of agents may conflict with existing agent deployments managed by SCCM or other tools.\n\n## Output Format\n\n```\nMicrosoft Defender for Cloud Deployment Report\n=================================================\nOrganization: Acme Corp\nSubscriptions: 20 (12 production, 8 non-production)\nDeployment Date: 2026-02-23\n\nDEFENDER PLANS ENABLED:\n  CloudPosture (CSPM):     20 \u002F 20 subscriptions\n  Servers P2:              12 \u002F 20 (production only)\n  Containers:              12 \u002F 20 (production only)\n  SQL:                     12 \u002F 20 (production only)\n  Storage:                 20 \u002F 20 all subscriptions\n  Key Vault:               20 \u002F 20 all subscriptions\n\nSECURE SCORE:\n  Current: 62% (baseline)\n  Target: 80% within 90 days\n\nCOMPLIANCE STATUS (CIS Azure 2.0):\n  Compliant controls:        78 \u002F 142 (55%)\n  Non-compliant controls:    52 \u002F 142\n  Not applicable:            12 \u002F 142\n\nRECOMMENDATIONS:\n  Critical:    8 recommendations affecting 34 resources\n  High:       24 recommendations affecting 89 resources\n  Medium:     56 recommendations affecting 234 resources\n  Low:        34 recommendations affecting 112 resources\n\nSECURITY ALERTS (Last 7 Days):\n  High severity:    3\n  Medium severity:  12\n  Low severity:     28\n```\n",{"name":5,"tags":43,"author":44,"domain":31,"license":14,"version":45,"subdomain":36,"description":46},[36,20,32,33,23,30],"mahipal","1.0","Implementing Microsoft Defender for Cloud to enable cloud security posture management, workload protection across VMs, containers, databases, and storage, configure security recommendations, and set up adaptive security controls with automated remediation.\n","master","3f5d983eb4ef375b749adcd6b07ec03bd82ae8a8","_universal\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-azure-defender-for-cloud",0,"https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills","https:\u002F\u002Fgithub.com\u002Fmicsapp","2026-03-20 11:24:18",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add micsapp\u002Fmicstec-skills --skill implementing-azure-defender-for-cloud",{"tool":60,"command":61},"bunx","bunx skills add micsapp\u002Fmicstec-skills --skill implementing-azure-defender-for-cloud",{"tool":63,"command":64},"pnpm","pnpm dlx skills add micsapp\u002Fmicstec-skills --skill implementing-azure-defender-for-cloud","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002F_universal\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-azure-defender-for-cloud\u002FSKILL.md",true,[68,73,79],{"path":69,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002F_universal\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-azure-defender-for-cloud\u002FLICENSE",{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fapi-reference.md","REFERENCE","参考文档",2278,"https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002F_universal\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-azure-defender-for-cloud\u002Freferences\u002Fapi-reference.md",{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"scripts\u002Fagent.py","SCRIPT","脚本",6929,"https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002F_universal\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-azure-defender-for-cloud\u002Fscripts\u002Fagent.py",[86,113,135,155,173,198],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":90,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":38},"01M6HBTJ02FXBFG9NYEHHYAP52","azure-apim-architecture","Analyzes and explains Azure API Management architecture decisions for enterprise API marketplace implementations using VNet Internal mode, Front Door, hybrid authentication, and multi-environment strategies. Use when discussing APIM component selection, network topology, cost optimization, or comparing alternatives like workspaces vs instances, VNet Internal vs External mode, or Front Door vs Application Gateway.","MIT","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fazure-apim-architecture\u002FSKILL.md",[],[94,20,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112],"architecture","azure apim architecture","component","authentication","gateway","topology","Optimization","network","api","team","environment","multi-environment","workspaces","instances","selection","strategies","azure api management","mode","for",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":90,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":38},"01M6HBT7J4H082JEEA670B3EQ9","apiops-deployment","Guides deployment of Azure API Management infrastructure using Infrastructure as Code (Bicep\u002FTerraform), CI\u002FCD pipelines (GitHub Actions\u002FAzure DevOps), and APIOps workflows. Use when deploying APIM, creating pipelines, or implementing dev→test→prod promotion strategies.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fapiops-deployment\u002FSKILL.md",[],[120,121,122,123,20,124,125,126,127,128,129,130,102,103,109,131,132,110,133,134],"deployment","apiops deployment","workflows","azure devops","infrastructure","code","infrastructure as code","actions","ci","github actions","github-actions","as","guides","CI\u002FCD","implementing",{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":90,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":38},"01M6HBT2HEA23THNE9E00GYQBE","apim-policy-authoring","Creates production-ready Azure API Management policy XML for authentication (OAuth 2.0, JWT validation, subscription keys), rate limiting, CORS configuration, error handling, and API transformations. Use when implementing API security, access control, or request\u002Fresponse processing logic.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fapim-policy-authoring\u002FSKILL.md",[],[142,143,144,145,20,97,102,103,146,147,148,149,150,151,152,110,153,154,134,112],"policy","authoring","apim policy authoring","security","access","use","ready","api security","Access Control","error","processing","cors configuration","production-ready",{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":90,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"publishedAt":38},"01M6HBSY65SB29J9WE9KYD0K6T","api-security-review","Reviews Azure API Management configurations for security vulnerabilities, OWASP API Security Top 10 compliance, VNet Internal mode validation, Private Link verification, and Azure Security Benchmark alignment. Use when performing security audits, pre-deployment validation, or compliance reviews.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fapi-security-review\u002FSKILL.md",[],[162,145,163,102,149,164,20,120,165,166,167,168,103,169,110,170,171,172,111,112],"review","security review","api security review","benchmark","verification","owasp","owasp-api","alignment","azure security","reviews","top",{"skillNo":174,"name":175,"nameZh":6,"description":176,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":90,"licenseFileUrl":6,"sourceHtmlUrl":177,"categories":178,"keywords":179,"publishedAt":38},"01M6HBSRW4PDFE6K4F8JYPZQ05","jira-cli","Interact with Jira from the command line to create, list, view, edit, and transition issues, manage sprints and epics, and perform common Jira workflows. Use when the user asks about Jira tasks, tickets, issues, sprints, or needs to manage project work items.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fawesome-copilot-agents\u002Fskills\u002Fjira-cli\u002FSKILL.md",[],[180,181,182,122,183,184,185,186,102,187,188,189,190,191,192,193,194,195,196,197],"cli","jira","jira cli","init","tasks","create","issues","common","work","command","edit","list","view","project","project work","token","line","sprints",{"skillNo":199,"name":200,"nameZh":6,"description":201,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":90,"licenseFileUrl":6,"sourceHtmlUrl":202,"categories":203,"keywords":204,"publishedAt":38},"01M6HBSNS3JHMW603G47TWE31H","calculator","Performs arbitrary-precision arithmetic calculations including addition, subtraction, multiplication, division, and exponents. Use when the user asks to calculate, compute, or evaluate math expressions, or when precise decimal arithmetic is needed to avoid floating-point errors.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fawesome-copilot-agents\u002Fskills\u002Fcalculator\u002FSKILL.md",[],[200,205,206,207,208,209,210,147,211,212],"npm","js","calculate","node","math","user","compute","errors"]