PowerCLI Reference

New-VasaProvider

Synopsis

This cmdlet registers a VASA provider.

Syntax

New-VasaProvider -Name <String> -Url <String> [-Credential <PSCredential>] [-Username <String>] [-Password <SecureString>] [-Description <String>] [-Certificate <String>] [-Force] [-Server <VIServer>] [-WhatIf] [-Confirm] [<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.