rules/Azure.DataFactory.Rule.ps1

#
# Validation rules for Azure Data Factory
#

# Synopsis: Consider migrating to DataFactory v2
Rule 'Azure.DataFactory.Version' -If { (ResourceType 'Microsoft.DataFactory/datafactories') -or (ResourceType 'Microsoft.DataFactory/factories') } -Tag @{ severity = 'Awareness'; category = 'Operations management' } {
    $TargetObject.ResourceType -eq 'Microsoft.DataFactory/factories'
}