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

PreReq checks are wrong #476

Open
fume opened this issue Oct 7, 2024 · 0 comments · May be fixed by #477
Open

PreReq checks are wrong #476

fume opened this issue Oct 7, 2024 · 0 comments · May be fixed by #477

Comments

@fume
Copy link

fume commented Oct 7, 2024

AzureAD module is installed instead of Az.ResourceGraph module.

if($availableModules.Name -notcontains 'Az.ResourceGraph')
{
Write-Host "Installing module Az.ResourceGraph..." -ForegroundColor Yellow
Install-Module -Name AzureAD -Scope CurrentUser -Repository 'PSGallery'
}

Moreover, the check for the AzureAD module doesn't check if one has the AzureADPreview module. If one has AzureADPreview module installed, the install-package cmd will fail.

if($availableModules.Name -notcontains 'AzureAD')
{
Write-Host "Installing module AzureAD..." -ForegroundColor Yellow
Install-Module -Name AzureAD -Scope CurrentUser -Repository 'PSGallery'
}

@fume fume linked a pull request Oct 7, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant