new-smbackup errors with Provide valid input for resource key 'Type' or 'Names'
Applies to
- SnapCenter
- SnapCenter Application Volumes
- Powershell
Issue
When attempting to use the cmdlet "new-smbackup" on an Application Volume without a Resourcegroup, the following error is produced:
PS C:\Users\Administrator.DEMO> new-smbackup -Policy test -Resources @{"host"="rhel2"; "type"="ApplicationVolume"}
new-smbackup : Provide valid input for resource key 'Type' or 'Names'
At line:1 char:1
+ new-smbackup -Policy test -Resources @{"host"="rhel2"; "type"="Applic ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidResult: (SnapManager.PSModule.NewSmBackup:NewSmBackup) [New-SmBackup], Exception
+ FullyQualifiedErrorId : Backup failed,SnapManager.PSModule.NewSmBackup