Devolutions.Powershell - New-RDMDataSource Error

Devolutions.Powershell - New-RDMDataSource Error

avatar

Hello,

I've got problems with the new powershell module.

The following code is in use.

$dsname = "devo-backup"  
$dsurl = "https://xxxxxx.xxx.xx"  
$appkey = "zsd"  
$appsecret = "xyz"  

$ds = New-RDMDataSource -DVLS -Name $dsname -Server $dsurl -ScriptingTenantID $appkey -ScriptingApplicationPassword $appsecret -SetDatasource -WarningAction SilentlyContinue 

Error Msg: "[Error] The operation has timed out."

And if I try "Set-RDMCurrentDataSource" I get the following, seems that the datasource is not configured correct.

PS C:\Users\xyc\Documents\PowerShell\Modules\Devolutions.PowerShell\2023.1.0.8> Set-RDMCurrentDataSource -ID 'yxc'
You need to have a Authenticator account to logon. Do you want to configure it?
[] Configure  [] Cancel  [?] Help (default is "Cancel"):

Is there any error log or idea?

All Comments (9)

avatar

Hello,

I just tried with your code, and it works on my end. Could you confirm you are using the PowerShell module version 2023.1.0.8 and PowerShell 7.3? Also, could you provide us with the version of your Devolutions Server?

Best regards,

Richard Boisvert

avatar

Hello Richard,

yes it is RDM 2023.1.0.8 and Powershell 7.3.4.

After the "New-RDMDataSource -DVLS ...." command it gets a little timeout timeout.

Remote Desktop Manager [Loading sessions from data source Local Data Source]

[Error] The operation has timed out

Seems there is anything not correct. Application secret change has been tried.

I've created the applicatoin key and tried the code. I've tried it on my machine and also on the devolutions server itself.

avatar

Hello,

I have deleted your screenshot since it contained the application key and secret for your instance, I would recommend removing that application from your Devolutions Server instance.

The $ds variable displayed the correct data source information, so it looks like it was created correctly. If you re-open PowerShell and use the following, does it show as connected?

$ds = Get-RDMDataSource -name "devo-backup"
Set-RDMCurrentDataSource $ds.id
Get-RDMCurrentDataSource

Best regards,

Richard Boisvert