你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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