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

Unable to run Search-AzGraph without installing Az.ResourceGraph #422

Open
johnem-msft opened this issue May 3, 2024 · 0 comments
Open
Assignees

Comments

@johnem-msft
Copy link

johnem-msft commented May 3, 2024

Hello,

Seeing Graph modules installed here:

git log -S'Graph' -p
Author: Darren Tu darrentu@users.noreply.github.com
Date: Mon Nov 20 11:54:49 2023 -0800
diff --git a/linux/powershell/setupPowerShell.ps1 b/linux/powershell/setupPowerShell.ps1
...
# MS Graph packages
PowerShellGet\Install-Module -Name Microsoft.Graph.Authentication @prodAllUsers
PowerShellGet\Install-Module -Name Microsoft.Graph.Users.Actions @prodAllUsers
PowerShellGet\Install-Module -Name Microsoft.Graph.Users.Functions @prodAllUsers
PowerShellGet\Install-Module -Name Microsoft.Graph.Groups @prodAllUsers
PowerShellGet\Install-Module -Name Microsoft.Graph.Identity.DirectoryManagement @prodAllUsers

cat setupPowerShell.ps1 | grep Graph
# MS Graph packages
PowerShellGet\Install-Module -Name Microsoft.Graph.Authentication @prodAllUsers
PowerShellGet\Install-Module -Name Microsoft.Graph.Users.Actions @prodAllUsers
PowerShellGet\Install-Module -Name Microsoft.Graph.Users.Functions @prodAllUsers
PowerShellGet\Install-Module -Name Microsoft.Graph.Groups @prodAllUsers
PowerShellGet\Install-Module -Name Microsoft.Graph.Identity.DirectoryManagement @prodAllUsers
PowerShellGet\Install-Module -Name Microsoft.Graph.Identity.Governance @prodAllUsers
PowerShellGet\Install-Module -Name Microsoft.Graph.Identity.SignIns @prodAllUsers
PowerShellGet\Install-Module -Name Microsoft.Graph.Applications @prodAllUsers

However - without installing Az.ResourceGraph - users are unable to run Graph cmdlets like: Search-AzGraph

Workaround:

Install-Module Az.ResourceGraph
Import-Module Az.ResourceGraph

Expected:

It's expected that this would be installed/available by default.
Let us know if this expectation is realistic and/or if this package should/could be added.

@mbifeld mbifeld self-assigned this Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants