diagnostic settings for Azure Data Explorer (ADX) and have done the changes in ARM Template but the CI/CD pipeline is failing at Validate ARM Templates step in Dev.Request you to kindly provide suggestions in order to fix this issue.

Eshan Gangwar [ESHN] 1 Reputation point
2021-12-16T08:22:10.26+00:00

We are trying to enable diagnostic settings for Azure Data Explorer (ADX) and have done the changes in ARM Template but the CI/CD pipeline is failing at Validate ARM Templates step in Dev. Request you to kindly provide suggestions in order to fix this issue.

Error:

Starting deployment (or validation) using template specification
Creating template specification: platformTemplate_validation_temp
ERROR: (InvalidSchema) The template is invalid. Error: 'Could not find member 'resourceTags' on object of type 'TemplateResource'. Path 'resources[16].resourceTags', line 1679, position 21.'
Code: InvalidSchema
Message: The template is invalid. Error: 'Could not find member 'resourceTags' on object of type 'TemplateResource'. Path 'resources[16].resourceTags', line 1679, position 21.'
ERROR: (ResourceNotFound) The Resource 'Microsoft.Resources/templateSpecs/platformTemplate_validation_temp/versions/20211216.5' under resource group 'RG-TopsoeDev-ConnectedService-CoreInfra' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
Code: ResourceNotFound
Message: The Resource 'Microsoft.Resources/templateSpecs/platformTemplate_validation_temp/versions/20211216.5' under resource group 'RG-TopsoeDev-ConnectedService-CoreInfra' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
Template spec resource id is:
Validating template against Resource Group 'RG-TopsoeDev-ConnectedService-Backend'
Splitting override params
ERROR: argument --template-spec/-s: expected one argument

Template for diagnosticSettings :

{
"type": "Microsoft.Kusto/Clusters/providers/diagnosticSettings",
"apiVersion": "2021-05-01-preview",
"condition": "[not(equals(parameters('environment'),'Dev'))]",
"name": "[concat(parameters('adxKustoclusterName'), '/Microsoft.Insights/', variables('settingName'))]",
"comments": "Diagnostic Settings are used to export logs to Log Analytics Workspace in Azure",
"scope": "[concat('Microsoft.Kusto/clusters', '/', parameters('adxKustoclusterName'))]",
"dependsOn": [
"[resourceId('Microsoft.Kusto/clusters', parameters('adxKustoclusterName'))]"
],
"properties": {
"WorkspaceResourceId": "[parameters('WorkspaceResourceId')]",
"logs": [
{
"category": "SucceededIngestion",
"enabled": true
},

158175-image.png

Azure Data Explorer
Azure Data Explorer
An Azure data analytics service for real-time analysis on large volumes of data streaming from sources including applications, websites, and internet of things devices.
525 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.