## 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

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

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.