Deployment Mode
Deploy To Azure
Steps to reproduce
- Download the policies from here
https://github.com/Azure/data-management-zone/blob/main/infra/Policies/PolicyDefinitions/DiagnosticSettings/params.synapseSparkPool.json
https://github.com/Azure/data-management-zone/blob/main/infra/Policies/PolicyDefinitions/deploy.policyDefinition.mg.json
- Use Custom Deployment from portal to deploy from Portal.
- Assign the policy to Management group from portal.
- Create Synapse Workspace and Spatk pool from portal.
- DeployIfNotExists activity fails with error as provided in Error Message
Error Message
The error shown below:
"errorMessage": "Deployment creation for policy definition '/providers/Microsoft.Management/managementGroups/JIO-PLAFORMS-LIMITED/providers/Microsoft.Authorization/policyDefinitions/DiagnosticSettings-SynapseSparkPool-LogAnalytics/' and assignment '/providers/Microsoft.Management/managementGroups/Landing-Zones/providers/Microsoft.Authorization/policyAssignments/6e0b431afe0748b393a58270/' and deployment '/subscriptions/77c9f2b0-5c92-4f20-9594-18fe3a5b432a/resourceGroups/ja-rgr-dev-001/providers/Microsoft.Resources/deployments/PolicyDeployment_2610591527022697944' failed with error: '{"error":{"code":"InvalidTemplate","message":"Deployment template validation failed: 'The template resource 'spark1/Microsoft.Insights/setByPolicy' for type 'Microsoft.Synapse/workspaces/bigDataPools/providers/diagnosticSettings' at line '1' and column '409' has incorrect segment lengths. A nested resource type must have identical number of segments as its resource name. A root resource type must have segment length one greater than its resource name. Please see https://aka.ms/arm-template/#resources for usage details.'.","additionalInfo":[{"type":"TemplateViolation","info":{"lineNumber":1,"linePosition":409,"path":"properties.template.resources[0].type"}}]}}'."
Thanks!
Vidya
Screenshots
No response
Code of Conduct
Deployment Mode
Deploy To Azure
Steps to reproduce
https://github.com/Azure/data-management-zone/blob/main/infra/Policies/PolicyDefinitions/DiagnosticSettings/params.synapseSparkPool.json
https://github.com/Azure/data-management-zone/blob/main/infra/Policies/PolicyDefinitions/deploy.policyDefinition.mg.json
Error Message
Screenshots
No response
Code of Conduct