briandelmsft / SentinelAutomationModules

The Microsoft Sentinel Triage AssistanT (STAT) enables easy to create incident triage automation in Microsoft Sentinel
MIT License
212 stars 58 forks source link

[Feature] GrantPermissions - Fail if Connect-MgGraph or Login-AzAccount fail #429

Closed briandelmsft closed 1 year ago

briandelmsft commented 1 year ago

The GrantPermissions.ps1 PowerShell script should stop and return an error if the Connect-MgGraph or Login-AzAccount PowerShell cmdlets fail. Currently the script will show an error but continue.

Let's add this for STAT v2

piaudonn commented 1 year ago

430 that's a first try