Invoke-ServiceFabricEncryptSecret
OBSOLETE. Please use Invoke-ServiceFabricEncryptText cmdlet.
Syntax
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.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CertThumbPrint
Specifies the thumbprint of the certificate to use for encrypting.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Text
Specifies the string to encrypt.
Type: | String |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
System.Object