Azure/template-analyzer

Add support for the evaluate keyword

Aperta

#92 aperta il 19 apr 2021

 (1 commento) (0 reazioni) (0 assegnatari)C# (42 fork)auto 404
enhancementgood first issuerevisit

Metriche repository

Star
 (143 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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`)
}

Guida contributor