|
2095 | 2095 | <command:parameter required="true" variableLength="false" globbing="false" pipelineInput="false" position="3" aliases="">
|
2096 | 2096 | <maml:name>Value</maml:name>
|
2097 | 2097 | <maml:description>
|
2098 |
| - <maml:para>Specifies the value to encrypt.</maml:para> |
| 2098 | + <maml:para>Specifies the value to encrypt. For on premises SQL linked service, use a connection string. For on premises file system linked service, if the file system is local to the gateway machine, use Local or localhost, and if the file system is on a server different from the gateway machine, use \\servername.</maml:para> |
2099 | 2099 | </maml:description>
|
2100 | 2100 | <command:parameterValue required="true" variableLength="false">SecureString</command:parameterValue>
|
2101 | 2101 | </command:parameter>
|
|
2116 | 2116 | <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="5" aliases="">
|
2117 | 2117 | <maml:name>Type</maml:name>
|
2118 | 2118 | <maml:description>
|
2119 |
| - <maml:para>Specifies the linked service type. This cmdlet encrypts data for the linked service type that this parameter specifies. For on-premises SQL linked service, type OnPremisesSqlLinkedService and for file system linked service, type OnPremisesFileSystemLinkedService</maml:para> |
| 2119 | + <maml:para>Specifies the linked service type. This cmdlet encrypts data for the linked service type that this parameter specifies. Allowed values: OnPremisesSqlLinkedService and OnPremisesFileSystemLinkedService.</maml:para> |
2120 | 2120 | </maml:description>
|
2121 | 2121 | <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
|
2122 | 2122 | </command:parameter>
|
|
2133 | 2133 | <command:parameter required="true" variableLength="false" globbing="false" pipelineInput="false" position="2" aliases="">
|
2134 | 2134 | <maml:name>Value</maml:name>
|
2135 | 2135 | <maml:description>
|
2136 |
| - <maml:para>Specifies the value to encrypt.</maml:para> |
| 2136 | + <maml:para>Specifies the value to encrypt. For on premises SQL linked service, use a connection string. For on premises file system linked service, if the file system is local to the gateway machine, use Local or localhost, and if the file system is on a server different from the gateway machine, use \\servername.</maml:para> |
2137 | 2137 | </maml:description>
|
2138 | 2138 | <command:parameterValue required="true" variableLength="false">SecureString</command:parameterValue>
|
2139 | 2139 | </command:parameter>
|
|
2154 | 2154 | <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="6" aliases="">
|
2155 | 2155 | <maml:name>Type</maml:name>
|
2156 | 2156 | <maml:description>
|
2157 |
| - <maml:para>Specifies the linked service type. This cmdlet encrypts data for the linked service type that this parameter specifies. For on-premises SQL linked service, type OnPremisesSqlLinkedService and for file system linked service, type OnPremisesFileSystemLinkedService.</maml:para> |
| 2157 | + <maml:para>Specifies the linked service type. This cmdlet encrypts data for the linked service type that this parameter specifies. Allowed values: OnPremisesSqlLinkedService and OnPremisesFileSystemLinkedService.</maml:para> |
2158 | 2158 | </maml:description>
|
2159 | 2159 | <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
|
2160 | 2160 | </command:parameter>
|
|
2212 | 2212 | <command:parameter required="true" variableLength="false" globbing="false" pipelineInput="false" position="3" aliases="">
|
2213 | 2213 | <maml:name>Value</maml:name>
|
2214 | 2214 | <maml:description>
|
2215 |
| - <maml:para>Specifies the value to encrypt.</maml:para> |
| 2215 | + <maml:para>Specifies the value to encrypt. For on premises SQL linked service, use a connection string. For on premises file system linked service, if the file system is local to the gateway machine, use Local or localhost, and if the file system is on a server different from the gateway machine, use \\servername.</maml:para> |
2216 | 2216 | </maml:description>
|
2217 | 2217 | <command:parameterValue required="true" variableLength="false">SecureString</command:parameterValue>
|
2218 | 2218 | <dev:type>
|
|
2236 | 2236 | <command:parameter required="true" variableLength="false" globbing="false" pipelineInput="false" position="6" aliases="">
|
2237 | 2237 | <maml:name>Type</maml:name>
|
2238 | 2238 | <maml:description>
|
2239 |
| - <maml:para>Specifies the linked service type. For on premises SQL linked service, type OnPremisesSqlLinkedService and for file system linked service, type OnPremisesFileSystemLinkedService.</maml:para> |
| 2239 | + <maml:para>Specifies the linked service type. This cmdlet encrypts data for the linked service type that this parameter specifies. Allowed values: OnPremisesSqlLinkedService and OnPremisesFileSystemLinkedService.</maml:para> |
2240 | 2240 | </maml:description>
|
2241 | 2241 | <command:parameterValue required="true" variableLength="false">String</command:parameterValue>
|
2242 | 2242 | <dev:type>
|
|
2353 | 2353 | </command:commandLines>
|
2354 | 2354 | </command:example>
|
2355 | 2355 | <command:example>
|
2356 |
| - <maml:title>Example 4: Encrypt a file system path</maml:title> |
| 2356 | + <maml:title>Example 4: Encrypt the server name and credentials for File system linked service</maml:title> |
2357 | 2357 | <maml:introduction>
|
2358 | 2358 | <maml:para></maml:para>
|
2359 | 2359 | </maml:introduction>
|
2360 | 2360 | <dev:code>
|
2361 |
| - PS C:\> $Value = ConvertTo-SecureString '\\hostname\FilePath' -AsPlainText -Force |
| 2361 | + PS C:\> $Value = ConvertTo-SecureString '\\servername' -AsPlainText -Force |
2362 | 2362 | PS C:\> $Credential = Get-Credential
|
2363 | 2363 | PS C:\> New-AzureDataFactoryEncryptValue -DataFactoryName "WikiADF" -GatewayName "WikiGateway" -ResourceGroupName "ADF" -Value $Value -Credential $Credential -Type OnPremisesFileSystemLinkedService
|
2364 |
| - EncryptedCredential=KAAAAAABAAAQAAAAQUU5MUVBNzY4QkFCQkI3MEUwRTMxOUNFNkM0MjRDOTVDNDk3RTcyRi8XAXyE/H+f3JydTkdg5t2g1eC/VtyF3NAD3idYnhrAphPJmO0pCaG5nH2IY48L3XJi7wabrlrGF+ieiWh1bwdgdxrW+t2jWPnLvT/ENUXtcevpx/dmTGKagH8TU9HLcoL1CAanb7Vkpga1B/uzRxBnVdsdtfvBzxG2M810tj1WzL8lFzA1mO5GbB0+ge116y0scL1vxjerjl5Muv0r0scG3lhj+IF0sXUMITFvhQwOIqweR052E6JlfJu+mTNFLCCkpw1iV+rhRhKqJF752dBuWjzI1EoyQUE17oK4OevkquuhUbfJmzj9BhGKQ+VkndAZiSw19FEGSC7JzoUe/XWEs/FJYrQCCXIeNS94J9/VzN6KPYJR1pzAYCtnhq+p8Q== |
| 2364 | + KAAAAAABAAAQAAAAQUU5MUVBNzY4QkFCQkI3MEUwRTMxOUNFNkM0MjRDOTVDNDk3RTcyRi8XAXyE/H+f3JydTkdg5t2g1eC/VtyF3NAD3idYnhrAphPJmO0pCaG5nH2IY48L3XJi7wabrlrGF+ieiWh1bwdgdxrW+t2jWPnLvT/ENUXtcevpx/dmTGKagH8TU9HLcoL1CAanb7Vkpga1B/uzRxBnVdsdtfvBzxG2M810tj1WzL8lFzA1mO5GbB0+ge116y0scL1vxjerjl5Muv0r0scG3lhj+IF0sXUMITFvhQwOIqweR052E6JlfJu+mTNFLCCkpw1iV+rhRhKqJF752dBuWjzI1EoyQUE17oK4OevkquuhUbfJmzj9BhGKQ+VkndAZiSw19FEGSC7JzoUe/XWEs/FJYrQCCXIeNS94J9/VzN6KPYJR1pzAYCtnhq+p8Q== |
2365 | 2365 | </dev:code>
|
2366 | 2366 | <dev:remarks>
|
2367 | 2367 | <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>
|
|
0 commit comments