Skip to content
Back to skills

Cis Azure Foundations 8.1.7.4

ASecurity

Ensure That Microsoft Defender for SQL Servers on Machines Is Set To 'On'

  • 3,723 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 3, 2026
securitygoshellsqlazureapidatabasesecurity

Works with

  • cli
  • api

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add CyberStrikeus/CyberStrike --skill cis-azure-foundations-8.1.7.4 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cis Azure Foundations 8.1.7.4?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cis Azure Foundations 8.1.7.4
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cyberstrikeus-cis-azure-foundations-8-1-7-4/badge)](https://www.skillsdirectory.com/skills/cyberstrikeus-cis-azure-foundations-8-1-7-4)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cis-azure-foundations-8.1.7.4
description: "Ensure That Microsoft Defender for SQL Servers on Machines Is Set To 'On'"
category: cis-azure-foundations
version: "5.0.0"
author: cyberstrike-official
tags: [cis, azure, security, defender, databases, sql-servers]
cis_id: "8.1.7.4"
cis_benchmark: "CIS Microsoft Azure Foundations Benchmark v5.0.0"
tech_stack: [azure]
cwe_ids: []
chains_with: []
prerequisites: []
severity_boost: {}
---

# 8.1.7.4 Ensure That Microsoft Defender for SQL Servers on Machines Is Set To 'On' (Automated)

## Description

Turning on Microsoft Defender for SQL servers on machines enables threat detection for SQL servers on machines, providing threat intelligence, anomaly detection, and behavior analytics in Microsoft Defender for Cloud.

## Rationale

Enabling Microsoft Defender for SQL servers on machines allows for greater defense-in-depth, functionality for discovering and classifying sensitive data, surfacing and mitigating potential database vulnerabilities, and detecting anomalous activities that could indicate a threat to your database.

## Impact

Turning on Microsoft Defender for SQL servers on machines incurs an additional cost per resource.

## Audit Procedure

**From Azure Portal:**

1. Go to `Microsoft Defender for Cloud`.
2. Under `Management`, select `Environment Settings`.
3. Click on the subscription name.
4. Select the `Defender plans` blade.
5. Click `Select types >` in the row for `Databases`.
6. Ensure the toggle switch next to `SQL servers on machines` is set to `On`.

**From Azure CLI:**

```
az security pricing show -n SqlServerVirtualMachines
```

Ensure the 'PricingTier' is set to 'Standard'.

**From PowerShell:**

```
Get-AzSecurityPricing -Name 'SqlServerVirtualMachines' | Select-Object Name,PricingTier
```

Ensure the 'PricingTier' is set to 'Standard'.

**From Azure Policy:**

- Policy ID: `6581d072-105e-4418-827f-bd446d56421b` - Name: 'Azure Defender for SQL servers on machines should be enabled'
- Policy ID: `abfb4388-5bf4-4ad7-ba82-2cd2f41ceae9` - Name: 'Azure Defender for SQL should be enabled for unprotected Azure SQL servers'

## Expected Result

The pricing tier for SqlServerVirtualMachines should be `Standard`.

## Remediation

**From Azure Portal:**

1. Go to `Microsoft Defender for Cloud`.
2. Under `Management`, select `Environment Settings`.
3. Click on the subscription name.
4. Select the `Defender plans` blade.
5. Click `Select types >` in the row for `Databases`.
6. Set the toggle switch next to `SQL servers on machines` to `On`.
7. Select `Continue`.
8. Select `Save`.

**From Azure CLI:**

```
az security pricing create -n SqlServerVirtualMachines --tier 'standard'
```

**From PowerShell:**

```
Set-AzSecurityPricing -Name 'SqlServerVirtualMachines' -PricingTier 'Standard'
```

## Default Value

By default, Microsoft Defender plan is off.

## References

1. https://learn.microsoft.com/en-us/azure/defender-for-cloud/defender-for-sql-usage
2. https://learn.microsoft.com/en-us/azure/defender-for-cloud/alerts-overview
3. https://learn.microsoft.com/en-us/rest/api/defenderforcloud/pricings/update
4. https://learn.microsoft.com/en-us/powershell/module/az.security/get-azsecuritypricing

## Profile

- Level 2

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.