New-VasaProvider

This cmdlet registers a VASA provider.

Syntax

-Name  <String>
-Url  <String>
[-Certificate  <String>]
[-Credential  <PSCredential>]
[-Description  <String>]
[-Force]
[-Password  <SecureString>]
[-Server  <VIServer[]>]
[-Username  <String>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Name
String named Specifies the name of the provider. The maximum length of the name is 80 characters. If not specified, a default name based on the provider namespace and ID is used.
required
Url
String named Specifies the URL of the VASA provider service.
optional
Certificate
String named Specifies the VASA provider certificate.
optional
Credential
PSCredential named Specifies credentials in the form of a PSCredential object. The Username and Password parameter pair is an alternative to the Credential parameter. If sufficient information about user and password, or credential is not specified, the cmdlet provides a credential prompt.
optional
Description
String named Specifies the description of the provider.
optional
Force
SwitchParameter named Forces the server to trust the provider and store the provider certificate for future reference. If not set, the server throws error in case the provider certificate is not in the list of trusted certificates.
optional
Password
SecureString named Specifies the password for connecting to a provider. The maximum length of the password is 255 characters. The Username and Password parameter pair is an alternative to the Credential parameter. If sufficient information about user and password, or credential is not specified, the cmdlet provides a credential prompt. This parameter is of type SecureString but it also accepts objects of type System.String.
optional
Server
VIServer[] named
  • wildcards
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.
    optional
    Username
    String named Specifies the user name for connecting to a provider. The maximum length of the user name is 255 characters. The Username and Password parameter pair is an alternative to the Credential parameter. If sufficient information about user and password, or credential is not specified, the cmdlet provides a credential prompt.

    Output

    VMware.VimAutomation.Storage.Types.V1.Sms.VasaProvider

    Examples


    Example 1

    New-VasaProvider -Name "MyProvider" -Username "UserName" -Password "Password" -Url "MyUrl"

    Registers a VASA provider running at "MyUrl" with the Storage Monitoring Service.

    Example 2

    New-VasaProvider -Name "MyProvider" -Credential "MyCredential" -Url "MyUrl" -Force

    Registers a VASA provider by using the "MyCredential" credential and forcing the Storage Monitoring Service to accept the certificate of the provider.

    Related Commands

    Feedback

    Was this page helpful?