Subscription releated error while executing powershell script

sns 9,236 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.
8,105 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,669 questions
Azure Update Manager
Azure Update Manager
An Azure service to centrally manages updates and compliance at scale.
326 questions
0 comments No comments
{count} votes

Accepted answer
  1. TP 100.1K Reputation points
    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 Answers by the question author, which helps users to know the answer solved the author's problem.