Skip to content

[Bug]:Report doesn't properly finish generation when passing current directory path as '.\' #405

Description

@derekscha

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
Image

Image

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions