-
Notifications
You must be signed in to change notification settings - Fork 23
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
Test-EntraScript not in v1.0.1 #1329
Comments
The However, it does still exist in a standalone form that you can download (Test-EntraScript) and is also still in the legacy build of the Microsoft.Graph.Entra module. |
Thank you, @SamErde. I tried your suggestion of running the module manually. Do we know what the expected output is? I only tested with one script, but didn’t get any output. Then I tried with the I would assume some sort of output when not using |
The purpose of that specific function is only to: "check whether the provided script is using AzureAD commands that are not supported by Microsoft.Graph.Entra." Per the function's help, the Quiet parameter hides the test output and only returns |
In addition to the documentation that you referenced earlier, there is a lot of useful information to be learned just by opening the script and reading the comment based help. 😀 <#
.SYNOPSIS
Checks, whether the provided script is using AzureAD commands that are not supported by Microsoft.Graph.Entra.
.DESCRIPTION
Checks, whether the provided script is using AzureAD commands that are not supported by Microsoft.Graph.Entra.
.PARAMETER Path
Path to the script file(s) to scan.
Or name of the content, when also specifying -Content
.PARAMETER Content
Code content to scan.
Used when scanning code that has no file representation (e.g. straight from a repository).
.PARAMETER Quiet
Only return $true or $false, based on whether the script could run under Microsoft.Graph.Entra ($true) or not ($false)
.EXAMPLE
PS C:\> Test-EntraScript -Path .\usercreation.ps1 -Quiet
Returns whether the script "usercreation.ps1" could run under Microsoft.Graph.Entra
.EXAMPLE
PS C:\> Get-ChildItem -Path \\contoso.com\it\code -Recurse -Filter *.ps1 | Test-EntraScript
Returns a list of all scripts that would not run under the Microsoft.Graph.Entra module, listing each issue with line and code.
#> |
|
From the description of
That means that the script is not supported when returning |
Describe the bug
I installed the newest Microsoft.Entra Module bundle (version 1.0.1), but the cmdlet
Test-EntraScript
is not available. According to the documentation it should be included.Docs:
https://learn.microsoft.com/en-us/powershell/entra-powershell/migration-guide?view=entra-powershell&wt.mc_id=MVP_330618#test-compatibility-with-test-entrascript-command
https://learn.microsoft.com/en-us/powershell/module/microsoft.entra/test-entrascript?view=entra-powershell&wt.mc_id=MVP_330618
Error message:
To Reproduce
Steps to reproduce the behavior:
Test-EntraScript
(not working)Connect-Entra
(working)Expected behavior
The cmdlet should be included in the module
Debug Output
not applicable
Module Version
Environment Data
Screenshots
Additional context
none
The text was updated successfully, but these errors were encountered: