Lesson 13 — Recommendation Remediation
Prioritising recommendations identifies what matters most. Remediation turns that decision into measurable risk reduction.
This lesson explains how to apply manual fixes, automated remediation, Azure Policy, scripts, governance workflows and post-change validation safely across cloud environments.

What you will learn
This lesson explains how to move from recommendation to verified remediation.
Recommendation remediation lifecycle
Remediation method comparison
| Method | Best use | Key consideration |
|---|---|---|
| Manual portal change | One-off remediation or small numbers of resources. | Easy to apply, but difficult to scale and repeat consistently. |
| Defender for Cloud Fix action | Recommendations that support guided or automated correction. | Review the proposed change and affected resources before applying it. |
| Azure Policy remediation | Correcting non-compliant resources at scale. | Managed identity permissions and policy effects must be understood. |
| PowerShell or Azure CLI | Repeatable scripted remediation across subscriptions and resource groups. | Scripts should be tested, logged and protected from unsafe scope. |
| Infrastructure as Code | Preventing insecure configuration from returning during deployment. | Update the source template, not only the deployed resource. |
| Workflow automation | Creating tickets, notifications, assignments and approval steps. | Automation should support governance without bypassing change control. |
| Temporary compensating control | Reducing exposure while permanent remediation is prepared. | Temporary controls need owners, expiry dates and follow-up. |
Before applying the fix
- Confirm that the recommendation is current and still applies.
- Review every affected resource rather than assuming they are identical.
- Identify production systems, customer-facing services and critical dependencies.
- Check whether the change could affect availability, performance or compatibility.
- Confirm ownership and required approvals.
- Choose the safest remediation method for the scale of the issue.
- Define rollback steps before making the change.
- Record the expected validation result.
Agent Foskett investigation: “The recommendation disappeared… then came back.”
Key takeaways
- Remediation begins with understanding the recommendation and affected resources.
- Manual fixes are useful for small scopes, but automation is needed for scale and consistency.
- The Defender for Cloud Fix action can simplify supported remediation scenarios.
- Azure Policy remediation can correct non-compliant resources across large environments.
- Scripts should be tested, scoped carefully and logged.
- Infrastructure as Code must be updated or insecure settings may return.
- Change control, rollback planning and dependency review reduce operational risk.
- Temporary controls should have owners and expiry dates.
- A recommendation should not be closed until the change and reassessment are validated.
- The goal is durable risk reduction, not a temporary healthy status.
Learning objectives
After completing this lesson, you should be able to select a remediation method, apply changes safely and validate that the recommendation has been resolved.
Read the remediation guidance
Defender for Cloud recommendations usually include explanation, affected resources, suggested actions and relevant documentation.
Confirm assessment freshness
Old or stale assessment data can lead teams to remediate an issue that has already changed.
Review affected resources
Check each resource because ownership, environment, exposure and dependencies may differ.
Manual remediation
Manual remediation is suitable for small scopes, investigation work and changes requiring careful operator judgement.
The Fix action
Some recommendations provide a Fix option that can apply a supported correction directly from Defender for Cloud.
Bulk Fix
Bulk Fix can accelerate remediation, but the selected resource scope should be reviewed carefully.
Azure Policy remediation
DeployIfNotExists and Modify policy effects can support remediation tasks for non-compliant resources.
Managed identity
Azure Policy remediation may require a managed identity with permissions to modify affected resources.
PowerShell
PowerShell can provide controlled and repeatable remediation across multiple Azure resources.
Azure CLI
Azure CLI can support scripted remediation in local, pipeline and automation environments.
REST APIs
APIs can integrate recommendation remediation into broader security engineering workflows.
Infrastructure as Code
Bicep, ARM templates, Terraform and other deployment sources should be updated so secure configuration persists.
Golden images
Virtual machine images and base templates should be corrected when the same weakness appears repeatedly.
CI/CD pipelines
Pipeline checks can prevent insecure settings from being deployed again.
Testing
Test remediation in a safe environment or limited scope before applying broad changes.
Canary deployment
Apply the change to a small representative group before expanding to the full environment.
Change control
Production remediation may require approvals, maintenance windows and stakeholder communication.
Rollback planning
Define how to reverse the change if availability, compatibility or performance is affected.
Dependency review
Understand application, identity, network, storage and monitoring dependencies before remediation.
Service availability
Security improvement should not create uncontrolled service outages.
Customer impact
Customer-facing resources may require additional testing and communication.
Permissions
The remediation operator or automation identity needs only the permissions required for the task.
Least privilege
Avoid granting broad permanent rights merely to complete one remediation action.
Separation of duties
Approval and implementation responsibilities may need to be separated in regulated environments.
Automation accounts
Automation accounts can run repeatable remediation tasks, but identities, secrets and permissions must be protected.
Logic Apps
Logic Apps can create tickets, notify owners and coordinate remediation workflows.
Tickets
Each remediation action should record the resource, owner, priority, due date, change and validation evidence.
Owner assignment
An accountable owner is required to move a recommendation from open to verified closure.
Due dates
Remediation deadlines should reflect priority, exposure and operational complexity.
Compensating controls
Network restrictions, access limitations or enhanced monitoring can reduce risk before permanent remediation.
Exceptions
A formal exception may be required when remediation is not technically or operationally possible.
Exemption review
Exceptions should include justification, owner, expiry date, compensating controls and review schedule.
False positives
Confirm evidence carefully before dismissing a recommendation as a false positive.
Configuration drift
Secure settings can be lost when resources are changed outside approved deployment processes.
Prevent recurrence
Policy, templates, pipelines and governance should be updated so the weakness does not return.
Reassessment delay
Defender for Cloud may require time to reassess the resource after remediation.
Healthy status
A healthy status indicates the assessment no longer detects the issue, but operational validation is still important.
Secure Score update
Secure Score may update after the recommendation and affected resources are reassessed.
Attack path validation
Check whether related attack paths have disappeared or changed after remediation.
Service health validation
Confirm the resource still performs its intended function after the security change.
Evidence
Capture screenshots, command output, configuration values, policy results or ticket records as evidence.
Metrics
- Open critical and high-priority recommendations
- Overdue remediation actions
- Mean time to remediate
- Percentage successfully validated
- Recurring recommendations
- Resources remediated through automation
- Temporary controls approaching expiry
- Recommendations reopened after closure
Mean time to remediate
Mean time to remediate helps measure how efficiently the organisation reduces identified risk.
Recurring recommendations
Repeated findings often indicate weak templates, unmanaged drift or incomplete root-cause remediation.
Root cause
Fix the process, template or governance weakness that allowed the insecure configuration to exist.
What Agent Foskett checked
Agent Foskett checked the portal setting, deployment history, infrastructure template and reassessment result.
Best practices
- Confirm the recommendation is current.
- Review the affected resource scope.
- Test before broad deployment.
- Use least-privileged identities.
- Document approvals and rollback steps.
- Update Infrastructure as Code.
- Automate repeated remediation safely.
- Validate service health after the change.
- Wait for reassessment before closure.
- Fix the root cause to prevent recurrence.
Related Agent Foskett resources
Continue learning
How are Microsoft Defender for Cloud recommendations remediated?
Microsoft Defender for Cloud recommendations can be remediated using manual configuration changes, supported Fix actions, Azure Policy remediation, PowerShell, Azure CLI, APIs, Infrastructure as Code and controlled automation workflows.
Recommendation Remediation Lesson
This Agent Foskett lesson explains manual and automated remediation, Azure Policy, scripting, Infrastructure as Code, change control, rollback planning, validation, Secure Score updates and recurrence prevention.
