Bearbeiten

Freigeben über


New-AzVMwareScriptSecureStringExecutionParameterObject

Create an in-memory object for ScriptSecureStringExecutionParameter.

Syntax

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

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

-SecureValue

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

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

Outputs

ScriptSecureStringExecutionParameter