Skip to content

Commit 02cb786

Browse files
committed
Merge pull request Azure#288 from jackmagic313/dev
[ADF] Remove cloud encrypt client as well
2 parents a479b9f + 84cc0e6 commit 02cb786

File tree

2 files changed

+2
-35
lines changed

2 files changed

+2
-35
lines changed

src/ResourceManager/DataFactories/Commands.DataFactories/Microsoft.Azure.Commands.DataFactories.dll-Help.xml

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2296,29 +2296,7 @@
22962296
</command:commandLines>
22972297
</command:example>
22982298
<command:example>
2299-
<maml:title>Example 2: Encrypt a string</maml:title>
2300-
<maml:introduction>
2301-
<maml:para></maml:para>
2302-
</maml:introduction>
2303-
<dev:code>
2304-
PS C:\&gt; $Value = ConvertTo-SecureString 'Test123' -AsPlainText -ForcePS
2305-
</dev:code>
2306-
<dev:code>
2307-
PS C:\&gt;New-AzureDataFactoryEncryptValue -DataFactoryName "UncycloADF" -ResourceGroupName "ADF" -Value $Value
2308-
$Encrypted$String$KAAAAAABAAAQAAAAQUU5MUVBNzY4QkFCQkI3MEUwRTMxOUNFNkM0MjRDOTVDNDk3RTcyRi8XAXyE/H+f3JydTkdg5t2g1eC/VtyF3NAD3idYnhrAphPJmO0pCaG5nH2IY48L3XJi7wabrlrGF+ieiWh1bwdgdxrW+t2jWPnLvT/ENUXtcevpxdmTGKagH8TU9HLcoL1CAanb7Vkpga1B/uzRxBnVdsdtfvBzxG2M810tj1WzL8lFzA1mO5GbB0+ge116y0scL1vxjerjl5Muv0r0scG3lhj+IF0sXUMITFvhQwOIqweR052E6JlfJu+mTNFLCCkpw1iV+rhRhKqJF752dBuWjzI1EoyQUE17oK4OevkquuhUbfJmzj9BhGKQ+VkndAZiSw19FEGSC7JzoUe/XWEs/FJYrQCCXIeNS94J9/VzN6KPYJR1pzAYCtnhq+p8Q==
2309-
</dev:code>
2310-
<dev:remarks>
2311-
<maml:para>The first command uses the ConvertTo-SecureString cmdlet to convert the specified string to a SecureString object, and then stores that object in the $Value variable.</maml:para>
2312-
<maml:para>The second command creates an encrypted value for the object stored in $Value for the specified data factory and resource group. </maml:para>
2313-
</dev:remarks>
2314-
<command:commandLines>
2315-
<command:commandLine>
2316-
<command:commandText />
2317-
</command:commandLine>
2318-
</command:commandLines>
2319-
</command:example>
2320-
<command:example>
2321-
<maml:title>Example 3: Encrypt a windows authentication connection string</maml:title>
2299+
<maml:title>Example 2: Encrypt a windows authentication connection string</maml:title>
23222300
<maml:introduction>
23232301
<maml:para></maml:para>
23242302
</maml:introduction>
@@ -2344,7 +2322,7 @@
23442322
</command:commandLines>
23452323
</command:example>
23462324
<command:example>
2347-
<maml:title>Example 4: Encrypt the server name and credentials for File system linked service</maml:title>
2325+
<maml:title>Example 3: Encrypt the server name and credentials for File system linked service</maml:title>
23482326
<maml:introduction>
23492327
<maml:para></maml:para>
23502328
</maml:introduction>

src/ResourceManager/DataFactories/Commands.DataFactories/Models/DataFactoryClient.Encrypt.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,6 @@ namespace Microsoft.Azure.Commands.DataFactories
2222
{
2323
public partial class DataFactoryClient
2424
{
25-
public virtual string CloudEncryptString(SecureString value, string resourceGroupName, string dataFactoryName)
26-
{
27-
if (value == null)
28-
{
29-
throw new ArgumentNullException("value");
30-
}
31-
32-
return Extensions.Encrypt((DataPipelineManagementClient) DataPipelineManagementClient, value,
33-
resourceGroupName, dataFactoryName);
34-
}
35-
3625
public virtual string OnPremisesEncryptString(SecureString value, string resourceGroupName, string dataFactoryName, string gatewayName, PSCredential credential, string type)
3726
{
3827
if (value == null)

0 commit comments

Comments
 (0)