Test-EntraScript
Check whether the provided script uses AzureAD commands not supported by Microsoft Entra PowerShell.
Syntax
Default (Default)
Test-EntraScript
[-Path] <String[]>
[[-Content] <String>]
[-Quiet]
[<CommonParameters>]
Description
Check whether the provided script uses AzureAD commands not supported by Microsoft Entra PowerShell.
Parameters
-Content
Code content to scan. Used when scanning code that has no file representation (for example, straight from a repository).
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 2 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-Path
Path to one or more script files to scan. Or name of the content, when also specifying -Content
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | FullName, Name |
Parameter sets
(All)
Position: | 1 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-Quiet
Only return $true or $ false, based on whether the script could run under Microsoft.Graph.Entra ($true) or not ($ false)
Parameter properties
Type: | SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.