Skip to main content

azure_microsoft_defender_pricings resource

Use the azure_microsoft_defender_pricings Chef InSpec audit resource to test the properties of multiple Microsoft Defender for Cloud pricing configurations.

Azure REST API version, endpoint, and HTTP client parameters

This resource interacts with API versions supported by the resource provider. You can specify the api_version as a resource parameter to use a specific version of the Azure REST API. If you don’t specify an API version, this resource uses the latest version available. For more information about API versioning, see the azure_generic_resource.

By default, this resource uses the azure_cloud global endpoint and default HTTP client settings. You can override these settings if you need to connect to a different Azure environment (such as Azure Government or Azure China). For more information about configuration options, see the resource pack README.

Syntax

describe azure_microsoft_defender_pricings do
  #...
end

Parameters

No required parameters.

Properties

ids
The ID of the resource.

Field: id

names
The name of the resource.

Field: name

types
The type of the resource.

Field: type

freeTrialRemainingTimes
The duration left for the subscriptions free trial period - in ISO 8601 format (e.g. P3Y6M4DT12H30M5S).

Field: properties.freeTrialRemainingTime

pricingTiers
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.

Field: properties.pricingTier

subPlans
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.

Field: properties.subPlan

Note

For information on using filter criteria on plural resources, see the documentation on FilterTable

See the Azure documentation on Defender for Cloud pricing configuration for additional information. You may access any attribute in the response with the key names separated by dots (.).

Examples

This resource does not have any examples.

Matchers

For a full list of available matchers, see our Universal Matchers page.

This resource has the following special matchers.

exist

The control passes if the filter returns at least one result.

describe azure_microsoft_defender_pricings do
  it { should exist }
end

Use should_not if you expect zero matches.

describe azure_microsoft_defender_pricings do
  it { should_not exist }
end

Azure permissions

Graph resources require specific privileges granted to your service principal. Please refer to the Microsoft Documentation for information on how to grant these permissions to your application.

Thank you for your feedback!

×