Skip to content

Commit 277ecb6

Browse files
committed
Merge branch 'dev' of https://github.com/Azure/azure-powershell into working_dev
Conflicts: src/AzurePowershell.sln src/Common/Commands.Common.Storage/Commands.Common.Storage.csproj src/Common/Commands.Common.Storage/packages.config src/Common/Commands.Common.Test/Commands.Common.Test.csproj src/Common/Commands.Common.Test/packages.config src/Common/Commands.Common/Commands.Common.csproj src/Common/Commands.Common/packages.config src/Common/Commands.Profile/Commands.Profile.csproj src/Common/Commands.Profile/packages.config src/Common/Commands.ScenarioTest/Commands.ScenarioTest.csproj src/Common/Commands.ScenarioTest/packages.config src/Common/Commands.ScenarioTests.Common/Commands.ScenarioTests.Common.csproj src/Common/Commands.ScenarioTests.Common/packages.config src/ResourceManager.sln src/ResourceManager/Batch/Commands.Batch.Test/Commands.Batch.Test.csproj src/ResourceManager/Batch/Commands.Batch.Test/packages.config src/ResourceManager/Batch/Commands.Batch/Commands.Batch.csproj src/ResourceManager/Batch/Commands.Batch/packages.config src/ResourceManager/DataFactories/Commands.DataFactories.Test/Commands.DataFactories.Test.csproj src/ResourceManager/DataFactories/Commands.DataFactories.Test/packages.config src/ResourceManager/DataFactories/Commands.DataFactories/Commands.DataFactories.csproj src/ResourceManager/DataFactories/Commands.DataFactories/packages.config src/ResourceManager/Insights/Commands.Insights.Test/Commands.Insights.Test.csproj src/ResourceManager/Insights/Commands.Insights.Test/packages.config src/ResourceManager/Insights/Commands.Insights/Commands.Insights.csproj src/ResourceManager/Insights/Commands.Insights/packages.config src/ResourceManager/KeyVault/Commands.KeyVault.Test/Commands.KeyVault.Test.csproj src/ResourceManager/KeyVault/Commands.KeyVault.Test/packages.config src/ResourceManager/KeyVault/Commands.KeyVault/Commands.KeyVault.csproj src/ResourceManager/KeyVault/Commands.KeyVault/packages.config src/ResourceManager/RedisCache/Commands.RedisCache.Test/Commands.RedisCache.Test.csproj src/ResourceManager/RedisCache/Commands.RedisCache.Test/packages.config src/ResourceManager/RedisCache/Commands.RedisCache/Commands.RedisCache.csproj src/ResourceManager/RedisCache/Commands.RedisCache/packages.config src/ResourceManager/Resources/Commands.Resources.Test/Commands.Resources.Test.csproj src/ResourceManager/Resources/Commands.Resources.Test/packages.config src/ResourceManager/Resources/Commands.Resources/Commands.Resources.csproj src/ResourceManager/Resources/Commands.Resources/packages.config src/ResourceManager/Sql/Commands.Sql.Test/Commands.Sql.Test.csproj src/ResourceManager/Sql/Commands.Sql.Test/packages.config src/ResourceManager/Sql/Commands.Sql/Commands.Sql.csproj src/ResourceManager/Sql/Commands.Sql/packages.config src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Commands.StreamAnalytics.Test.csproj src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/packages.config src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Commands.StreamAnalytics.csproj src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/packages.config src/ResourceManager/Tags/Commands.Tags/Commands.Tags.csproj src/ResourceManager/Tags/Commands.Tags/packages.config src/ResourceManager/Websites/Commands.Websites/Commands.Websites.csproj src/ResourceManager/Websites/Commands.Websites/packages.config src/ServiceManagement/Automation/Commands.Automation.Test/Commands.Automation.Test.csproj src/ServiceManagement/Automation/Commands.Automation.Test/packages.config src/ServiceManagement/Automation/Commands.Automation/Commands.Automation.csproj src/ServiceManagement/Automation/Commands.Automation/packages.config src/ServiceManagement/Compute/Commands.ServiceManagement.Extensions.Test/Commands.ServiceManagement.Extensions.Test.csproj src/ServiceManagement/Compute/Commands.ServiceManagement.Extensions.Test/packages.config src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/Commands.ServiceManagement.PlatformImageRepository.csproj src/ServiceManagement/Compute/Commands.ServiceManagement.PlatformImageRepository/packages.config src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Commands.ServiceManagement.Preview.csproj src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/packages.config src/ServiceManagement/Compute/Commands.ServiceManagement.Test/Commands.ServiceManagement.Test.csproj src/ServiceManagement/Compute/Commands.ServiceManagement.Test/packages.config src/ServiceManagement/Compute/Commands.ServiceManagement/Commands.ServiceManagement.csproj src/ServiceManagement/Compute/Commands.ServiceManagement/packages.config src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/Commands.ExpressRoute.csproj src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/packages.config src/ServiceManagement/HDInsight/Commands.HDInsight.Test/Commands.HDInsight.Test.csproj src/ServiceManagement/HDInsight/Commands.HDInsight.Test/packages.config src/ServiceManagement/HDInsight/Commands.HDInsight/Commands.HDInsight.csproj src/ServiceManagement/HDInsight/Commands.HDInsight/packages.config src/ServiceManagement/ManagedCache/Commands.ManagedCache.Test/Commands.ManagedCache.Test.csproj src/ServiceManagement/ManagedCache/Commands.ManagedCache.Test/packages.config src/ServiceManagement/ManagedCache/Commands.ManagedCache/Commands.ManagedCache.csproj src/ServiceManagement/ManagedCache/Commands.ManagedCache/packages.config src/ServiceManagement/Network/Commands.Network.Test/Commands.Network.Test.csproj src/ServiceManagement/Network/Commands.Network.Test/packages.config src/ServiceManagement/Network/Commands.Network/Commands.Network.csproj src/ServiceManagement/Network/Commands.Network/packages.config src/ServiceManagement/RecoveryServices/Commands.RecoveryServices.Test/Commands.RecoveryServices.Test.csproj src/ServiceManagement/RecoveryServices/Commands.RecoveryServices.Test/packages.config src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Commands.RecoveryServices.csproj src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/packages.config src/ServiceManagement/Services/Commands.Test.Utilities/Commands.Test.Utilities.csproj src/ServiceManagement/Services/Commands.Test.Utilities/packages.config src/ServiceManagement/Services/Commands.Test/Commands.Test.csproj src/ServiceManagement/Services/Commands.Test/packages.config src/ServiceManagement/Services/Commands.Utilities/Commands.Utilities.csproj src/ServiceManagement/Services/Commands.Utilities/packages.config src/ServiceManagement/Services/Commands/Commands.csproj src/ServiceManagement/Services/Commands/packages.config src/ServiceManagement/Sql/Commands.SqlDatabase.Test/Commands.SqlDatabase.Test.csproj src/ServiceManagement/Sql/Commands.SqlDatabase.Test/packages.config src/ServiceManagement/Sql/Commands.SqlDatabase/Commands.SqlDatabase.csproj src/ServiceManagement/Sql/Commands.SqlDatabase/packages.config src/ServiceManagement/StorSimple/Commands.StorSimple.Test/Commands.StorSimple.Test.csproj src/ServiceManagement/StorSimple/Commands.StorSimple.Test/packages.config src/ServiceManagement/StorSimple/Commands.StorSimple/Commands.StorSimple.csproj src/ServiceManagement/StorSimple/Commands.StorSimple/packages.config src/ServiceManagement/Storage/Commands.Storage.Test/Commands.Storage.Test.csproj src/ServiceManagement/Storage/Commands.Storage.Test/packages.config src/ServiceManagement/Storage/Commands.Storage/Commands.Storage.csproj src/ServiceManagement/Storage/Commands.Storage/packages.config src/ServiceManagement/TrafficManager/Commands.TrafficManager.Test/Commands.TrafficManager.Test.csproj src/ServiceManagement/TrafficManager/Commands.TrafficManager.Test/packages.config src/ServiceManagement/TrafficManager/Commands.TrafficManager/Commands.TrafficManager.csproj src/ServiceManagement/TrafficManager/Commands.TrafficManager/packages.config
2 parents 95bab06 + 8fdb7c2 commit 277ecb6

