Skip to main content

azure_microsoft_defender_pricing Resource

Use the azure_microsoft_defender_pricing Chef InSpec audit resource to test the properties of a Microsoft Defender for Cloud pricing configuration.

Azure REST API Version, Endpoint, and HTTP Client Parameters

This resource interacts with API versions supported by the resource provider. The api_version can be defined as a resource parameter. If not provided, this resource uses the latest version. For more information, refer to the azure_generic_resource document.

Unless defined, this resource uses the azure_cloud global endpoint and default values for the HTTP client. For more information, refer to the resource pack README.

Install

This resource is available in the Chef InSpec Azure resource pack.

For information on configuring your Azure environment for Chef InSpec and creating an InSpec profile that uses the InSpec Azure resource pack, see the Chef InSpec documentation for the Azure cloud platform.

Syntax

describe azure_microsoft_defender_pricing(name: 'DEFENDER_PRICING_NAME') do
  it { should exist }
end

Parameters

name
The name of the resource.

Properties

id
The ID of the resource.
name
The name of the resource.
type
The resource type.
properties.deprecated
True if the plan is deprecated. If there are replacing plans, they will appear in replacedBy property.
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
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.

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

Test if a name exists

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.

exists

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

describe azure_microsoft_defender_pricing(name: 'DEFENDER_PRICING_NAME') do
  it { should exist }
end

Use should_not if you expect zero matches.

describe azure_microsoft_defender_pricing(name: 'DEFENDER_PRICING_NAME') 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.

Edit this page on GitHub

Thank you for your feedback!

×











Search Results