You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/defender-for-cloud/defender-for-databases-enable-cosmos-protections.md
+56-18Lines changed: 56 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: dcurwin
5
5
ms.author: dacurwin
6
6
ms.topic: how-to
7
7
ms.custom: ignite-2022
8
-
ms.date: 11/28/2022
8
+
ms.date: 08/09/2023
9
9
---
10
10
11
11
# Enable Microsoft Defender for Azure Cosmos DB
@@ -18,27 +18,27 @@ ms.date: 11/28/2022
18
18
19
19
## Enable database protection at the subscription level
20
20
21
-
The subscription level enablement, enables Microsoft Defender for Cloud protection for all database types in your subscription (recommended).
21
+
The subscription level enablement enables Microsoft Defender for Cloud protection for all database types in your subscription (recommended).
22
+
23
+
You can enable Microsoft Defender for Cloud protection on your subscription in order to protect all database types, for example, Azure Cosmos DB, Azure SQL Database, Azure SQL servers on machines, and OSS RDBs. You can also select specific resource types to protect when you configure your plan.
22
24
23
-
You can enable Microsoft Defender for Cloud protection on your subscription in order to protect all database types, for example, Azure Cosmos DB, Azure SQL Database, Azure SQL servers on machines, and OSS RDBs. You can also select specific resource types to protect when you configure your plan.
24
-
25
25
When you enable Microsoft Defender for Cloud's enhanced security features on your subscription, Microsoft Defender for Azure Cosmos DB is automatically enabled for all of your Azure Cosmos DB accounts.
26
26
27
27
**To enable database protection at the subscription level**:
28
28
29
29
1. Sign in to the [Azure portal](https://portal.azure.com/).
30
30
31
-
1. Navigate to **Microsoft Defender for Cloud** > **Environment settings**.
31
+
1. Navigate to **Microsoft Defender for Cloud** > **Environment settings**.
32
32
33
-
1. Select the relevant subscription.
33
+
1. Select the relevant subscription.
34
34
35
35
1. Locate Databases and toggle the switch to **On**.
36
36
37
37
:::image type="content" source="media/quickstart-enable-defender-for-cosmos/protection-type.png" alt-text="Screenshot showing the available protections you can enable." lightbox="media/quickstart-enable-defender-for-cosmos/protection-type-expanded.png":::
38
38
39
39
1. Select **Save**.
40
40
41
-
**To select specific resource types to protect when you configure your plan**:
41
+
**To select specific resource types to protect when you configure your plan**:
42
42
43
43
1. Follow steps 1 - 4 above.
44
44
@@ -54,7 +54,7 @@ When you enable Microsoft Defender for Cloud's enhanced security features on you
54
54
55
55
## Enable Microsoft Defender for Azure Cosmos DB at the resource level
56
56
57
-
You can enable Microsoft Defender for Cloud on a specific Azure Cosmos DB account through the Azure portal, PowerShell, or the Azure CLI.
57
+
You can enable Microsoft Defender for Cloud on a specific Azure Cosmos DB account through the Azure portal, PowerShell, Azure CLI, ARM template, or Azure Policy.
58
58
59
59
**To enable Microsoft Defender for Cloud for a specific Azure Cosmos DB account**:
60
60
@@ -80,7 +80,7 @@ You can enable Microsoft Defender for Cloud on a specific Azure Cosmos DB accoun
1. Verify the Microsoft Defender for Azure Cosmos DB setting for your storage account through the PowerShell call [Get-AzSecurityAdvancedThreatProtection](/powershell/module/az.security/get-azsecurityadvancedthreatprotection) command.
83
+
1. Verify the Microsoft Defender for Azure Cosmos DB setting for your storage account through the PowerShell call [Get-AzSecurityAdvancedThreatProtection](/powershell/module/az.security/get-azsecurityadvancedthreatprotection) command.
@@ -90,33 +90,71 @@ You can enable Microsoft Defender for Cloud on a specific Azure Cosmos DB accoun
90
90
91
91
Use an Azure Resource Manager template to deploy an Azure Cosmos DB account with Microsoft Defender for Azure Cosmos DB enabled. For more information, see [Create an Azure Cosmos DB account with Microsoft Defender for Azure Cosmos DB enabled](https://github.com/azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.documentdb/microsoft-defender-cosmosdb-create-account).
92
92
93
+
### [Azure CLI](#tab/azure-cli)
94
+
95
+
To enable Microsoft Defender for Azure Cosmos DB on a single account via Azure CLI, call the [az security atp cosmosdb update](/cli/azure/security/atp/cosmosdb) command. Remember to replace values in angle brackets with your own values:
96
+
97
+
```azurecli
98
+
az security atp cosmosdb update \
99
+
--resource-group <resource-group> \
100
+
--cosmosdb-account <cosmosdb-account> \
101
+
--is-enabled true
102
+
```
103
+
104
+
To check the Microsoft Defender for Azure Cosmos DB setting for a single account via Azure CLI, call the [az security atp cosmosdb show](/cli/azure/security/atp/cosmosdb) command. Remember to replace values in angle brackets with your own values:
105
+
106
+
```azurecli
107
+
az security atp cosmosdb show \
108
+
--resource-group <resource-group> \
109
+
--cosmosdb-account <cosmosdb-account>
110
+
```
111
+
112
+
### [Azure Policy](#tab/azure-policy)
113
+
114
+
Use an Azure Policy to enable Microsoft Defender for Cloud across storage accounts under a specific subscription or resource group.
115
+
116
+
1. Launch the Azure Policy > Definitions page.
117
+
1. Search for the **Configure Microsoft Defender for Azure Cosmos DB to be enabled** policy, then select the policy to view the policy definition page.
118
+
119
+
:::image type="content" source="media/defender-for-databases-enable-cosmos-protections/select-policy.png" alt-text="Screenshot of selecting the policy.":::
120
+
121
+
1. Select the **Assign button** for the built-in policy.
122
+
123
+
:::image type="content" source="media/defender-for-databases-enable-cosmos-protections/select-assign-button.png" alt-text="Screenshot of selecting the assign button.":::
124
+
125
+
1. Specify an Azure subscription.
126
+
127
+
:::image type="content" source="media/defender-for-databases-enable-cosmos-protections/choose-subscription.png" alt-text="Screenshot of choosing Azure subscription.":::
128
+
129
+
1. Select **Review + create** to review the policy assignment and complete it.
130
+
93
131
---
94
132
95
133
## Simulate security alerts from Microsoft Defender for Azure Cosmos DB
96
134
97
-
A full list of [supported alerts](alerts-reference.md) is available in the reference table of all Defender for Cloud security alerts.
135
+
A full list of [supported alerts](alerts-reference.md#alerts-azurecosmos) is available in the reference table of all Defender for Cloud security alerts.
98
136
99
-
You can use sample Microsoft Defender for Azure Cosmos DB alerts to evaluate their value, and capabilities. Sample alerts will also validate any configurations you've made for your security alerts (such as SIEM integrations, workflow automation, and email notifications).
137
+
You can use sample Microsoft Defender for Azure Cosmos DB alerts to evaluate their value, and capabilities. Sample alerts will also validate any configurations you've made for your security alerts (such as SIEM integrations, workflow automation, and email notifications).
100
138
101
-
**To create sample alerts from Microsoft Defender for Azure Cosmos DB**:
139
+
**To create sample alerts from Microsoft Defender for Azure Cosmos DB**:
102
140
103
141
1. Sign in to the [Azure portal](https://portal.azure.com/) as a Subscription Contributor user.
104
142
105
-
1. Navigate to the security alerts page.
143
+
1. Navigate to the security alerts page.
106
144
107
-
1. Select **Sample alerts**.
145
+
1. Select **Sample alerts**.
108
146
109
-
1. Select the subscription.
147
+
1. Select the subscription.
110
148
111
-
1. Select the relevant Microsoft Defender plan(s).
149
+
1. Select the relevant Microsoft Defender plan(s).
112
150
113
151
1. Select **Create sample alerts**.
114
152
115
153
:::image type="content" source="media/quickstart-enable-defender-for-cosmos/sample-alerts.png" alt-text="Screenshot showing the order needed to create an alert.":::
116
154
117
-
After a few minutes, the alerts will appear in the security alerts page. Alerts will also appear anywhere that you've configured to receive your Microsoft Defender for Cloud security alerts. For example, connected SIEMs, and email notifications.
155
+
After a few minutes, the alerts will appear in the security alerts page. Alerts will also appear anywhere that you've configured to receive your Microsoft Defender for Cloud security alerts. For example, connected SIEMs, and email notifications.
118
156
119
-
## Next Steps
157
+
## Next steps
120
158
121
159
In this article, you learned how to enable Microsoft Defender for Azure Cosmos DB, and how to simulate security alerts.
0 commit comments