ARI icon indicating copy to clipboard operation
ARI copied to clipboard

AZ CLI vs. PowerShell Az.ResourceGraph

Open ChristopherGLewis opened this issue 4 years ago • 1 comments

Is there a reason that you're using AZ CLI and graph query rather than the native PS Az.ResourceGraph at (https://www.powershellgallery.com/packages/Az.ResourceGraph)?

I'm not sure of the plans to move this to the Az module but would imagine it would eventually. I did a spot check comparison of the objects returned and it should be a one-for-one swap and would reduce the dependencies of the project and most likely would have the same performance.

ChristopherGLewis avatar Oct 06 '21 17:10 ChristopherGLewis

I believe we had to use AZ CLI in the earlier days of the project because using the powershell module we would have to authenticate multiple times when you had access to more than one tenant.

If I'm not wrong, that was the reason.

It was a limitation at the time. Probably this limitation is not even there anymore. But since we were already using CLI, we just kept using.

ClaudioMerola avatar Oct 06 '21 18:10 ClaudioMerola