Entra.psm1





Function Get-ScriptFunction {
    <#
    .SYNOPSIS
      Informs the user this is a placeholder module.
    .DESCRIPTION
      Outputs a message explaining the module's purpose and how to get the correct module.
    #>

    Write-Warning "It looks like you meant to install 'Microsoft.Entra' or 'Microsoft.Graph.Entra', but ended up with 'Entra' instead."
    # Write-Host "" # Legacy
    # Write-Output "" # Not shown
    Write-Warning "This 'Entra' module is just a placeholder. To get the correct module, run: 'Install-Module -Name Microsoft.Entra' or 'Install-Module Microsoft.Graph.Entra'"
}

try {
  Get-ScriptFunction
  Write-Telemetry -EventName "EntraImportFunction"
} catch {
  Write-Error -Message ("Failed to import or send message")
}

Export-ModuleMember -Function @()