new-smbackup 错误、请为资源密钥"Type"或"names"提供有效输入
适用场景
- SnapCenter
- SnapCenter应用程序卷
- PowerShell
问题描述
如果尝试在不具有资源组的应用程序卷上使用cmdlet "new-smbackup"、则会生成以下错误:
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