PowerCLI Reference

New-VasaProvider

Synopsis

This cmdlet registers a VASA provider.

Syntax

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

Related Commands

Online Version
Get-VasaProvider
Remove-VasaProvider

Detailed Description

This cmdlet registers a VASA provider.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
CertificateStringSpecifies the VASA provider certificate.falseFalse
ConfirmSwitchParameterIf 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.falseFalse
CredentialPSCredentialSpecifies 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.falseFalse
DescriptionStringSpecifies the description of the provider.falseFalse
ForceSwitchParameterForces 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.falseFalse
NameStringSpecifies 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.trueFalse
PasswordSecureStringSpecifies 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.falseFalse
ServerVIServerSpecifies 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.falseFalse
UrlStringSpecifies the URL of the VASA provider service.trueFalse
UsernameStringSpecifies 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.falseFalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falseFalse

Return Type

The newly created VasaProvider object

Notes

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.


Copyright © VMware, Inc. All rights reserved.