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

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