Share via


microsoft.insights components/pricingPlans

Bicep resource definition

The components/pricingPlans resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a microsoft.insights/components/pricingPlans resource, add the following Bicep to your template.

resource symbolicname 'microsoft.insights/components/pricingPlans@2017-10-01' = {
  parent: resourceSymbolicName
  name: 'current'
  properties: {
    cap: int
    planType: 'string'
    stopSendNotificationWhenHitCap: bool
    stopSendNotificationWhenHitThreshold: bool
    warningThreshold: int
  }
}

Property Values

microsoft.insights/components/pricingPlans

Name Description Value
name The resource name 'current' (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: components
properties The properties of the suppression. PricingPlanProperties

PricingPlanProperties

Name Description Value
cap Daily data volume cap in GB. int
planType Pricing Plan Type Name. string
stopSendNotificationWhenHitCap Do not send a notification email when the daily data volume cap is met. bool
stopSendNotificationWhenHitThreshold Reserved, not used for now. bool
warningThreshold Reserved, not used for now. int

ARM template resource definition

The components/pricingPlans resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a microsoft.insights/components/pricingPlans resource, add the following JSON to your template.

{
  "type": "microsoft.insights/components/pricingPlans",
  "apiVersion": "2017-10-01",
  "name": "string",
  "properties": {
    "cap": "int",
    "planType": "string",
    "stopSendNotificationWhenHitCap": "bool",
    "stopSendNotificationWhenHitThreshold": "bool",
    "warningThreshold": "int"
  }
}

Property Values

microsoft.insights/components/pricingPlans

Name Description Value
apiVersion The api version '2017-10-01'
name The resource name 'current' (required)
properties The properties of the suppression. PricingPlanProperties
type The resource type 'microsoft.insights/components/pricingPlans'

PricingPlanProperties

Name Description Value
cap Daily data volume cap in GB. int
planType Pricing Plan Type Name. string
stopSendNotificationWhenHitCap Do not send a notification email when the daily data volume cap is met. bool
stopSendNotificationWhenHitThreshold Reserved, not used for now. bool
warningThreshold Reserved, not used for now. int

Usage Examples

Terraform (AzAPI provider) resource definition

The components/pricingPlans resource type can be deployed with operations that target:

  • Resource groups

For a list of changed properties in each API version, see change log.

Resource format

To create a microsoft.insights/components/pricingPlans resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "microsoft.insights/components/pricingPlans@2017-10-01"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      cap = int
      planType = "string"
      stopSendNotificationWhenHitCap = bool
      stopSendNotificationWhenHitThreshold = bool
      warningThreshold = int
    }
  }
}

Property Values

microsoft.insights/components/pricingPlans

Name Description Value
name The resource name 'current' (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: components
properties The properties of the suppression. PricingPlanProperties
type The resource type "microsoft.insights/components/pricingPlans@2017-10-01"

PricingPlanProperties

Name Description Value
cap Daily data volume cap in GB. int
planType Pricing Plan Type Name. string
stopSendNotificationWhenHitCap Do not send a notification email when the daily data volume cap is met. bool
stopSendNotificationWhenHitThreshold Reserved, not used for now. bool
warningThreshold Reserved, not used for now. int