Subscription releated error while executing powershell script

sns 9,116 Reputation points

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.
6,307 questions
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
1,549 questions
Azure Update Manager
Azure Update Manager
An Azure service to centrally manages updates and compliance at scale.
129 questions
0 comments No comments
{count} votes

Accepted answer
  1. TP 54,261 Reputation points


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

    Add the Resource Graph module

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



0 additional answers

Sort by: Most helpful