Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when backing up CRM instance #302

Open
demiBrauer opened this issue Mar 12, 2021 · 0 comments
Open

Error when backing up CRM instance #302

demiBrauer opened this issue Mar 12, 2021 · 0 comments

Comments

@demiBrauer
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant