MiniGraph
MiniGraph copied to clipboard
Import-Module -prefix <prefix> does not work with "Connect-GraphCertificate"
Import-Module -Name 'MiniGraph' -prefix 'Fred'
Connect-FredGraphCertificate -ClientId $clientId -TenantId $tenantId -Certificate $cert
ERROR message: Get-Command: The term 'Connect-FredFredGraphCertificate' is not recognized as a name of a cmdlet, function, script file, or executable program.
When I use any kind of prefix, I cannot run "Connect-FredGraphCertificate", neither on WinPS 5.1 nor on PS 7.4.4. Tested on multiple PCs, check with a colleque (same result). I had a quick look a the module file, but I could not find any obvious bug in the code. Maybe someone knows the root cause of this already.
Same code works fine without the prefix.
Screenshot attached.