Share via


microsoft.insights components/myanalyticsItems

Bicep resource definition

The components/myanalyticsItems 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/myanalyticsItems resource, add the following Bicep to your template.

resource symbolicname 'microsoft.insights/components/myanalyticsItems@2015-05-01' = {
  parent: resourceSymbolicName
  Content: 'string'
  Id: 'string'
  name: 'item'
  Name: 'string'
  Properties: {
    functionAlias: 'string'
  }
  Scope: 'string'
  Type: 'string'
}

Property Values

microsoft.insights/components/myanalyticsItems

Name Description Value
Content The content of this item string
Id Internally assigned unique id of the item definition. string
name The resource name 'item' (required)
Name The user-defined name of the item. string
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 A set of properties that can be defined in the context of a specific item type. Each type may have its own properties. ApplicationInsightsComponentAnalyticsItemProperties
Scope Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component. 'shared'
'user'
Type Enum indicating the type of the Analytics item. 'function'
'none'
'query'
'recent'

ApplicationInsightsComponentAnalyticsItemProperties

Name Description Value
functionAlias A function alias, used when the type of the item is Function string

ARM template resource definition

The components/myanalyticsItems 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/myanalyticsItems resource, add the following JSON to your template.

{
  "type": "microsoft.insights/components/myanalyticsItems",
  "apiVersion": "2015-05-01",
  "name": "string",
  "Content": "string",
  "Id": "string",
  "Name": "string",
  "Properties": {
    "functionAlias": "string"
  },
  "Scope": "string",
  "Type": "string"
}

Property Values

microsoft.insights/components/myanalyticsItems

Name Description Value
apiVersion The api version '2015-05-01'
Content The content of this item string
Id Internally assigned unique id of the item definition. string
name The resource name 'item' (required)
Name The user-defined name of the item. string
Properties A set of properties that can be defined in the context of a specific item type. Each type may have its own properties. ApplicationInsightsComponentAnalyticsItemProperties
Scope Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component. 'shared'
'user'
type The resource type 'microsoft.insights/components/myanalyticsItems'
Type Enum indicating the type of the Analytics item. 'function'
'none'
'query'
'recent'

ApplicationInsightsComponentAnalyticsItemProperties

Name Description Value
functionAlias A function alias, used when the type of the item is Function string

Usage Examples

Terraform (AzAPI provider) resource definition

The components/myanalyticsItems 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/myanalyticsItems resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "microsoft.insights/components/myanalyticsItems@2015-05-01"
  name = "string"
  parent_id = "string"
  Name = "string"
  body = {
    Content = "string"
    Id = "string"
    Properties = {
      functionAlias = "string"
    }
    Scope = "string"
    Type = "string"
  }
}

Property Values

microsoft.insights/components/myanalyticsItems

Name Description Value
Content The content of this item string
Id Internally assigned unique id of the item definition. string
name The resource name 'item' (required)
Name The user-defined name of the item. string
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: components
Properties A set of properties that can be defined in the context of a specific item type. Each type may have its own properties. ApplicationInsightsComponentAnalyticsItemProperties
Scope Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component. 'shared'
'user'
type The resource type "microsoft.insights/components/myanalyticsItems@2015-05-01"
Type Enum indicating the type of the Analytics item. 'function'
'none'
'query'
'recent'

ApplicationInsightsComponentAnalyticsItemProperties

Name Description Value
functionAlias A function alias, used when the type of the item is Function string