Skip to content

Commit

Permalink
Added Set-AzSecurityPricing
Browse files Browse the repository at this point in the history
  • Loading branch information
memildin committed Oct 11, 2020
1 parent 31adba1 commit c4b8759
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 14 deletions.
29 changes: 19 additions & 10 deletions src/Security/Security/help/Get-AzSecurityPricing.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,39 @@ schema: 2.0.0
# Get-AzSecurityPricing

## SYNOPSIS
Gets the pricing tier data for Azure Security Center for a scope.

Gets the pricing data for the Azure Defender plans enabled in Azure Security Center for a scope.

## SYNTAX

### SubscriptionScope (Default)
```

```powershell
Get-AzSecurityPricing [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
```

### SubscriptionLevelResource
```

```powershell
Get-AzSecurityPricing -Name <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
```

### ResourceId
```

```powershell
Get-AzSecurityPricing -ResourceId <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
```

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

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

For details about Azure Defender and the available plans, see [Introduction to Azure Defender](https://docs.microsoft.com/azure/security-center/azure-defender).

## EXAMPLES

### Example 1

```powershell
PS C:\> Get-AzSecurityPricing
Id Name PricingTier FreeTrialRemainingTime
Expand All @@ -54,26 +60,26 @@ Gets the status of each Azure Defender plan for the subscription.


### Example 2

```powershell
PS C:\> Get-AzSecurityPricing -ResourceId
```

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

### Example 3

```powershell
PS C:\> Get-AzSecurityPricing -Name
```

Gets pricing details of the named Azure Defender plan. Where name is one of the names from example 1.


, and Name is one of 8 above as well.
Gets pricing details of the named Azure Defender plan. Where `name` is one of the names from example 1.


## PARAMETERS

### -DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

```yaml
Expand All @@ -89,6 +95,7 @@ Accept wildcard characters: False
```
### -Name
Resource name.
```yaml
Expand All @@ -104,6 +111,7 @@ Accept wildcard characters: False
```
### -ResourceId
Resource ID.
```yaml
Expand All @@ -119,6 +127,7 @@ Accept wildcard characters: False
```
### CommonParameters
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).
## INPUTS
Expand Down
22 changes: 18 additions & 4 deletions src/Security/Security/help/Set-AzSecurityPricing.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,35 @@ schema: 2.0.0
# Set-AzSecurityPricing

## SYNOPSIS
Sets the pricing of Azure Security Center tier for a scope.

Sets the pricing data for the Azure Defender plans enabled in Azure Security Center for a scope.

## SYNTAX

### SubscriptionLevelResource (Default)
```

```powershell
Set-AzSecurityPricing -Name <String> -PricingTier <String> [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
[-Confirm] [<CommonParameters>]
```

### InputObject
```

```powershell
Set-AzSecurityPricing -InputObject <PSSecurityPricing> [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
[-Confirm] [<CommonParameters>]
```

## DESCRIPTION
Sets the pricing of Azure Security Center tier for a scope.

Enable or disable any of the Azure Defender plans for a subscription.

For details about Azure Defender and the available plans, see [Introduction to Azure Defender](https://docs.microsoft.com/azure/security-center/azure-defender).

## EXAMPLES

### Example 1

```powershell
PS C:\> Set-AzSecurityPricing -Name "virtualmachines" -PricingTier "Standard"
```
Expand All @@ -40,6 +47,7 @@ Sets the subscription Azure Security Center pricing tier to "Standard"
## PARAMETERS

### -DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

```yaml
Expand All @@ -55,6 +63,7 @@ Accept wildcard characters: False
```
### -InputObject
Input Object.
```yaml
Expand All @@ -70,6 +79,7 @@ Accept wildcard characters: False
```
### -Name
Resource name.
```yaml
Expand All @@ -85,6 +95,7 @@ Accept wildcard characters: False
```
### -PricingTier
Pricing Tier.
```yaml
Expand All @@ -100,6 +111,7 @@ Accept wildcard characters: False
```
### -Confirm
Prompts you for confirmation before running the cmdlet.
```yaml
Expand All @@ -115,6 +127,7 @@ Accept wildcard characters: False
```
### -WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
```yaml
Expand All @@ -130,6 +143,7 @@ Accept wildcard characters: False
```
### CommonParameters
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).
## INPUTS
Expand Down

0 comments on commit c4b8759

Please sign in to comment.