WaelHamze / xrm-ci-framework

xRM CI Framework provides you with the tools automate the build and deployment of your CRM Solution. Using the framework to implement a fully automated DevOps pipeline will allow you to deploy more frequently with added consistency and quality.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when backing up CRM instance

demiBrauer opened this issue · comments

Description:
Hello. I have a script that calls 'BackupOnlineInstance.ps1'. It was working recently but now an error is being thrown when it attempts to query the CRM instance on line 76 of BackupOnlineInstance.ps1

Xrm-CI-Framework Version:
Latest version, in the case: 9.1.0.3

Nuget Version:
Latest version, in the case: 5.9.0

Arguments:
-ApiUrl https://admin.services.crm6.dynamics.com
-Username [CRM Username]
-Password [Non-secure CRM Password]
-InstanceName [CRM Instance Name]
-BackupLabel "Back up before Release-4"
-BackupNotes "Back up before
Release-4"
-WaitForCompletion True
-PSModulePath "[Path to folder]\Tools\OnlineManagementAPI"

Where Error Is Thrown:
Line 144 of Microsoft.PowerApps.AuthModule.psm1

Error:
New-Object : Cannot find an overload for "UserCredential" and the argument count: "2"
At C:\Program Files\WindowsPowerShell\Modules\Microsoft.PowerApps.Administration.PowerShell\2.0.110\Microsoft.PowerApps.AuthModule.psm1:143 char:23