Skip to content

Enable Backup with Email address #22

@MickDD

Description

@MickDD

HI, I am trying to use Add-CaasBackupClient command however when I try to use the email address I get the following error message.

Command
$link = Add-CaasBackupClient -Server $server -StoragePolicy $stoPolicy -SchedulePolicy $schPolicy -ClientType $clientType -Trigger ON_SUCCESS_OR_FAILURE -EmailAddresses [[email protected]]

Error
Add-CaasBackupClient : Cannot bind parameter 'EmailAddresses'. Cannot convert the "[[email protected]]" value of type "System.String" to type
"System.Collections.Generic.IReadOnlyList`1[System.String]".
At line:1 char:170

  • ... e -Trigger ON_SUCCESS_OR_FAILURE -EmailAddresses [[email protected]]
  •                                                  ~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [Add-CaasBackupClient], ParameterBindingException
    • FullyQualifiedErrorId : CannotConvertArgumentNoMessage,DD.CBU.Compute.Powershell.AddCaasBackupClientCmdlet

Other trials
I have also tried different formats of the email address, however they all error
@([email protected])
@("[email protected]")
"[email protected]"
["[email protected]"]
[[email protected]]

Any help would be appreciated.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions