Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Policies - Synapse diagnostic setting deployments have incorrect name #303

Open
1 task done
Hurvester opened this issue Aug 30, 2022 · 0 comments
Open
1 task done
Assignees
Labels
backlog Backlog item bug Something isn't working

Comments

@Hurvester
Copy link

Deployment Mode

Azure DevOps

Steps to reproduce

I know these are just FYI-templates, but updating would be a good addition.

When creating a remediation task for policies "params.synapseSparkPool" and "params.synapseSqlPool", an error is raised.

The files are missing the name of the Synapse resource itself in 'parameters.policyDefinition.then.details.deployment.properties.template.resources.name'. Logic is Sparkname/Microsoft.Insights/setByPolicy but should be Synapsename/Sparkname/Microsoft.Insights/setByPolicy

Error Message

Example from Spark pool:

Deployment template validation failed: 'The template resource 'xx/Microsoft.Insights/setByPolicy' for type 'Microsoft.Synapse/workspaces/bigDataPools/providers/diagnosticSettings' at line '1' and column '410' 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.'.

Screenshots

image

Code of Conduct

@Hurvester Hurvester added backlog Backlog item bug Something isn't working labels Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Backlog item bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants