Skip to content

[ADF] Remove cloud encrypt client as well #288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 21, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2296,29 +2296,7 @@
</command:commandLines>
</command:example>
<command:example>
<maml:title>Example 2: Encrypt a string</maml:title>
<maml:introduction>
<maml:para></maml:para>
</maml:introduction>
<dev:code>
PS C:\&gt; $Value = ConvertTo-SecureString 'Test123' -AsPlainText -ForcePS
</dev:code>
<dev:code>
PS C:\&gt;New-AzureDataFactoryEncryptValue -DataFactoryName "UncycloADF" -ResourceGroupName "ADF" -Value $Value
$Encrypted$String$KAAAAAABAAAQAAAAQUU5MUVBNzY4QkFCQkI3MEUwRTMxOUNFNkM0MjRDOTVDNDk3RTcyRi8XAXyE/H+f3JydTkdg5t2g1eC/VtyF3NAD3idYnhrAphPJmO0pCaG5nH2IY48L3XJi7wabrlrGF+ieiWh1bwdgdxrW+t2jWPnLvT/ENUXtcevpxdmTGKagH8TU9HLcoL1CAanb7Vkpga1B/uzRxBnVdsdtfvBzxG2M810tj1WzL8lFzA1mO5GbB0+ge116y0scL1vxjerjl5Muv0r0scG3lhj+IF0sXUMITFvhQwOIqweR052E6JlfJu+mTNFLCCkpw1iV+rhRhKqJF752dBuWjzI1EoyQUE17oK4OevkquuhUbfJmzj9BhGKQ+VkndAZiSw19FEGSC7JzoUe/XWEs/FJYrQCCXIeNS94J9/VzN6KPYJR1pzAYCtnhq+p8Q==
</dev:code>
<dev:remarks>
<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>
<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>
</dev:remarks>
<command:commandLines>
<command:commandLine>
<command:commandText />
</command:commandLine>
</command:commandLines>
</command:example>
<command:example>
<maml:title>Example 3: Encrypt a windows authentication connection string</maml:title>
<maml:title>Example 2: Encrypt a windows authentication connection string</maml:title>
<maml:introduction>
<maml:para></maml:para>
</maml:introduction>
Expand All @@ -2344,7 +2322,7 @@
</command:commandLines>
</command:example>
<command:example>
<maml:title>Example 4: Encrypt the server name and credentials for File system linked service</maml:title>
<maml:title>Example 3: Encrypt the server name and credentials for File system linked service</maml:title>
<maml:introduction>
<maml:para></maml:para>
</maml:introduction>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,6 @@ namespace Microsoft.Azure.Commands.DataFactories
{
public partial class DataFactoryClient
{
public virtual string CloudEncryptString(SecureString value, string resourceGroupName, string dataFactoryName)
{
if (value == null)
{
throw new ArgumentNullException("value");
}

return Extensions.Encrypt((DataPipelineManagementClient) DataPipelineManagementClient, value,
resourceGroupName, dataFactoryName);
}

public virtual string OnPremisesEncryptString(SecureString value, string resourceGroupName, string dataFactoryName, string gatewayName, PSCredential credential, string type)
{
if (value == null)
Expand Down