-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Corrected docs for Get-AzSecurityPricing & Set-AzSecurityPricing #13159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
45f9254
Corrected docs for Get-AzSecurityPricing
memildin 31adba1
Fixes following Chemi & Amit's review
memildin c4b8759
Added Set-AzSecurityPricing
memildin 7c26a3b
Final updates
memildin d87c146
Update Az.Security.md
isra-fel 1775d7b
Final changes
memildin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,41 +28,48 @@ Get-AzSecurityPricing -ResourceId <String> [-DefaultProfile <IAzureContextContai | |
| ``` | ||
|
|
||
| ## DESCRIPTION | ||
| Azure Security Center pricing tier is decided per scope, with this cmdlet you can get the configured pricing tiers. | ||
| Subscription pricing tier include all the resource groups under it. | ||
| Resource Group pricing tier will override the subscription pricing tier. | ||
|
chshum marked this conversation as resolved.
|
||
| 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) | ||
|
|
||
| ## EXAMPLES | ||
|
|
||
| ### Example 1 | ||
| ```powershell | ||
| PS C:\> Get-AzSecurityPricing | ||
| Id Name PricingTier | ||
| -- ---- ----------- | ||
| Id--/subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/VirtualMachines | ||
| -- ---- ----------- | ||
| /subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/SqlServers | ||
| /subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/providers/Microsoft.Security/pricings/default default Standard | ||
| /subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/AppServices | ||
| /subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/resourceGroups/myService1/providers/Microsoft.Security/pricings/myService1 myService1 Standard | ||
| /subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/StorageAccounts | ||
| /subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/SqlServerVirtualMachin… | ||
| /subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/KubernetesService | ||
| /subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/ContainerRegistry | ||
| /subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/KeyVaults | ||
| Id Name PricingTier FreeTrialRemainingTime | ||
| -- ---- ----------- ---------------------- | ||
| /subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/VirtualMachines VirtualMachines Free 00:00:00 | ||
| /subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/Sqlservers SqlServers Standard 00:00:00 | ||
| /subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/AppServices AppServices Free 00:00:00 | ||
| /subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/StorageAccounts StorageAccounts Free 00:00:00 | ||
| /subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/SqlserverVirtualMachines SqlservervirtualMachines Free 00:00:00 | ||
| /subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/KubernetesService KubernetesService Free 00:00:00 | ||
| /subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/ContainerRegistry ContainerRegistry Free 00:00:00 | ||
| /subscriptions/fbaa2b23-e9dd-4bed-93c1-9e2a44f64bc0/providers/Microsoft.Security/pricings/KeyVaults KeyVaults Free 00:00:00 | ||
| ``` | ||
|
|
||
| Gets all the configured pricing tiers for the subscription and the resource groups under it. | ||
| Gets the status of each Azure Defender plan for the subscription. | ||
|
|
||
|
|
||
|
|
||
| ### Example 2 | ||
| ```powershell | ||
| PS C:\> Get-AzSecurityPricing -ResourceGroupName "myService1" | ||
| Id Name PricingTier | ||
| -- ---- ----------- | ||
| /subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/resourceGroups/myService1/providers/Microsoft.Security/pricings/myService1 myService1 Standard | ||
| PS C:\> Get-AzSecurityPricing -ResourceId | ||
| ``` | ||
|
|
||
| Gets pricing details of the specific ID. Where ResourceId is one of IDs from example 1. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should be "where resourceId is one of the Azure defender plans resource id returned in "Get-AzSecurityPricing" (since the example will be out of date once we add a new bundle) |
||
|
|
||
| ### Example 3 | ||
| ```powershell | ||
| PS C:\> Get-AzSecurityPricing -Name | ||
| ``` | ||
|
|
||
| Gets the configured pricing tier for the "myService1" resource group. | ||
| 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. | ||
|
|
||
|
|
||
| ## PARAMETERS | ||
|
|
||
|
|
@@ -112,7 +119,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). | ||
| 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 | ||
|
|
||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.