Edit

Share via


New-AzVMwarePSCredentialExecutionParameterObject

Create an in-memory object for PSCredentialExecutionParameter.

Syntax

Default (Default)

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 "1234" -Force -AsPlainText
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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Password

password for login.

Parameter properties

Type:SecureString
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Username

username for login.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

PsCredentialExecutionParameter