Skip to main content

pricings

Creates, updates, deletes, gets or lists a pricings resource.

Overview

Namepricings
TypeResource
Idazure.security.pricings

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
deprecatedtextfield from the properties object
enablement_timetextfield from the properties object
enforcetextfield from the properties object
extensionstextfield from the properties object
free_trial_remaining_timetextfield from the properties object
inheritedtextfield from the properties object
inherited_fromtextfield from the properties object
pricingNametextfield from the properties object
pricing_tiertextfield from the properties object
replaced_bytextfield from the properties object
resources_coverage_statustextfield from the properties object
scopeIdtextfield from the properties object
sub_plantextfield from the properties object
typetextResource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTpricingName, scopeIdGet the Defender plans pricing configurations of the selected scope (valid scopes are resource id or a subscription id). At the resource level, supported resource types are 'VirtualMachines, VMSS and ARC Machines'.
listSELECTscopeIdLists Microsoft Defender for Cloud pricing configurations of the scopeId, that match the optional given $filter. Valid scopes are: subscription id or a specific resource id (Supported resources are: 'VirtualMachines, VMSS and ARC Machines'). Valid $filter is: 'name in ({planName1},{planName2},...)'. If $filter is not provided, the unfiltered list will be returned. If '$filter=name in (planName1,planName2)' is provided, the returned list includes the pricings set for 'planName1' and 'planName2' only.
deleteDELETEpricingName, scopeIdDeletes a provided Microsoft Defender for Cloud pricing configuration in a specific resource. Valid only for resource scope (Supported resources are: 'VirtualMachines, VMSS and ARC MachinesS').
updateREPLACEpricingName, scopeIdUpdates a provided Microsoft Defender for Cloud pricing configuration in the scope. Valid scopes are: subscription id or a specific resource id (Supported resources are: 'VirtualMachines, VMSS and ARC Machines' and only for plan='VirtualMachines' and subPlan='P1').

SELECT examples

Lists Microsoft Defender for Cloud pricing configurations of the scopeId, that match the optional given $filter. Valid scopes are: subscription id or a specific resource id (Supported resources are: 'VirtualMachines, VMSS and ARC Machines'). Valid $filter is: 'name in ({planName1},{planName2},...)'. If $filter is not provided, the unfiltered list will be returned. If '$filter=name in (planName1,planName2)' is provided, the returned list includes the pricings set for 'planName1' and 'planName2' only.

SELECT
id,
name,
deprecated,
enablement_time,
enforce,
extensions,
free_trial_remaining_time,
inherited,
inherited_from,
pricingName,
pricing_tier,
replaced_by,
resources_coverage_status,
scopeId,
sub_plan,
type
FROM azure.security.vw_pricings
WHERE scopeId = '{{ scopeId }}';

REPLACE example

Replaces all fields in the specified pricings resource.

/*+ update */
REPLACE azure.security.pricings
SET
properties = '{{ properties }}'
WHERE
pricingName = '{{ pricingName }}'
AND scopeId = '{{ scopeId }}';

DELETE example

Deletes the specified pricings resource.

/*+ delete */
DELETE FROM azure.security.pricings
WHERE pricingName = '{{ pricingName }}'
AND scopeId = '{{ scopeId }}';