Microsoft.Insights logprofiles 2016-03-01

The logprofiles resource type can be deployed to: Subscriptions.

To learn about subscription deployments, see Bicep or ARM template

Template format

To create a Microsoft.Insights/logprofiles resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.Insights/logprofiles@2016-03-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  properties: {
    categories: [
      'string'
    ]
    locations: [
      'string'
    ]
    retentionPolicy: {
      days: int
      enabled: bool
    }
    serviceBusRuleId: 'string'
    storageAccountId: 'string'
  }
}

Property values

logprofiles

Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
'Microsoft.Insights/logprofiles'
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
'2016-03-01'
name The resource name string (required)
location Resource location string (required)
tags Resource tags Dictionary of tag names and values. See Tags in templates
properties The log profile properties. LogProfileProperties (required)

LogProfileProperties

Name Description Value
categories the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.' string[] (required)
locations List of regions for which Activity Log events should be stored or streamed. It is a comma separated list of valid ARM locations including the 'global' location. string[] (required)
retentionPolicy Specifies the retention policy for the log. RetentionPolicy (required)
serviceBusRuleId The service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming the Activity Log. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'. string
storageAccountId the resource id of the storage account to which you would like to send the Activity Log. string

RetentionPolicy

Name Description Value
days the number of days for the retention in days. A value of 0 will retain the events indefinitely. int (required)
enabled a value indicating whether the retention policy is enabled. bool (required)