Hello Diptesh Kumar
Welcome to Microsoft Q&A Platform, thanks for posting your query here.
Based on the detaisl shared, looks like the Search-AzGraph
command is not recognized because the Az.SearchGraph
module is not installed.
To install the Az.ResourceGraph
module, you can use the following command:
Install-Module -Name Az.ResourceGraph
Once the module is installed, you can import it using the following command:
Import-Module -Name Az.ResourceGraph
After importing the module, you can use the Search-AzGraph
command to run your query.
Hope this helps.