Skip to content

Commit c4b8759

Browse files
committed
Added Set-AzSecurityPricing
1 parent 31adba1 commit c4b8759

File tree

2 files changed

+37
-14
lines changed

2 files changed

+37
-14
lines changed

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

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,39 @@ schema: 2.0.0
88
# Get-AzSecurityPricing
99

1010
## SYNOPSIS
11-
Gets the pricing tier data for Azure Security Center for a scope.
11+
12+
Gets the pricing data for the Azure Defender plans enabled in Azure Security Center for a scope.
1213

1314
## SYNTAX
1415

1516
### SubscriptionScope (Default)
16-
```
17+
18+
```powershell
1719
Get-AzSecurityPricing [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
1820
```
1921

2022
### SubscriptionLevelResource
21-
```
23+
24+
```powershell
2225
Get-AzSecurityPricing -Name <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
2326
```
2427

2528
### ResourceId
26-
```
29+
30+
```powershell
2731
Get-AzSecurityPricing -ResourceId <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
2832
```
2933

3034
## DESCRIPTION
31-
You can enable each Azure Defender plan, per subscription, using this cmdlet.
3235

33-
For details about Azure Defender and the available plans, see [Introduction to Azure Defender](https://docs.microsoft.com/azure/security-center/azure-defender)
36+
Gets the status and pricing details of the Azure Defender plan for a subscription.
37+
38+
For details about Azure Defender and the available plans, see [Introduction to Azure Defender](https://docs.microsoft.com/azure/security-center/azure-defender).
3439

3540
## EXAMPLES
3641

3742
### Example 1
43+
3844
```powershell
3945
PS C:\> Get-AzSecurityPricing
4046
Id Name PricingTier FreeTrialRemainingTime
@@ -54,26 +60,26 @@ Gets the status of each Azure Defender plan for the subscription.
5460

5561

5662
### Example 2
63+
5764
```powershell
5865
PS C:\> Get-AzSecurityPricing -ResourceId
5966
```
6067

6168
Gets pricing details of the specific ID. Where ResourceId is one of IDs from example 1.
6269

6370
### Example 3
71+
6472
```powershell
6573
PS C:\> Get-AzSecurityPricing -Name
6674
```
6775

68-
Gets pricing details of the named Azure Defender plan. Where name is one of the names from example 1.
69-
70-
71-
, and Name is one of 8 above as well.
76+
Gets pricing details of the named Azure Defender plan. Where `name` is one of the names from example 1.
7277

7378

7479
## PARAMETERS
7580

7681
### -DefaultProfile
82+
7783
The credentials, account, tenant, and subscription used for communication with Azure.
7884

7985
```yaml
@@ -89,6 +95,7 @@ Accept wildcard characters: False
8995
```
9096
9197
### -Name
98+
9299
Resource name.
93100
94101
```yaml
@@ -104,6 +111,7 @@ Accept wildcard characters: False
104111
```
105112
106113
### -ResourceId
114+
107115
Resource ID.
108116
109117
```yaml
@@ -119,6 +127,7 @@ Accept wildcard characters: False
119127
```
120128
121129
### CommonParameters
130+
122131
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
123132
124133
## INPUTS

src/Security/Security/help/Set-AzSecurityPricing.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,35 @@ schema: 2.0.0
88
# Set-AzSecurityPricing
99

1010
## SYNOPSIS
11-
Sets the pricing of Azure Security Center tier for a scope.
11+
12+
Sets the pricing data for the Azure Defender plans enabled in Azure Security Center for a scope.
1213

1314
## SYNTAX
1415

1516
### SubscriptionLevelResource (Default)
16-
```
17+
18+
```powershell
1719
Set-AzSecurityPricing -Name <String> -PricingTier <String> [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
1820
[-Confirm] [<CommonParameters>]
1921
```
2022

2123
### InputObject
22-
```
24+
25+
```powershell
2326
Set-AzSecurityPricing -InputObject <PSSecurityPricing> [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
2427
[-Confirm] [<CommonParameters>]
2528
```
2629

2730
## DESCRIPTION
28-
Sets the pricing of Azure Security Center tier for a scope.
31+
32+
Enable or disable any of the Azure Defender plans for a subscription.
33+
34+
For details about Azure Defender and the available plans, see [Introduction to Azure Defender](https://docs.microsoft.com/azure/security-center/azure-defender).
2935

3036
## EXAMPLES
3137

3238
### Example 1
39+
3340
```powershell
3441
PS C:\> Set-AzSecurityPricing -Name "virtualmachines" -PricingTier "Standard"
3542
```
@@ -40,6 +47,7 @@ Sets the subscription Azure Security Center pricing tier to "Standard"
4047
## PARAMETERS
4148

4249
### -DefaultProfile
50+
4351
The credentials, account, tenant, and subscription used for communication with Azure.
4452

4553
```yaml
@@ -55,6 +63,7 @@ Accept wildcard characters: False
5563
```
5664
5765
### -InputObject
66+
5867
Input Object.
5968
6069
```yaml
@@ -70,6 +79,7 @@ Accept wildcard characters: False
7079
```
7180
7281
### -Name
82+
7383
Resource name.
7484
7585
```yaml
@@ -85,6 +95,7 @@ Accept wildcard characters: False
8595
```
8696
8797
### -PricingTier
98+
8899
Pricing Tier.
89100
90101
```yaml
@@ -100,6 +111,7 @@ Accept wildcard characters: False
100111
```
101112
102113
### -Confirm
114+
103115
Prompts you for confirmation before running the cmdlet.
104116
105117
```yaml
@@ -115,6 +127,7 @@ Accept wildcard characters: False
115127
```
116128
117129
### -WhatIf
130+
118131
Shows what would happen if the cmdlet runs. The cmdlet is not run.
119132
120133
```yaml
@@ -130,6 +143,7 @@ Accept wildcard characters: False
130143
```
131144
132145
### CommonParameters
146+
133147
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
134148
135149
## INPUTS

0 commit comments

Comments
 (0)