Entra.ps1


<#PSScriptInfo
 
.VERSION 0.2
 
.GUID 40486ac7-bedf-4758-b221-8928966e365f
 
.AUTHOR Stefan Wey
 
.COMPANYNAME Alweys (www.alweys.ch)
 
.COPYRIGHT (c) Stefan Wey. All rights reserved.
 
.TAGS Entra, MicrosoftGraph, Graph, AzureAD, AAD
 
.LICENSEURI https://creativecommons.org/licenses/by-sa/4.0/
 
.PROJECTURI https://alweys.ch/
 
.ICONURI
 
.EXTERNALMODULEDEPENDENCIES
 
.REQUIREDSCRIPTS
 
.EXTERNALSCRIPTDEPENDENCIES
 
.RELEASENOTES
 
 
.PRIVATEDATA
 
#>


<#
 
.DESCRIPTION
 This is a placeholder module intended to prevent typo-squatting of the
 Microsoft.Entra, Microsoft.Entra.Beta, Microsoft.Graph.Entra and Microsoft.Graph.Entra.Beta module names.
 It contains no functional code and does not need to be installed or used.
#>

Param()

#function Connect-Entra {}
#function Connect-EntraBeta {}
#function Connect-AzureAD {}
#Export-ModuleMember -Function Connect-Entra, Connect-EntraBeta, Connect-AzureAD

<#
.SYNOPSIS
  Placeholder module for Microsoft.Entra and related names.
.DESCRIPTION
  This module prevents typo-squatting. It contains no functional code.
.EXAMPLE
  Get-ScriptFunction
#>


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-Output "Good news: this 'Entra' module isn't harmful. It's just a placeholder. To get the correct module, run: 'Install-Module -Name Microsoft.Entra' or 'Install-Module Microsoft.Graph.Entra'"
    Write-Output "Have a nice day! Stefan Wey (www.alweys.ch)"
}

Get-ScriptFunction