Describe the bug
When passing -ReportDir option value of current directory as '.\', Invoke-ARI doesn't complete properly.
Errors observed:
- DiagramLogFile.log about not finding ReportCache and DiagramCache in home/~ directory
- DiagramCache & ReportCache not created
- Error in 'locating' given report
- Final report formatting, tab colors, Graph formats missing or left generic
When providing a full path to -ReportDir, Invoke-ARI executes as expected.
To Reproduce
Command ran:
invoke-ARI -TenantID <tenantID> -IncludeTags -SecurityCenter -ManagementGroup <MgtGrpID> -IncludeCosts -ReportDir '.\' -ReportName <ReportName> -DiagramFullEnvironment -debug
debugOutput.txt
Expected behavior
Errors indicated above will be observed. Script will execute and Excel file will be created. Diagram will not be generated.
Screenshots

Environment
Windows 11, Version 24H2 OS Build 26100.9106
PowerShell
| Name |
Value |
| PSVersion |
7.6.5 |
| PSEdition |
Core |
| GitCommitId |
7.6.5 |
| OS |
Microsoft Windows 10.0.26100 |
| Platform |
Win32NT |
| PSCompatibleVersions |
{1.0, 2.0, 3.0, 4.0…} |
| PSRemotingProtocolVersion |
2.4 |
| SerializationVersion |
1.1.0.1 |
| WSManStackVersion |
3.0 |
Azure cloud special setting
Retail cloud, login via MFA on browser
Additional context
DiagramLogFile.log
Describe the bug
When passing -ReportDir option value of current directory as '.
\', Invoke-ARI doesn't complete properly.Errors observed:
When providing a full path to -ReportDir, Invoke-ARI executes as expected.
To Reproduce
Command ran:
invoke-ARI -TenantID
<tenantID>-IncludeTags -SecurityCenter -ManagementGroup<MgtGrpID>-IncludeCosts -ReportDir '.\' -ReportName<ReportName>-DiagramFullEnvironment -debugdebugOutput.txt
Expected behavior
Errors indicated above will be observed. Script will execute and Excel file will be created. Diagram will not be generated.
Screenshots

Environment
Windows 11, Version 24H2 OS Build 26100.9106
PowerShell
Azure cloud special setting
Retail cloud, login via MFA on browser
Additional context
DiagramLogFile.log