Pricings - Update
Updates a provided Microsoft Defender for Cloud pricing configuration in the subscription.
PUT https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Security/pricings/{pricingName}?api-version=2022-03-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
pricing
|
path | True |
|
name of the pricing configuration |
|
subscription
|
path | True |
|
Azure subscription ID Regex pattern: |
|
api-version
|
query | True |
|
API version for the operation |
Request Body
| Name | Required | Type | Description |
|---|---|---|---|
| properties.pricingTier | True |
The pricing tier value. Microsoft Defender for Cloud is provided in two pricing tiers: free and standard, with the standard tier available with a trial period. The standard tier offers advanced security capabilities, while the free tier offers basic security features. |
|
| properties.subPlan |
|
The sub-plan selected for a Standard pricing configuration, when more than one sub-plan is available. Each sub-plan enables a set of security features. When not specified, full plan is applied. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
OK |
|
| Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
| Name | Description |
|---|---|
| user_impersonation | impersonate your user account |
Examples
Update pricing on subscription
Sample Request
PUT https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/pricings/VirtualMachines?api-version=2022-03-01
{
"properties": {
"pricingTier": "Standard",
"subPlan": "P2"
}
}
Sample Response
{
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/pricings/VirtualMachines",
"name": "VirtualMachines",
"type": "Microsoft.Security/pricings",
"properties": {
"pricingTier": "Standard",
"freeTrialRemainingTime": "PT0S",
"subPlan": "P2"
}
}
Definitions
|
Cloud |
Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). |
|
Cloud |
The error detail. |
|
Error |
The resource management error additional info. |
| Pricing |
Microsoft Defender for Cloud is provided in two pricing tiers: free and standard, with the standard tier available with a trial period. The standard tier offers advanced security capabilities, while the free tier offers basic security features. |
|
pricing |
The pricing tier value. Microsoft Defender for Cloud is provided in two pricing tiers: free and standard, with the standard tier available with a trial period. The standard tier offers advanced security capabilities, while the free tier offers basic security features. |
CloudError
Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
| Name | Type | Description |
|---|---|---|
| error.additionalInfo |
The error additional info. |
|
| error.code |
|
The error code. |
| error.details |
The error details. |
|
| error.message |
|
The error message. |
| error.target |
|
The error target. |
CloudErrorBody
The error detail.
| Name | Type | Description |
|---|---|---|
| additionalInfo |
The error additional info. |
|
| code |
|
The error code. |
| details |
The error details. |
|
| message |
|
The error message. |
| target |
|
The error target. |
ErrorAdditionalInfo
The resource management error additional info.
| Name | Type | Description |
|---|---|---|
| info |
|
The additional info. |
| type |
|
The additional info type. |
Pricing
Microsoft Defender for Cloud is provided in two pricing tiers: free and standard, with the standard tier available with a trial period. The standard tier offers advanced security capabilities, while the free tier offers basic security features.
| Name | Type | Description |
|---|---|---|
| id |
|
Resource Id |
| name |
|
Resource name |
| properties.deprecated |
|
Optional. True if the plan is deprecated. If there are replacing plans they will appear in |
| properties.freeTrialRemainingTime |
|
The duration left for the subscriptions free trial period - in ISO 8601 format (e.g. P3Y6M4DT12H30M5S). |
| properties.pricingTier |
The pricing tier value. Microsoft Defender for Cloud is provided in two pricing tiers: free and standard, with the standard tier available with a trial period. The standard tier offers advanced security capabilities, while the free tier offers basic security features. |
|
| properties.replacedBy |
|
Optional. List of plans that replace this plan. This property exists only if this plan is deprecated. |
| properties.subPlan |
|
The sub-plan selected for a Standard pricing configuration, when more than one sub-plan is available. Each sub-plan enables a set of security features. When not specified, full plan is applied. |
| type |
|
Resource type |
pricingTier
The pricing tier value. Microsoft Defender for Cloud is provided in two pricing tiers: free and standard, with the standard tier available with a trial period. The standard tier offers advanced security capabilities, while the free tier offers basic security features.
| Name | Type | Description |
|---|---|---|
| Free |
|
Get free Microsoft Defender for Cloud experience with basic security features |
| Standard |
|
Get the standard Microsoft Defender for Cloud experience with advanced security features |