seanluce / ANFHealthCheck

A PowerShell Runbook that will provide useful information about your Azure NetApp Files (ANF) resources. Schedule this to run every day for the most up-to-date info delivered straight to your inbox.
GNU General Public License v3.0
9 stars 3 forks source link

Run the ANFHealthCheck on local computer #2

Closed alishavez7 closed 2 years ago

alishavez7 commented 3 years ago

Hi Sean,

I am trying to test the ANFHealthCheck runbook on my local computer first before try it through azure automation but when i run it nothing happened.

I am using the below parameter to run it locally.

.\ANFHealthCheck.ps1 -SubID xxxxxx -OutFile myfile.html

I only see the below msg and nothing happened, its been running for long time without any progress or error.

"Unable to Connect-AzAccount using these parameters" and after this msg it select the subscription and then nothing happened.

seanluce commented 2 years ago

Must run Connect-AzAccount first when running locally.