@@ -29,40 +29,45 @@ Get-AzSecurityPricing -ResourceId <String> [-DefaultProfile <IAzureContextContai
29
29
30
30
## DESCRIPTION
31
31
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.
34
32
35
33
## EXAMPLES
36
34
37
35
### Example 1
38
36
``` powershell
39
37
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
53
48
```
54
49
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
+
56
53
57
54
### Example 2
58
55
``` 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
63
57
```
64
58
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
+
66
71
67
72
## PARAMETERS
68
73
@@ -112,7 +117,7 @@ Accept wildcard characters: False
112
117
` ` `
113
118
114
119
### 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).
116
121
117
122
## INPUTS
118
123
0 commit comments