JulianHayward / Azure-MG-Sub-Governance-Reporting

Azure Governance Visualizer aka AzGovViz is a PowerShell script that captures Azure Governance related information such as Azure Policy, RBAC (a lot more) by polling Azure ARM, Storage and Microsoft Graph APIs.
MIT License
857 stars 308 forks source link

##[error]Unable to locate executable file: 'pwsh'. #205

Closed ashley-kainos closed 1 year ago

ashley-kainos commented 1 year ago

AzGovViz version please only report bug if you are running the latest version of AzGovViz

CodeRunPlatform Azure DevOps

Describe the bug

[error]Unable to locate executable file: 'pwsh'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.

Screenshots

image

Additional context Add any other context about the problem here.

JulianHayward commented 1 year ago

@ashley-kainos did you precisely follow the setup guide? Have you changed the pipeline.yml file?

ashley-kainos commented 1 year ago

Hi,

Yes followed the guide, double checked it so don't think I've missing anything. The only thing in pipeline I changed was adding the service connection and Management group ID and the web app items, the path to pwsh folder is the default, and is in the root of my repo.

image

I'm using self hosted agents to changed the pool to reflect this

JulianHayward commented 1 year ago

so if you run it on a ms hosted / the default agent then it works - right?

ashley-kainos commented 1 year ago

If left as default I get ##[error]No hosted parallelism has been purchased or granted. To request a free parallelism grant, please fill out the following form https://aka.ms/azpipelines-parallelism-request

I have filled out the form and waiting on reply

JulianHayward commented 1 year ago

all right, so the issue is caused by your self-hosted worker. Crossing fingers for your request. Will close - ok?

ashley-kainos commented 1 year ago

Oh ok, so have to use the azure ones I’m not able to use selfhosted?

Sent from Outlook for iOShttps://aka.ms/o0ukef


From: quoteee @.> Sent: Tuesday, August 1, 2023 4:28:00 PM To: JulianHayward/Azure-MG-Sub-Governance-Reporting @.> Cc: Ashley Rutland @.>; Mention @.> Subject: Re: [JulianHayward/Azure-MG-Sub-Governance-Reporting] ##[error]Unable to locate executable file: 'pwsh'. (Issue #205)

CAUTION: This email originated from outside of Kainos. Do not click links or open attachments unless you recognise the sender and know the content is safe

all right, so the issue is caused by your self-hosted worker. Crossing fingers for your request. Will close - ok?

— Reply to this email directly, view it on GitHubhttps://github.com/JulianHayward/Azure-MG-Sub-Governance-Reporting/issues/205#issuecomment-1660559208, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2BWTVGBPOC2HZQEOXC7633XTEOABANCNFSM6AAAAAA27RTABA. You are receiving this because you were mentioned.Message ID: @.***>

JulianHayward commented 1 year ago

surely you can use a self-hosted, but set it up correctly :)