Invoke-​Service​Fabric​Encrypt​Secret

Obsolete Please use Invoke-ServiceFabricEncryptText (./Invoke-ServiceFabricEncryptText.md)cmdlet.

Syntax

Invoke-ServiceFabricEncryptSecret
      [-CertThumbPrint] <String>
      [-CertStoreLocation] <String>
      [-Text] <String>
      [<CommonParameters>]

Description

The Invoke-ServiceFabricEncryptSecret cmdlet is obsolete. Please use Invoke-ServiceFabricEncryptText cmdlet.

Examples

Example 1: Encrypt plain text

PS C:\> Invoke-ServiceFabricEncryptSecret -CertThumbPrint "22 5c 58 43 48 50 92 57 2c 22 32 26 ae 67 87 ba c2 f1 cf 24" -CertStoreLocation "MY" -Text "xstore:DefaultEndpointsProtocol=https;AccountName=servicefabricstorage;AccountKey=[StorageAccountKey];Container=clusterupgrade"

This command encrypts the specified plain text. The command specifies the certificate thumbprint and store name.

Required Parameters

-CertStoreLocation

Specifies the location of the certificate in the certificate store. The default location is MY.

Type:String
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CertThumbPrint

Specifies the thumbprint of the certificate to use for encrypting.

Type:String
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Text

Specifies the string to encrypt.

Type:String
Position:3
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

You cannot pipe input to this cmdlet.

Outputs

System.Object

This cmdlet returns the encrypted secret as a String.