microsoftgraph / entra-powershell

Microsoft Entra PowerShell
https://aka.ms/entraps
MIT License
56 stars 10 forks source link

Update module settings #1054

Open KenitoInc opened 2 weeks ago

KenitoInc commented 2 weeks ago

Thanks for reporting the bug. Please ensure you've gone through the following checklist before opening an issue:

Describe the bug

A clear and concise description of what the bug is. From the guidelines, we should author exported cmdlets as follows

@{
FunctionsToExport = 'Format-Hex', 'Format-Octal'
CmdletsToExport = @()  # Specify an empty array, not $null
AliasesToExport = @()  # Also ensure all three entries are present
}

However, this is how we have configured our module

image

To Reproduce Steps to reproduce the behavior:

  1. Execute -Entra with ...
  2. See error at ...

Expected behavior

A clear and concise description of what you expected to happen.

Debug Output

Run the problematic command with -Debug and paste the resulting debug stream below. ⚠ ATTENTION: Be sure to remove any sensitive information that may be in the logs.

Module Version

Please run Get-Module Microsoft.Graph.Entra* after cmdlet execution and paste the output below. If a module cannot be installed or imported, please run Get-Module -ListAvailable and paste the output.

Environment Data

Please run $PSVersionTable and paste the output below. If running the Docker container image, indicate the tag of the image used and the version of Docker engine.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

SamErde commented 1 week ago

I've seen a few build scripts in comunity repos that can pull the function names from all PS1 files in the build scope and then either add then to the manifest or perform a check to make sure they're all listed as an array in the manifest.