Skip to main content
Version: 2.0.1 (preview)

Update-MtMaesterApp

SYNOPSISโ€‹

Updates an existing Maester application with the latest required permissions.

SYNTAXโ€‹

ByIdโ€‹

Update-MtMaesterApp -Id <String> [-SendMail] [-SendTeamsMessage] [-Privileged] [-Scopes <String[]>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]

ByApplicationIdโ€‹

Update-MtMaesterApp -AppId <String> [-SendMail] [-SendTeamsMessage] [-Privileged] [-Scopes <String[]>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTIONโ€‹

Updates an existing Maester application in Azure AD/Entra ID with the current set of required Graph API permissions. This is useful when new permissions are added to Maester and existing applications need to be updated to include them.

EXAMPLESโ€‹

EXAMPLE 1โ€‹

Update-MtMaesterApp -AppId "12345678-1234-1234-1234-123456789012"

Updates the specified Maester app with the current default permissions.

EXAMPLE 2โ€‹

Update-MtMaesterApp -AppId "12345678-1234-1234-1234-123456789012" -SendMail -Privileged

Updates the specified Maester app with mail sending and privileged capabilities.

EXAMPLE 3โ€‹

Update-MtMaesterApp -AppId "12345678-1234-1234-1234-123456789012" -Scopes @("User.Read.All")

Updates the specified Maester app with additional custom scopes.

PARAMETERSโ€‹

-Idโ€‹

The ID of the Maester app to update

Type: String
Parameter Sets: ById
Aliases: ObjectId

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-AppIdโ€‹

The Application (Client) ID of the Maester app to update

Type: String
Parameter Sets: ByApplicationId
Aliases: ClientId

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SendMailโ€‹

If specified, includes the Mail.Send permission scope.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-SendTeamsMessageโ€‹

If specified, includes the ChannelMessage.Send permission scope.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Privilegedโ€‹

If specified, includes privileged permission scopes for read-write operations.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Scopesโ€‹

Additional custom permission scopes to include beyond the default Maester scopes.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: @()
Accept pipeline input: False
Accept wildcard characters: False

-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โ€‹

NOTESโ€‹

https://maester.dev/docs/commands/Update-MtMaesterApp