[Bug]:Report doesn't properly finish generation when passing current directory path as '.\'
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 1.7k
- Forks
- 514
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the documented Invoke-ARI command with -ReportDir '.\' and review debugOutput.txt and DiagramLogFile.log. Trace how the -ReportDir entry point resolves the current directory and locates ReportCache and DiagramCache; done when the relative path produces the caches, diagrams, and fully formatted report like a full path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, powershell
- Domain
- cli, cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100