Edit

Share via


New-AzVMwareScriptSecureStringExecutionParameterObject

Create an in-memory object for ScriptSecureStringExecutionParameter.

Syntax

Default (Default)

New-AzVMwareScriptSecureStringExecutionParameterObject
    -Name <String>
    [-SecureValue <SecureString>]
    [<CommonParameters>]

Description

Create an in-memory object for ScriptSecureStringExecutionParameter.

Examples

Example 1: Create a local Script Secure String Execution object

$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText
New-AzVMwareScriptSecureStringExecutionParameterObject -Name azps_test_securevalue -SecureValue $mypwd
Name                                   SecureValue Type
----                                   ----------- ----
azps_test_securevalue System.Security.SecureString SecureValue

Create a local Script Secure String 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

-SecureValue

A secure value for the passed parameter, not to be stored in logs.

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

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

ScriptSecureStringExecutionParameter