Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-MgBetaRoleManagementExchangeRoleDefinition is not recognized #3040

Closed
MartinM85 opened this issue Nov 24, 2024 · 4 comments
Closed

Get-MgBetaRoleManagementExchangeRoleDefinition is not recognized #3040

MartinM85 opened this issue Nov 24, 2024 · 4 comments

Comments

@MartinM85
Copy link

Describe the bug

Trying to call Get-MgBetaRoleManagementExchangeRoleDefinition, but it returns

The term 'Get-MgBetaRoleManagementExchangeRoleDefinition' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was
| included, verify that the path is correct and try again.

Expected behavior

Can call Get-MgBetaRoleManagementExchangeRoleDefinition

How to reproduce

Execute:

Get-MgBetaRoleManagementExchangeRoleDefinition

SDK Version

2.25

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

Get-MgBetaRoleManagementDirectoryResourceNamespace works
@MartinM85 MartinM85 added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Nov 24, 2024
@timayabi2020
Copy link
Contributor

@MartinM85 thank you for logging this issue. Kindly share the output of these commands. Get-Module -Name Microsoft.Graph.Beta -ListAvailable and $PSVersionTable

@timayabi2020 timayabi2020 added status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close and removed status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Nov 27, 2024
@MartinM85
Copy link
Author

Hi @timayabi2020,
the output of the Get-Module -Name Microsoft.Graph.Beta -ListAvailable command is:



    Directory: C:\Users\mm\Documents\WindowsPowerShell\Modules


ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Manifest   2.25.0     Microsoft.Graph.Beta
Manifest   2.17.0     Microsoft.Graph.Beta
Manifest   2.12.0     Microsoft.Graph.Beta
Manifest   2.11.1     Microsoft.Graph.Beta
Manifest   2.10.0     Microsoft.Graph.Beta


    Directory: C:\Program Files\WindowsPowerShell\Modules


ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Manifest   2.9.1      Microsoft.Graph.Beta

The output of the $PSVersionTable command is:

Name                           Value
----                           -----
PSVersion                      5.1.22621.4249
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22621.4249
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: Attention 👋 and removed status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close labels Nov 27, 2024
@timayabi2020
Copy link
Contributor

Hi @MartinM85 I think there is a module conflict. You can try delete all the other module versions and restarting your PowerShell session.

@timayabi2020 timayabi2020 added status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close and removed Needs: Attention 👋 labels Dec 2, 2024
@MartinM85
Copy link
Author

Hi @timayabi2020, removing all older module versions resolved the issue. Thanks for help. I will close this.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: Attention 👋 and removed status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close labels Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants