brianaddicks / PowerAlto

Palo Alto powershell
poweralto.com
MIT License
39 stars 15 forks source link

Get-PaHaSetup is not connecting and returing any info #18

Open pmcevoy opened 2 years ago

pmcevoy commented 2 years ago

Hi there, I've managed to connect to my PA firewall:

> Get-PaDevice -DeviceAddress 52.215.XXX.XXX -Credential $cred -SkipCertificateCheck

Port                  : 443
Protocol              : https
TargetVsys            : shared
Name                  : AWS-FW-DEV-DMZ-EUW1-01
...

However when I call Get-PaHaSetup I get:

Invoke-WebRequest: C:\Users\peter.mcevoy\OneDrive - ding\Documents\PowerShell\Modules\PowerAlto\4.0.64\Classes\Main\PaloAltoDevice.Class.ps1:230
Line |
 230 |              $rawResult = Invoke-WebRequest @QueryParams
     |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | A connection attempt failed because the connected party did not properly respond after a period of
     | time, or established connection failed because connected host has failed to respond.

Am I doing something wrong in the way I use the module?

Sincrerely Pete