Skip to content

Commit

Permalink
Property rename to dataCollectionEndpointResourceId
Browse files Browse the repository at this point in the history
  • Loading branch information
krbar committed Aug 30, 2024
1 parent 470113b commit 2c84175
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 23 deletions.
16 changes: 8 additions & 8 deletions avm/res/insights/data-collection-rule/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ module dataCollectionRule 'br/public:avm/res/insights/data-collection-rule:<vers
params: {
// Required parameters
dataCollectionRuleProperties: {
dataCollectionEndpointId: '<dataCollectionEndpointId>'
dataCollectionEndpointResourceId: '<dataCollectionEndpointResourceId>'
dataFlows: [
{
destinations: [
Expand Down Expand Up @@ -227,7 +227,7 @@ module dataCollectionRule 'br/public:avm/res/insights/data-collection-rule:<vers
// Required parameters
"dataCollectionRuleProperties": {
"value": {
"dataCollectionEndpointId": "<dataCollectionEndpointId>",
"dataCollectionEndpointResourceId": "<dataCollectionEndpointResourceId>",
"dataFlows": [
{
"destinations": [
Expand Down Expand Up @@ -338,7 +338,7 @@ module dataCollectionRule 'br/public:avm/res/insights/data-collection-rule:<vers
params: {
// Required parameters
dataCollectionRuleProperties: {
dataCollectionEndpointId: '<dataCollectionEndpointId>'
dataCollectionEndpointResourceId: '<dataCollectionEndpointResourceId>'
dataFlows: [
{
destinations: [
Expand Down Expand Up @@ -423,7 +423,7 @@ module dataCollectionRule 'br/public:avm/res/insights/data-collection-rule:<vers
// Required parameters
"dataCollectionRuleProperties": {
"value": {
"dataCollectionEndpointId": "<dataCollectionEndpointId>",
"dataCollectionEndpointResourceId": "<dataCollectionEndpointResourceId>",
"dataFlows": [
{
"destinations": [
Expand Down Expand Up @@ -518,7 +518,7 @@ module dataCollectionRule 'br/public:avm/res/insights/data-collection-rule:<vers
params: {
// Required parameters
dataCollectionRuleProperties: {
dataCollectionEndpointId: '<dataCollectionEndpointId>'
dataCollectionEndpointResourceId: '<dataCollectionEndpointResourceId>'
dataFlows: [
{
destinations: [
Expand Down Expand Up @@ -582,7 +582,7 @@ module dataCollectionRule 'br/public:avm/res/insights/data-collection-rule:<vers
// Required parameters
"dataCollectionRuleProperties": {
"value": {
"dataCollectionEndpointId": "<dataCollectionEndpointId>",
"dataCollectionEndpointResourceId": "<dataCollectionEndpointResourceId>",
"dataFlows": [
{
"destinations": [
Expand Down Expand Up @@ -1152,7 +1152,7 @@ module dataCollectionRule 'br/public:avm/res/insights/data-collection-rule:<vers
params: {
// Required parameters
dataCollectionRuleProperties: {
dataCollectionEndpointId: '<dataCollectionEndpointId>'
dataCollectionEndpointResourceId: '<dataCollectionEndpointResourceId>'
dataFlows: [
{
destinations: [
Expand Down Expand Up @@ -1260,7 +1260,7 @@ module dataCollectionRule 'br/public:avm/res/insights/data-collection-rule:<vers
// Required parameters
"dataCollectionRuleProperties": {
"value": {
"dataCollectionEndpointId": "<dataCollectionEndpointId>",
"dataCollectionEndpointResourceId": "<dataCollectionEndpointResourceId>",
"dataFlows": [
{
"destinations": [
Expand Down
14 changes: 7 additions & 7 deletions avm/res/insights/data-collection-rule/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -81,23 +81,23 @@ resource dataCollectionRule 'Microsoft.Insights/dataCollectionRules@2023-03-11'
name: name
tags: tags
properties: union(
{
description: dataCollectionRuleProperties.?description
},
dataCollectionRuleProperties.kind == 'Linux' || dataCollectionRuleProperties.kind == 'Windows'
? {
dataSources: dataCollectionRuleProperties.dataSources
dataFlows: dataCollectionRuleProperties.dataFlows
destinations: dataCollectionRuleProperties.destinations
dataCollectionEndpointId: dataCollectionRuleProperties.?dataCollectionEndpointId
dataCollectionEndpointId: dataCollectionRuleProperties.?dataCollectionEndpointResourceId
streamDeclarations: dataCollectionRuleProperties.?streamDeclarations
}
: {},
dataCollectionRuleProperties.kind == 'AgentSettings'
? {
agentSettings: dataCollectionRuleProperties.agentSettings
}
: {},
{
description: dataCollectionRuleProperties.?description
}
: {}
)
}

Expand Down Expand Up @@ -206,7 +206,7 @@ type linuxDcrPropertiesType = {
destinations: object

@description('Optional. The resource ID of the data collection endpoint that this rule can be used with.')
dataCollectionEndpointId: string?
dataCollectionEndpointResourceId: string?

@description('Optional. Declaration of custom streams used in this rule.')
streamDeclarations: object?
Expand All @@ -229,7 +229,7 @@ type windowsDcrPropertiesType = {
destinations: object

@description('Optional. The resource ID of the data collection endpoint that this rule can be used with.')
dataCollectionEndpointId: string?
dataCollectionEndpointResourceId: string?

@description('Optional. Declaration of custom streams used in this rule.')
streamDeclarations: object?
Expand Down
8 changes: 4 additions & 4 deletions avm/res/insights/data-collection-rule/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"_generator": {
"name": "bicep",
"version": "0.29.47.4906",
"templateHash": "16127257398169774892"
"templateHash": "5321768196426375483"
},
"name": "Data Collection Rules",
"description": "This module deploys a Data Collection Rule.",
Expand Down Expand Up @@ -158,7 +158,7 @@
"description": "Required. Specification of destinations that can be used in data flows."
}
},
"dataCollectionEndpointId": {
"dataCollectionEndpointResourceId": {
"type": "string",
"nullable": true,
"metadata": {
Expand Down Expand Up @@ -211,7 +211,7 @@
"description": "Required. Specification of destinations that can be used in data flows."
}
},
"dataCollectionEndpointId": {
"dataCollectionEndpointResourceId": {
"type": "string",
"nullable": true,
"metadata": {
Expand Down Expand Up @@ -388,7 +388,7 @@
"kind": "[parameters('dataCollectionRuleProperties').kind]",
"location": "[parameters('location')]",
"tags": "[parameters('tags')]",
"properties": "[union(if(or(equals(parameters('dataCollectionRuleProperties').kind, 'Linux'), equals(parameters('dataCollectionRuleProperties').kind, 'Windows')), createObject('dataSources', parameters('dataCollectionRuleProperties').dataSources, 'dataFlows', parameters('dataCollectionRuleProperties').dataFlows, 'destinations', parameters('dataCollectionRuleProperties').destinations, 'dataCollectionEndpointId', tryGet(parameters('dataCollectionRuleProperties'), 'dataCollectionEndpointId'), 'streamDeclarations', tryGet(parameters('dataCollectionRuleProperties'), 'streamDeclarations')), createObject()), if(equals(parameters('dataCollectionRuleProperties').kind, 'AgentSettings'), createObject('agentSettings', parameters('dataCollectionRuleProperties').agentSettings), createObject()), createObject('description', tryGet(parameters('dataCollectionRuleProperties'), 'description')))]"
"properties": "[union(createObject('description', tryGet(parameters('dataCollectionRuleProperties'), 'description')), if(or(equals(parameters('dataCollectionRuleProperties').kind, 'Linux'), equals(parameters('dataCollectionRuleProperties').kind, 'Windows')), createObject('dataSources', parameters('dataCollectionRuleProperties').dataSources, 'dataFlows', parameters('dataCollectionRuleProperties').dataFlows, 'destinations', parameters('dataCollectionRuleProperties').destinations, 'dataCollectionEndpointId', tryGet(parameters('dataCollectionRuleProperties'), 'dataCollectionEndpointResourceId'), 'streamDeclarations', tryGet(parameters('dataCollectionRuleProperties'), 'streamDeclarations')), createObject()), if(equals(parameters('dataCollectionRuleProperties').kind, 'AgentSettings'), createObject('agentSettings', parameters('dataCollectionRuleProperties').agentSettings), createObject()))]"
},
"dataCollectionRule_lock": {
"condition": "[and(not(empty(coalesce(parameters('lock'), createObject()))), not(equals(tryGet(parameters('lock'), 'kind'), 'None')))]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module testDeployment '../../../main.bicep' = [
location: resourceLocation
dataCollectionRuleProperties: {
kind: 'Windows'
dataCollectionEndpointId: nestedDependencies.outputs.dataCollectionEndpointResourceId
dataCollectionEndpointResourceId: nestedDependencies.outputs.dataCollectionEndpointResourceId
description: 'Collecting custom text logs with ingestion-time transformation to columns. Expected format of a log line (comma separated values): "<DateTime>,<EventLevel>,<EventCode>,<Message>", for example: "2023-01-25T20:15:05Z,ERROR,404,Page not found"'
dataFlows: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module testDeployment '../../../main.bicep' = [
location: resourceLocation
dataCollectionRuleProperties: {
kind: 'Windows'
dataCollectionEndpointId: nestedDependencies.outputs.dataCollectionEndpointResourceId
dataCollectionEndpointResourceId: nestedDependencies.outputs.dataCollectionEndpointResourceId
description: 'Collecting custom text logs without ingestion-time transformation.'
dataFlows: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module testDeployment '../../../main.bicep' = [
location: resourceLocation
dataCollectionRuleProperties: {
kind: 'Windows'
dataCollectionEndpointId: nestedDependencies.outputs.dataCollectionEndpointResourceId
dataCollectionEndpointResourceId: nestedDependencies.outputs.dataCollectionEndpointResourceId
description: 'Collecting IIS logs.'
dataFlows: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module testDeployment '../../../main.bicep' = [
location: resourceLocation
dataCollectionRuleProperties: {
kind: 'Windows'
dataCollectionEndpointId: nestedDependencies.outputs.dataCollectionEndpointResourceId
dataCollectionEndpointResourceId: nestedDependencies.outputs.dataCollectionEndpointResourceId
description: 'Collecting custom text logs without ingestion-time transformation.'
dataFlows: [
{
Expand Down

0 comments on commit 2c84175

Please sign in to comment.