File tree

45 files changed

+4853
-143
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+4853
-143
lines changed

AzurePowershell.Test.targets

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<DataFactoryManagerTestDebug>.\src\ResourceManager\DataFactories\Commands.DataFactories.Test\bin\Debug\Microsoft.Azure.Commands.DataFactories.Test.dll</DataFactoryManagerTestDebug>
1717
<StreamAnalyticsManagerTestDebug>.\src\ResourceManager\StreamAnalytics\Commands.StreamAnalytics.Test\bin\Debug\Microsoft.Azure.Commands.StreamAnalytics.Test.dll</StreamAnalyticsManagerTestDebug>
1818
<BatchTestDebug>.\src\ResourceManager\Batch\Commands.Batch.Test\bin\Debug\Microsoft.Azure.Commands.Batch.Test.dll</BatchTestDebug>
19+
<WebsitesTestDebug>.\src\ResourceManager\Websites\Commands.Websites.Test\bin\Debug\Microsoft.Azure.Commands.Websites.Test.dll</WebsitesTestDebug>
1920
<ServiceManagementTestDebug>.\src\ServiceManagement\Compute\Commands.ServiceManagement.Test\bin\Debug\Microsoft.WindowsAzure.Commands.ServiceManagement.Test.dll</ServiceManagementTestDebug>
2021
<ServiceManagementExtensionsTestDebug>.\src\ServiceManagement\Compute\Commands.ServiceManagement.Extensions.Test\bin\Debug\Microsoft.WindowsAzure.Commands.ServiceManagement.Extensions.Test.dll</ServiceManagementExtensionsTestDebug>
2122
<SqlDatabaseTestDebug>.\src\ServiceManagement\Sql\Commands.SqlDatabase.Test\bin\Debug\Microsoft.WindowsAzure.Commands.SqlDatabase.Test.dll</SqlDatabaseTestDebug>
@@ -40,6 +41,7 @@
4041
<XUnitTests Include=".\src\ResourceManager\DataFactories\Commands.DataFactories.Test\bin\Debug\Microsoft.Azure.Commands.DataFactories.Test.dll"/>
4142
<XUnitTests Include=".\src\ResourceManager\StreamAnalytics\Commands.StreamAnalytics.Test\bin\Debug\Microsoft.Azure.Commands.StreamAnalytics.Test.dll"/>
4243
<XUnitTests Include=".\src\ResourceManager\Batch\Commands.Batch.Test\bin\Debug\Microsoft.Azure.Commands.Batch.Test.dll"/>
44+
<XUnitTests Include=".\src\ResourceManager\Websites\Commands.Websites.Test\bin\Debug\Microsoft.Azure.Commands.Websites.Test.dll"/>
4345
<XUnitTests Include=".\src\ResourceManager\KeyVault\Commands.KeyVault.Test\bin\Debug\Microsoft.Azure.Commands.KeyVault.Test.dll"/>
4446
<XUnitTests Include=".\src\ServiceManagement\ManagedCache\Commands.ManagedCache.Test\bin\Debug\Microsoft.Azure.Commands.ManagedCache.Test.dll"/>
4547
<XUnitTests Include=".\src\Common\Commands.ScenarioTest\bin\Debug\Microsoft.WindowsAzure.Commands.ScenarioTest.dll"/>
@@ -90,6 +92,12 @@
9092
ExcludeTraits="$(XUnitExcludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
9193
</Target>
9294

95+
96+
<Target Name="TestWebsites">
97+
<Xunit.Runner.MSBuild.xunit Assemblies="$(WebsitesTestDebug)" Html="$(TestOutputDirectory)\WebsitesTestDebug.xunit.dll.html" Verbose="false"
98+
ExcludeTraits="$(XUnitExcludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
99+
</Target>
100+
93101
<Target Name="TestDataFactoryManager">
94102
<Xunit.Runner.MSBuild.xunit Assemblies="$(DataFactoryManagerTestDebug)" Html="$(TestOutputDirectory)\DataFactoryManagerTestDebug.xunit.dll.html" Verbose="false"
95103
ExcludeTraits="$(XUnitExcludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />

src/AzurePowershell.sln

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Websites", "Resour
167167
EndProject
168168
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.RemoteApp", "ServiceManagement\RemoteApp\Commands.RemoteApp\Commands.RemoteApp.csproj", "{492D2AF2-950B-4F2E-8079-8794305313FD}"
169169
EndProject
170+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Websites.Test", "ResourceManager\Websites\Commands.Websites.Test\Commands.Websites.Test.csproj", "{13E031E4-8A43-4B87-9D72-D70180C31C11}"
171+
EndProject
170172
Global
171173
GlobalSection(SolutionConfigurationPlatforms) = preSolution
172174
Debug|Any CPU = Debug|Any CPU
@@ -409,12 +411,15 @@ Global
409411
{492D2AF2-950B-4F2E-8079-8794305313FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
410412
{492D2AF2-950B-4F2E-8079-8794305313FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
411413
{492D2AF2-950B-4F2E-8079-8794305313FD}.Release|Any CPU.Build.0 = Release|Any CPU
414+
{13E031E4-8A43-4B87-9D72-D70180C31C11}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
415+
{13E031E4-8A43-4B87-9D72-D70180C31C11}.Debug|Any CPU.Build.0 = Debug|Any CPU
416+
{13E031E4-8A43-4B87-9D72-D70180C31C11}.Release|Any CPU.ActiveCfg = Release|Any CPU
417+
{13E031E4-8A43-4B87-9D72-D70180C31C11}.Release|Any CPU.Build.0 = Release|Any CPU
412418
EndGlobalSection
413419
GlobalSection(SolutionProperties) = preSolution
414420
HideSolutionNode = FALSE
415421
EndGlobalSection
416422
GlobalSection(NestedProjects) = preSolution
417-
{B7FD03F6-98BC-4F54-9A14-0455E579FCD4} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
418423
{37455286-D8A7-4E0C-8B4D-C517D20C641A} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
419424
{D6F470A6-7395-4B8B-9D29-44DF0EC8F624} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
420425
{A3965B66-5A3E-4B8C-9574-28E5958D4828} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
@@ -425,6 +430,7 @@ Global
425430
{4BC0E3D3-6EDD-43AA-8F15-DCFED8ACC93D} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
426431
{9D5A40CA-5594-4F5C-8230-7ADF7CC0558E} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
427432
{3B48A77B-5956-4A62-9081-92BA04B02B27} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
433+
{B7FD03F6-98BC-4F54-9A14-0455E579FCD4} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
428434
{4C2FE49A-09E1-4979-AD46-CD64FD04C8F7} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
429435
{374D4000-DEDE-4995-9B63-E3B9FE0C4D29} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
430436
{127D0D51-FDEA-4E1A-8CD8-34DEB5C2F7F6} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
@@ -442,5 +448,6 @@ Global
442448
{0FA676D5-1349-4086-B33F-65EC2CB7DA41} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
443449
{7E6683BE-ECFF-4709-89EB-1325E9E70512} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
444450
{469F20E0-9D40-41AD-94C3-B47AD15A4C00} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
451+
{13E031E4-8A43-4B87-9D72-D70180C31C11} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
445452
EndGlobalSection
446453
EndGlobal

src/Common/Commands.Profile/Environment/AddAzureEnvironment.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,20 @@ public class AddAzureEnvironmentCommand : SubscriptionCmdletBase
6969
HelpMessage = "Resource identifier of Azure Key Vault data service that is the recipient of the requested token.")]
7070
public string AzureKeyVaultServiceEndpointResourceId { get; set; }
7171

