microsoft.insights components/pricingPlans 2017-10-01

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' = {
  name: 'current'
  parent: resourceSymbolicName
  properties: {
    cap: json('decimal-as-string')
    planType: 'string'
    stopSendNotificationWhenHitCap: bool
    stopSendNotificationWhenHitThreshold: bool
    warningThreshold: int
  }
}

Property values

components/pricingPlans

Name Description Value
name The resource name

See how to set names and types for child resources in Bicep.
'current'
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. To specify a decimal value, use the json() function. int or json decimal
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": "current",
  "properties": {
    "cap": "[json('decimal-as-string')]",
    "planType": "string",
    "stopSendNotificationWhenHitCap": "bool",
    "stopSendNotificationWhenHitThreshold": "bool",
    "warningThreshold": "int"
  }
}

Property values

components/pricingPlans

Name Description Value
type The resource type 'microsoft.insights/components/pricingPlans'
apiVersion The resource api version '2017-10-01'
name The resource name

See how to set names and types for child resources in JSON ARM templates.
'current'
properties The properties of the suppression. PricingPlanProperties

PricingPlanProperties

Name Description Value
cap Daily data volume cap in GB. To specify a decimal value, use the json() function. int or json decimal
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

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 = "current"
  parent_id = "string"
  body = jsonencode({
    properties = {
      cap = "decimal-as-string"
      planType = "string"
      stopSendNotificationWhenHitCap = bool
      stopSendNotificationWhenHitThreshold = bool
      warningThreshold = int
    }
  })
}

Property values

components/pricingPlans

Name Description Value
type The resource type "microsoft.insights/components/pricingPlans@2017-10-01"
name The resource name "current"
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

PricingPlanProperties

Name Description Value
cap Daily data volume cap in GB. Specify a decimal value as a string. int or json decimal
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