GithubHelp home page GithubHelp logo

Comments (5)

VincentLepape avatar VincentLepape commented on August 26, 2024 1

I have exactly the same problem.
Let me know when the issue will be fixed

The 2 rules below for the "securityAlertPolicies" seems not compatible with any API versions

"jsonPath": [ "$.properties.emailAccountAdmins" ], "matchType": "Boolean", "data": { "value": true }
+
"jsonPath": [ "$.properties.emailAddresses" ], "matchType": "StringWhitespace",

See my pull request :
#764

"jsonPath": [ "$.properties.emailAccountAdmins" ], "matchType": "Boolean", "data": { "value": true }

replaced by

"jsonPath": [ "$.properties.emailAddresses" ], "matchType": "ItemCount", "data": { "type": "GreaterThanOrEqual", "value": 1 }

from devopskit.

mikanyg avatar mikanyg commented on August 26, 2024

I see some very weird behaviour for this control in ARM template check. Even when using the compliant ARM template for SQL Server, the ARM Template check fails due to expecting a boolean value for the emailAccountAdmins property. But the ARM Template showcases a string property with value 'Enabled', and doing an ARM deployment validation fails if this property is a boolean whenever the api version is 2015-05-01-preview.

Browsing the official docs I cannot find support for 2015: https://docs.microsoft.com/en-us/azure/templates/microsoft.sql/2015-05-01-preview/servers/securityalertpolicies
only 2017 api version seems official: https://docs.microsoft.com/en-us/azure/templates/microsoft.sql/2017-03-01-preview/servers/securityalertpolicies

from devopskit.

mikanyg avatar mikanyg commented on August 26, 2024

@VincentLepape did you also experience the same issue for the disabledAlerts property? I can see that the matchType is the same as for emailAddresses but the official ARM template has it as a string array.

from devopskit.

mikanyg avatar mikanyg commented on August 26, 2024

Another thing to note is that even though the failed results is being added to an exclusion file and the failures are correctly set to Skipped, the overall task is still failing. My guess is that its due to some internal exception during evalution of Microsoft.Sql/servers/securityAlertPolicies resources.

When I remove all Microsoft.Sql/servers/* resources from the template, but still have other resources with some failures added to exclusion file, the overall task succeeds as expected.

from devopskit.

mikanyg avatar mikanyg commented on August 26, 2024

This seems to have been resolved in the latest AzSK 4.6.0 release. At least we are no longer getting failures from Microsoft.Sql/servers/*.

from devopskit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.