Name | Type | Description | Required? | Pipeline Input | Default Value |
---|
Certificate | String | Specifies the VASA provider certificate. | false | False |
Confirm | SwitchParameter | If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation. | false | False |
Credential | PSCredential | 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. | false | False |
Description | String | Specifies the description of the provider. | false | False |
Force | SwitchParameter | 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. | false | False |
Name | String | 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. | true | False |
Password | SecureString | 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. | false | False |
Server | VIServer | Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer. | false | False |
Url | String | Specifies the URL of the VASA provider service. | true | False |
Username | String | 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. | false | False |
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | False |
-------------------------- 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.