Skip to content

Commit c5f38a8

Browse files
authored
Merge pull request Azure#9867 from shblum/master
Add ATP-CosmosDB to cmdlets help files
2 parents a491957 + 852328b commit c5f38a8

File tree

4 files changed

+42
-9
lines changed

4 files changed

+42
-9
lines changed

src/Security/Security/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
-->
2020
## Upcoming Release
2121
* Fixed miscellaneous typos across module
22+
* Add CosmosDB ATP to md files
2223

2324
## Version 0.7.5
2425
* Use NextLink for return maximum of 1500 security alerts in command Get-AzSecurityAlert

src/Security/Security/help/DIsable-AzSecurityAdvancedThreatProtection.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schema: 2.0.0
88
# Disable-AzSecurityAdvancedThreatProtection
99

1010
## SYNOPSIS
11-
Disables the advanced threat protection policy for a storage account.
11+
Disables the advanced threat protection policy for a storage / cosmosDB account.
1212

1313
## SYNTAX
1414

@@ -18,12 +18,12 @@ Disable-AzSecurityAdvancedThreatProtection -ResourceId <String> [-DefaultProfile
1818
```
1919

2020
## DESCRIPTION
21-
The `Disable-AzSecurityAdvancedThreatProtection` cmdlet disables the threat protection policy for a storage account.
21+
The `Disable-AzSecurityAdvancedThreatProtection` cmdlet disables the threat protection policy for a storage / cosmosDB account.
2222
To use this cmdlet, specify the *ResourceId* parameter.
2323

2424
## EXAMPLES
2525

26-
### Example 1
26+
### Example 1 : Storage Account
2727
```powershell
2828
PS C:\> Disable-AzSecurityAdvancedThreatProtection -ResourceId "/subscriptions/xxxxxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount/"
2929
@@ -34,6 +34,17 @@ IsEnabled Id
3434

3535
This command disables the advanced threat protection policy for resource id `"/subscriptions/xxxxxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount/"`.
3636

37+
### Example 2 : CosmosDB Account
38+
```powershell
39+
PS C:\> Disable-AzSecurityAdvancedThreatProtection -ResourceId "/subscriptions/xxxxxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDb/databaseAccounts/myCosmosDBAccount/"
40+
41+
IsEnabled Id
42+
--------- --
43+
False "/subscriptions/xxxxxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDb/databaseAccounts/myCosmosDBAccount/"
44+
```
45+
This command disables the advanced threat protection policy for resource id ` "/subscriptions/xxxxxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDb/databaseAccounts/myCosmosDBAccount/"`.
46+
47+
3748
## PARAMETERS
3849

3950
### -DefaultProfile

src/Security/Security/help/Enable-AzSecurityAdvancedThreatProtection.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schema: 2.0.0
88
# Enable-AzSecurityAdvancedThreatProtection
99

1010
## SYNOPSIS
11-
Enables the advanced threat protection policy for a storage account.
11+
Enables the advanced threat protection policy for a storage / cosmosDB account.
1212

1313
## SYNTAX
1414

@@ -18,12 +18,12 @@ Enable-AzSecurityAdvancedThreatProtection -ResourceId <String> [-DefaultProfile
1818
```
1919

2020
## DESCRIPTION
21-
The `Enable-AzSecurityAdvancedThreatProtection` cmdlet enables the threat protection policy for a storage account.
21+
The `Enable-AzSecurityAdvancedThreatProtection` cmdlet enables the threat protection policy for a storage / cosmosDB account.
2222
To use this cmdlet, specify the *ResourceId* parameter.
2323

2424
## EXAMPLES
2525

26-
### Example 1
26+
### Example 1 : Storage Account
2727
```powershell
2828
PS C:\> Enable-AzSecurityAdvancedThreatProtection -ResourceId "/subscriptions/xxxxxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount/"
2929
@@ -34,6 +34,16 @@ IsEnabled Id
3434

3535
This command enables the advanced threat protection policy for resource id `"/subscriptions/xxxxxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount/"`.
3636

37+
### Example 2 : CosmosDB Account
38+
```powershell
39+
PS C:\> Enable-AzSecurityAdvancedThreatProtection -ResourceId "/subscriptions/xxxxxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDb/databaseAccounts/myCosmosDBAccount/"
40+
41+
IsEnabled Id
42+
--------- --
43+
True "/subscriptions/xxxxxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDb/databaseAccounts/myCosmosDBAccount/"
44+
```
45+
This command enables the advanced threat protection policy for resource id ` "/subscriptions/xxxxxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDb/databaseAccounts/myCosmosDBAccount/"`.
46+
3747
## PARAMETERS
3848

3949
### -DefaultProfile

src/Security/Security/help/Get-AzSecurityAdvancedThreatProtection.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schema: 2.0.0
88
# Get-AzSecurityAdvancedThreatProtection
99

1010
## SYNOPSIS
11-
Gets the advanced threat protection policy for a storage account.
11+
Gets the advanced threat protection policy for a storage / cosmosDB account.
1212

1313
## SYNTAX
1414

@@ -18,12 +18,12 @@ Get-AzSecurityAdvancedThreatProtection -ResourceId <String> [-DefaultProfile <IA
1818
```
1919

2020
## DESCRIPTION
21-
The `Get-AzSecurityAdvancedThreatProtection` cmdlet gets the threat protection policy for a storage account.
21+
The `Get-AzSecurityAdvancedThreatProtection` cmdlet gets the threat protection policy for a storage / cosmosDB account.
2222
To use this cmdlet, specify the *ResourceId* parameter.
2323

2424
## EXAMPLES
2525

26-
### Example 1
26+
### Example 1 : Storage Account
2727
```powershell
2828
PS C:\> Get-AzSecurityAdvancedThreatProtection -ResourceId "/subscriptions/xxxxxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount/"
2929
@@ -34,6 +34,17 @@ IsEnabled Id
3434

3535
This command gets the advanced threat protection policy for resource id `"/subscriptions/xxxxxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount/"`.
3636

37+
### Example 2 : CosmosDB Account
38+
```powershell
39+
PS C:\> Get-AzSecurityAdvancedThreatProtection -ResourceId "/subscriptions/xxxxxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDb/databaseAccounts/myCosmosDBAccount/"
40+
41+
IsEnabled Id
42+
--------- --
43+
True "/subscriptions/xxxxxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDb/databaseAccounts/myCosmosDBAccount/"
44+
```
45+
This command gets the advanced threat protection policy for resource id ` "/subscriptions/xxxxxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDb/databaseAccounts/myCosmosDBAccount/"`.
46+
47+
3748
## PARAMETERS
3849

3950
### -DefaultProfile

0 commit comments

Comments
 (0)