SnapCenter asset assignment error running a Backup with a specific policy from PS
Applies to
SnapCenter Server 4.x
Issue
When running
New-SmBackup
or Refresh-SmClone
, from Powershell to backup a resource or resource group with a given backup policy, it fails, showing the following errors in the Job's SnapManagerWeb_<JOB>.log
:Exception when creating request for host: This asset is not assigned to the logged-in user.
Exception in method: Execute.
System.Exception: This asset is not assigned to the logged-in user.
at SnapManager.SMSDAL.BackupHelper.CreateBackupRequestsForHosts(SmCreateBackupRequest backupRequest, Action`1 updateJobStatusDelegate)
at SnapManager.SMSCore.Backup.PrepareBackupRequestsActivity.Execute(SmWorkflowContext workflowContext, SmRequest request) : Detailed Exception This asset is not assigned to the logged-in user. : BaseException System.Exception: This asset is not assigned to the logged-in user.
at SnapManager.SMSDAL.BackupHelper.CreateBackupRequestsForHosts(SmCreateBackupRequest backupRequest, Action`1 updateJobStatusDelegate)
at SnapManager.SMSCore.Backup.PrepareBackupRequestsActivity.Execute(SmWorkflowContext workflowContext, SmRequest request)