Thanks for reporting the bug. Please ensure you've gone through the following checklist before opening an issue:
- Make sure you can reproduce this issue using the latest released version of
Microsoft.Entra or Microsoft.Entra.Beta.
- Please search the existing issues to see if there has been a similar issue filed.
Describe the bug
Import-Module throws an error (Module Version 1.3.0)
Import-Module Microsoft.Entra.Applications
Import-Module Microsoft.Entra..Beta.Applications
Import-Module Microsoft.Entra.Applications
At C:\Users\a.bohren\OneDrive -
Icewolf\Dokumente\WindowsPowerShell\Modules\Microsoft.Entra.Applications\1.3.0\Microsoft.Entra.Applications.psm1:1562
char:78
+ ... # Resolve BlueprintId: explicit param → stored → prompt → error
+ ~
Missing closing ')' in expression.
At C:\Users\a.bohren\OneDrive -
Icewolf\Dokumente\WindowsPowerShell\Modules\Microsoft.Entra.Applications\1.3.0\Microsoft.Entra.Applications.psm1:1603
char:2
+ }
+ ~
The Try statement is missing its Catch or Finally block.
At C:\Users\a.bohren\OneDrive -
Icewolf\Dokumente\WindowsPowerShell\Modules\Microsoft.Entra.Applications\1.3.0\Microsoft.Entra.Applications.psm1:3614
char:41
+ function Invoke-EntraAgentIdInteractive {
+ ~
Missing closing '}' in statement block or type definition.
At C:\Users\a.bohren\OneDrive -
Icewolf\Dokumente\WindowsPowerShell\Modules\Microsoft.Entra.Applications\1.3.0\Microsoft.Entra.Applications.psm1:203
char:66
+ function Add-EntraInheritablePermissionsToAgentIdentityBlueprint {
+ ~
Missing closing '}' in statement block or type definition.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingEndParenthesisInExpression
Import-Module : The module to process 'Microsoft.Entra.Applications.psm1', listed in field
'ModuleToProcess/RootModule' of module manifest 'C:\Users\a.bohren\OneDrive -
Icewolf\Dokumente\WindowsPowerShell\Modules\Microsoft.Entra.Applications\1.3.0\Microsoft.Entra.Applications.psd1' was
not processed because no valid module was found in any module directory.
At line:1 char:73
+ ... Write-Host "ModuleName: $($Module.Name)"; Import-Module $Module.Name}
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (Microsoft.Entra.Applications:String) [Import-Module], PSInvalidOpe
rationException
+ FullyQualifiedErrorId : Modules_ModuleFileNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
Import-Module Microsoft.Entra.Beta.Applications
At C:\Users\a.bohren\OneDrive - Icewolf\Dokumente\WindowsPowerShell\Modules\Microsoft.Entra.Beta.Applications\1.3.0\Mic
rosoft.Entra.Beta.Applications.psm1:1596 char:78
+ ... # Resolve BlueprintId: explicit param → stored → prompt → error
+ ~
Missing closing ')' in expression.
At C:\Users\a.bohren\OneDrive - Icewolf\Dokumente\WindowsPowerShell\Modules\Microsoft.Entra.Beta.Applications\1.3.0\Mic
rosoft.Entra.Beta.Applications.psm1:1637 char:2
+ }
+ ~
The Try statement is missing its Catch or Finally block.
At C:\Users\a.bohren\OneDrive - Icewolf\Dokumente\WindowsPowerShell\Modules\Microsoft.Entra.Beta.Applications\1.3.0\Mic
rosoft.Entra.Beta.Applications.psm1:4345 char:45
+ function Invoke-EntraBetaAgentIdInteractive {
+ ~
Missing closing '}' in statement block or type definition.
At C:\Users\a.bohren\OneDrive - Icewolf\Dokumente\WindowsPowerShell\Modules\Microsoft.Entra.Beta.Applications\1.3.0\Mic
rosoft.Entra.Beta.Applications.psm1:269 char:70
+ ... unction Add-EntraBetaInheritablePermissionsToAgentIdentityBlueprint {
+ ~
Missing closing '}' in statement block or type definition.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingEndParenthesisInExpression
Import-Module : The module to process 'Microsoft.Entra.Beta.Applications.psm1', listed in field
'ModuleToProcess/RootModule' of module manifest 'C:\Users\a.bohren\OneDrive - Icewolf\Dokumente\WindowsPowerShell\Modul
es\Microsoft.Entra.Beta.Applications\1.3.0\Microsoft.Entra.Beta.Applications.psd1' was not processed because no valid
module was found in any module directory.
At line:1 char:73
+ ... Write-Host "ModuleName: $($Module.Name)"; Import-Module $Module.Name}
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (Microsoft.Entra.Beta.Applications:String) [Import-Module], PSInval
idOperationException
+ FullyQualifiedErrorId : Modules_ModuleFileNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
To Reproduce
Steps to reproduce the behavior:
Import-Module Microsoft.Entra.Applications
Import-Module Microsoft.Entra..Beta.Applications
Expected behavior
Import
Debug Output
Module Version
Get-Module -Name "Microsoft*Entra*"
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 1.3.0 Microsoft.Entra.Authentication {Add-EntraEnvironment, Connect-Entra, Disconnect-Entra, Fi...
Script 1.3.0 Microsoft.Entra.Beta.Authentication {Connect-Entra, Disconnect-Entra, Get-EntraContext, Get-En...
Script 1.3.0 Microsoft.Entra.Beta.DirectoryMa... {Add-EntraBetaAdministrativeUnitMember, Add-EntraBetaCusto...
Script 1.3.0 Microsoft.Entra.Beta.Governance {Get-EntraBetaDirectoryRoleAssignment, Get-EntraBetaDirect...
Script 1.3.0 Microsoft.Entra.Beta.Groups {Add-EntraBetaGroupMember, Add-EntraBetaGroupOwner, Add-En...
Script 1.3.0 Microsoft.Entra.Beta.NetworkAccess {Enable-EntraBetaGlobalSecureAccessTenant, Get-EntraBetaGl...
Script 1.3.0 Microsoft.Entra.Beta.Reports {Get-EntraBetaApplicationSignInDetailedSummary, Get-EntraB...
Script 1.3.0 Microsoft.Entra.Beta.SignIns {Add-EntraBetaFeatureRolloutPolicyDirectoryObject, Add-Ent...
Script 1.3.0 Microsoft.Entra.Beta.Users {Get-EntraBetaAgentUser, Get-EntraBetaDeletedUser, Get-Ent...
Script 1.3.0 Microsoft.Entra.CertificateBased... {Get-EntraUserCBAAuthorizationInfo, Get-EntraUserCertifica...
Script 1.3.0 Microsoft.Entra.DirectoryManagement {Add-EntraAdministrativeUnitMember, Add-EntraCustomSecurit...
Script 1.3.0 Microsoft.Entra.Governance {Get-EntraDirectoryRoleAssignment, Get-EntraDirectoryRoleD...
Script 1.3.0 Microsoft.Entra.Groups {Add-EntraGroupMember, Add-EntraGroupOwner, Add-EntraLifec...
Script 1.3.0 Microsoft.Entra.Reports {Get-EntraAuditDirectoryLog, Get-EntraAuditSignInLog, Get-...
Script 1.3.0 Microsoft.Entra.SignIns {Get-EntraAuthorizationPolicy, Get-EntraConditionalAccessP...
Script 1.3.0 Microsoft.Entra.Users {Get-EntraAgentUser, Get-EntraDeletedUser, Get-EntraInacti...
Environment Data
$PSVersionTable
Name Value
---- -----
PSVersion 5.1.26100.8115
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.26100.8115
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Screenshots
Additional context
Kind Regards
Andres
Thanks for reporting the bug. Please ensure you've gone through the following checklist before opening an issue:
Microsoft.EntraorMicrosoft.Entra.Beta.Describe the bug
Import-Module throws an error (Module Version 1.3.0)
Import-Module Microsoft.Entra.Applications
Import-Module Microsoft.Entra..Beta.Applications
To Reproduce
Steps to reproduce the behavior:
Import-Module Microsoft.Entra.Applications
Import-Module Microsoft.Entra..Beta.Applications
Expected behavior
Import
Debug Output
Module Version
Environment Data
Screenshots
Additional context
Kind Regards
Andres