Subscription releated error while executing powershell script

sns 9,251 Reputation points
2023-11-19T07:03:53.7533333+00:00

I have tried and provided subscription details as below in try block

User's image

but when I tried to execute fetch report.ps1 file please see following error. seems to be something wrong with subscription or some other. please suggest further,

how to make provide subscription details properly in the script.

User's image

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
Windows for business | Windows Server | User experience | PowerShell
Azure Update Manager
Azure Update Manager
An Azure service to centrally manages updates and compliance at scale.
0 comments No comments
{count} votes

Answer accepted by question author
  1. TP 145.5K Reputation points Volunteer Moderator
    2023-11-19T07:18:29.4533333+00:00

    Hi,

    Please make sure you installed the Az.ResourceGraph module. Please see instructions in article below:

    Add the Resource Graph module

    https://learn.microsoft.com/en-us/azure/governance/resource-graph/first-query-powershell#add-the-resource-graph-module

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.