New-AzVMwarePSCredentialExecutionParameterObject

Create an in-memory object for PSCredentialExecutionParameter.

Syntax

New-AzVMwarePSCredentialExecutionParameterObject
   -Name <String>
   [-Password <SecureString>]
   [-Username <String>]
   [<CommonParameters>]

Description

Create an in-memory object for PSCredentialExecutionParameter.

Examples

Example 1: Create a local PS Credential Execution object

$mypwd = ConvertTo-SecureString -String "****" -AsPlainText -Force
New-AzVMwarePSCredentialExecutionParameterObject -Name azps_test_credentialvalue -Password $mypwd -Username "usernameValue"

Name                                          Password Type       Username
----                                          -------- ----       --------
azps_test_credentialvalue System.Security.SecureString Credential usernameValue

Create a local PS Credential Execution object

Parameters

-Name

The parameter name.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Password

password for login.

Type:SecureString
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Username

username for login.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

PsCredentialExecutionParameter