Azure / Azure/template-analyzer

Add support for the evaluate keyword

Open
#92 1 comment 0 reactions 0 assignees View on GitHub
enhancement good first issue revisit
Dominant language
C#
Stars
143
Forks
47
PR merge metrics
No merged PRs in 30d

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](https://github.com/Azure/template-analyzer/blob/main/docs/authoring-json-rules.md#evaluate-) for more details

## Example
``` javascript
{
"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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.