Test-MtAIAgentNoAuthentication
SYNOPSIS
Tests if AI agents require user authentication.
SYNTAX
Test-MtAIAgentNoAuthentication [-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION
Checks all Copilot Studio agents for weak or missing authentication. Flags agents with no authentication configured, as well as agents where authentication is configured but 'Require users to sign in' is not enabled (trigger set to 'As Needed' instead of 'Always').
EXAMPLES
EXAMPLE 1
Test-MtAIAgentNoAuthentication
PARAMETERS
-ProgressAction
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
[bool] - Returns $true if all agents require authentication with sign-in enforced,
$false if any agent has weak or missing authentication, $null if data is unavailable.
NOTES
RELATED LINKS
https://maester.dev/docs/commands/Test-MtAIAgentNoAuthentication