Microsoft Virtualization Discussions
Microsoft Virtualization Discussions
Hello,
I just upgraded from version 9.10.1.2111 to version 9.11.1.2208 of the PowerShell Toolkit. After the upgrade, all of my PowerShell scripts fail with the message shown below. Any ideas as to the cause? I reverted to the VMware snapshot I took before upgrading and verified I can run the exact same commands pre-upgrade without any errors.
Connect-NcController : The remote server returned an error: (401) Unauthorized.
FullyQualifiedErrorId : HttpConnectionFailed,DataONTAP.C.PowerShell.SDK.ConnectNcController
Solved! See The Solution
In case anyone searches this post, the answer is here. One of our NetApp reps pointed me in this direction. Adding -ontapi to the Connect-NcController command worked!
Hi,
Are you using an LDAP account for authentication? I think there might be a bug with that in the PSTK version. I'll flag it with the developers
/Matt
Hi @mbeattie , no it's just a normal Windows service account created just for PowerShell scripting. It has limited rights on each of the clusters.
Does anyone else have insight into the cause of this issue? I will simply have to bypass this update if there's no solution, which I don't want to do.
In case anyone searches this post, the answer is here. One of our NetApp reps pointed me in this direction. Adding -ontapi to the Connect-NcController command worked!
Thank you. I've been sitting on the Powershell Module 9.10 version waiting to figure out why I couldn't authenticate with my AD Service Account anymore. Odd that neither -ONTAPI nor -ZAPICALL are listed when you do 'get-help connect-nccontroller' but both of them allow me to authenticate when I couldn't without them.
I agree, the lack of documentation is what created the confusion. Glad this post was helpful!
The NetApp.ONTAP v9.11.1.2208 module is garbage. I don't know how this modules passed the QA checks. I uninstalled it and reinstalled v9.10.1.2111.
Get-Module -ListAvailable NetApp.ONTAP | Uninstall-Module -Force
Install-Module -Name NetApp.ONTAP -RequiredVersion 9.10.1.2111
Wow sorry to hear that. I'm only using it in limited ways thus far, but for what I'm using it for it's working the same as before.