72+
[Parameter(Position = 12, Mandatory = false, ValueFromPipelineByPropertyName = true,
73+
HelpMessage = "Enable ADFS authentication by disabling the authority validation")]
74+
public SwitchParameter EnableADFSAuthentication { get; set; }
75+
7276
public AddAzureEnvironmentCommand() : base(true) { }
7377

7478
[PermissionSet(SecurityAction.Demand, Name = "FullTrust")]
7579
public override void ExecuteCmdlet()
7680
{
77-
var newEnvironment = new AzureEnvironment {Name = Name};
81+
var newEnvironment = new AzureEnvironment
82+
{
83+
Name = Name,
84+
OnPremise = EnableADFSAuthentication
85+
};
7886
newEnvironment.Endpoints[AzureEnvironment.Endpoint.PublishSettingsFileUrl] = PublishSettingsFileUrl;
7987
newEnvironment.Endpoints[AzureEnvironment.Endpoint.ServiceManagement] = ServiceEndpoint;
8088
newEnvironment.Endpoints[AzureEnvironment.Endpoint.ResourceManager] = ResourceManagerEndpoint;

src/ResourceManager.sln

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 2013
3-
VisualStudioVersion = 12.0.30723.0
3+
VisualStudioVersion = 12.0.21005.1
44
MinimumVisualStudioVersion = 10.0.40219.1
55
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8531411A-0137-4E27-9C5E-49E07C245048}"
66
ProjectSection(SolutionItems) = preProject
@@ -51,6 +51,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Insights", "Resour
5151
EndProject
5252
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Insights.Test", "ResourceManager\Insights\Commands.Insights.Test\Commands.Insights.Test.csproj", "{469F20E0-9D40-41AD-94C3-B47AD15A4C00}"
5353
EndProject
54+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Websites", "ResourceManager\Websites\Commands.Websites\Commands.Websites.csproj", "{80A92297-7C92-456B-8EE7-9FB6CE30149D}"
55+
EndProject
56+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Websites.Test", "ResourceManager\Websites\Commands.Websites.Test\Commands.Websites.Test.csproj", "{F4ABAD68-64A5-4B23-B09C-42559A7524DE}"
57+
EndProject
5458
Global
5559
GlobalSection(SolutionConfigurationPlatforms) = preSolution
5660
Debug|Any CPU = Debug|Any CPU
@@ -137,6 +141,14 @@ Global
137141
{469F20E0-9D40-41AD-94C3-B47AD15A4C00}.Debug|Any CPU.Build.0 = Debug|Any CPU
138142
{469F20E0-9D40-41AD-94C3-B47AD15A4C00}.Release|Any CPU.ActiveCfg = Release|Any CPU
139143
{469F20E0-9D40-41AD-94C3-B47AD15A4C00}.Release|Any CPU.Build.0 = Release|Any CPU
144+
{80A92297-7C92-456B-8EE7-9FB6CE30149D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
145+
{80A92297-7C92-456B-8EE7-9FB6CE30149D}.Debug|Any CPU.Build.0 = Debug|Any CPU
146+
{80A92297-7C92-456B-8EE7-9FB6CE30149D}.Release|Any CPU.ActiveCfg = Release|Any CPU
147+
{80A92297-7C92-456B-8EE7-9FB6CE30149D}.Release|Any CPU.Build.0 = Release|Any CPU
148+
{F4ABAD68-64A5-4B23-B09C-42559A7524DE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
149+
{F4ABAD68-64A5-4B23-B09C-42559A7524DE}.Debug|Any CPU.Build.0 = Debug|Any CPU
150+
{F4ABAD68-64A5-4B23-B09C-42559A7524DE}.Release|Any CPU.ActiveCfg = Release|Any CPU
151+
{F4ABAD68-64A5-4B23-B09C-42559A7524DE}.Release|Any CPU.Build.0 = Release|Any CPU
140152
EndGlobalSection
141153
GlobalSection(SolutionProperties) = preSolution
142154
HideSolutionNode = FALSE
@@ -151,5 +163,6 @@ Global
151163
{56ED8C97-53B9-4DF6-ACB5-7E6800105BF8} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
152164
{7E6683BE-ECFF-4709-89EB-1325E9E70512} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
153165
{469F20E0-9D40-41AD-94C3-B47AD15A4C00} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
166+
{F4ABAD68-64A5-4B23-B09C-42559A7524DE} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
154167
EndGlobalSection
155168
EndGlobal

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2095,7 +2095,7 @@
20952095
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="false" position="3" aliases="">
20962096
<maml:name>Value</maml:name>
20972097
<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>
20992099
</maml:description>
21002100
<command:parameterValue required="true" variableLength="false">SecureString</command:parameterValue>
21012101
</command:parameter>
@@ -2116,7 +2116,7 @@
21162116
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="5" aliases="">
21172117
<maml:name>Type</maml:name>
21182118
<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>
21202120
</maml:description>
21212121
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
21222122
</command:parameter>
@@ -2133,7 +2133,7 @@
21332133
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="false" position="2" aliases="">
21342134
<maml:name>Value</maml:name>
21352135
<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>
21372137
</maml:description>
21382138
<command:parameterValue required="true" variableLength="false">SecureString</command:parameterValue>
21392139
</command:parameter>
@@ -2154,7 +2154,7 @@
21542154
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="6" aliases="">
21552155
<maml:name>Type</maml:name>
21562156
<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>
21582158
</maml:description>
21592159
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
21602160
</command:parameter>
@@ -2212,7 +2212,7 @@
22122212
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="false" position="3" aliases="">
22132213
<maml:name>Value</maml:name>
22142214
<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>
22162216
</maml:description>
22172217
<command:parameterValue required="true" variableLength="false">SecureString</command:parameterValue>
22182218
<dev:type>
@@ -2236,7 +2236,7 @@
22362236
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="false" position="6" aliases="">
22372237
<maml:name>Type</maml:name>
22382238
<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>
22402240
</maml:description>
22412241
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
22422242
<dev:type>
@@ -2353,15 +2353,15 @@
23532353
</command:commandLines>
23542354
</command:example>
23552355
<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>
23572357
<maml:introduction>
23582358
<maml:para></maml:para>
23592359
</maml:introduction>
23602360
<dev:code>
2361-
PS C:\&gt; $Value = ConvertTo-SecureString '\\hostname\FilePath' -AsPlainText -Force
2361+
PS C:\&gt; $Value = ConvertTo-SecureString '\\servername' -AsPlainText -Force
23622362
PS C:\&gt; $Credential = Get-Credential
23632363
PS C:\&gt; New-AzureDataFactoryEncryptValue -DataFactoryName "UncycloADF" -GatewayName "UncycloGateway" -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==
23652365
</dev:code>
23662366
<dev:remarks>
23672367
<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

Comments
 (0)