modules/Azure/Checks/Test-EntraTrustedNamedLocationsExists.ps1

function Test-EntraTrustedNamedLocationsExists {
    <#
    .SYNOPSIS
        Entra tenant has a trusted named location with IP ranges defined

    .DESCRIPTION
        **Microsoft Entra ID Conditional Access** supports **trusted named locations** defined by **public IP ranges**. Presence of at least one location marked `trusted` with IP CIDR ranges available for use in policy conditions.

    .PARAMETER Check
        CIEMCheck object containing check metadata.
    #>

    [CmdletBinding()]
    [OutputType([PSCustomObject[]])]
    param(
        [Parameter(Mandatory)]
        $Check
    )

    $ErrorActionPreference = 'Stop'

    # TODO: Implement check logic based on Prowler check: entra_trusted_named_locations_exists

    [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check entra_trusted_named_locations_exists for reference.', 'N/A', 'entra Resources')
}