Azure/template-analyzer

Add support for the evaluate keyword

Open

#92 opened on Apr 19, 2021

 (1 comment) (0 reactions) (0 assignees)C# (42 forks)auto 404
enhancementgood first issuerevisit

Repository metrics

Stars
 (143 stars)
PR merge metrics
 (PR metrics pending)

Description

The evaluate keyword is to be combined with the where clause. This evaluates the condition encompassed against the scope specified in the where clause. See Evaluate documentation for more details

Example

{
    "evaluate": {
        "resourceType": "Microsoft.Compute/virtualMachines",
        "path": "properties.osProfile.adminPassword",
        "hasValue": false // Evaluates to `true`
    } // Evaluates to the same as the inner evaluation (`true`)
}

Contributor guide