Skip to content

Commit 45f9254

Browse files
authored
Corrected docs for Get-AzSecurityPricing
Updated examples, descriptions, and output
1 parent d56471f commit 45f9254

File tree

1 file changed

+27
-22
lines changed

1 file changed

+27
-22
lines changed

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

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -29,40 +29,45 @@ Get-AzSecurityPricing -ResourceId <String> [-DefaultProfile <IAzureContextContai
2929

3030
## DESCRIPTION
3131
Azure Security Center pricing tier is decided per scope, with this cmdlet you can get the configured pricing tiers.
32-
Subscription pricing tier include all the resource groups under it.
33-
Resource Group pricing tier will override the subscription pricing tier.
3432

3533
## EXAMPLES
3634

3735
### Example 1
3836
```powershell
3937
PS C:\> Get-AzSecurityPricing
40-
Id Name PricingTier
41-
-- ---- -----------
42-
Id--/subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/VirtualMachines
43-
-- ---- -----------
44-
/subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/SqlServers
45-
/subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/providers/Microsoft.Security/pricings/default default Standard
46-
/subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/AppServices
47-
/subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/resourceGroups/myService1/providers/Microsoft.Security/pricings/myService1 myService1 Standard
48-
/subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/StorageAccounts
49-
/subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/SqlServerVirtualMachin…
50-
/subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/KubernetesService
51-
/subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/ContainerRegistry
52-
/subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/KeyVaults
38+
Id Name PricingTier FreeTrialRemainingTime
39+
-- ---- ----------- ----------------------
40+
/subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/VirtualMachines VirtualMachines Free 00:00:00
41+
/subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/Sqlservers SqlServers Standard 00:00:00
42+
/subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/AppServices AppServices Free 00:00:00
43+
/subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/StorageAccounts StorageAccounts Free 00:00:00
44+
/subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/SqlserverVirtualMachines SqlservervirtualMachines Free 00:00:00
45+
/subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/KubernetesService KubernetesService Free 00:00:00
46+
/subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/ContainerRegistry ContainerRegistry Free 00:00:00
47+
/subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/KeyVaults KeyVaults Free 00:00:00
5348
```
5449

55-
Gets all the configured pricing tiers for the subscription and the resource groups under it.
50+
Gets all the configured pricing tiers for the subscription.
51+
52+
5653

5754
### Example 2
5855
```powershell
59-
PS C:\> Get-AzSecurityPricing -ResourceGroupName "myService1"
60-
Id Name PricingTier
61-
-- ---- -----------
62-
/subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/resourceGroups/myService1/providers/Microsoft.Security/pricings/myService1 myService1 Standard
56+
PS C:\> Get-AzSecurityPricing -ResourceId
6357
```
6458

65-
Gets the configured pricing tier for the "myService1" resource group.
59+
Gets pricing details of the specific ID. Where ResourceId is one of IDs from example 1.
60+
61+
### Example 3
62+
```powershell
63+
PS C:\> Get-AzSecurityPricing -Name
64+
```
65+
66+
Gets pricing details of the named Azure Defender plan. Where name is one of the names from example 1.
67+
68+
69+
, and Name is one of 8 above as well.
70+
6671

6772
## PARAMETERS
6873

@@ -112,7 +117,7 @@ Accept wildcard characters: False
112117
```
113118
114119
### CommonParameters
115-
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).
120+
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).
116121
117122
## INPUTS
118123

0 commit comments

Comments
 (0)