Invoke-ServiceFabricEncryptSecret
OBSOLETE. Please use Invoke-ServiceFabricEncryptText cmdlet.
Syntax
Default (Default)
Invoke-ServiceFabricEncryptSecret
[-CertThumbPrint] <String>
[-CertStoreLocation] <String>
[-Text] <String>
[<CommonParameters>]
Description
This cmdlet is obsolete in favor of Invoke-ServiceFabricEncryptText.
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.
Parameters
-CertStoreLocation
Specifies the location of the certificate in the certificate store. The default location is MY.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 1 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-CertThumbPrint
Specifies the thumbprint of the certificate to use for encrypting.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 0 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Text
Specifies the string to encrypt.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 2 |
Mandatory: | True |
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.