Skip to content

Commit 25585aa

Browse files
committed
changed warning message
1 parent b1ff8c0 commit 25585aa

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

src/ServiceManagement/Services/Commands.Utilities/Microsoft.WindowsAzure.Commands.dll-Help.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28117,7 +28117,7 @@
2811728117
<command:details>
2811828118
<command:name>New-AzureDataFactory</command:name>
2811928119
<maml:description>
28120-
<maml:para>Please run Switch-AzureMode AzureResourceManager to use ADF cmdlet, this is just a stub command.</maml:para>
28120+
<maml:para>You must be in AzureResourceManager mode to run Azure Data Factory cmdlets. To switch to AzureResourceManager mode, run Switch-AzureMode AzureResourceManager.</maml:para>
2812128121
</maml:description>
2812228122
<command:verb>New</command:verb>
2812328123
<command:noun>AzureDataFactory</command:noun>

src/ServiceManagement/Services/Commands/Commands.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
<Compile Include="MediaServices\NewAzureMediaServiceCommand.cs" />
213213
<Compile Include="MediaServices\NewAzureMediaServiceKeyCommand.cs" />
214214
<Compile Include="MediaServices\RemoveAzureMediaServiceCommand.cs" />
215-
<Compile Include="NewAzureDataFactoryStubCommand.cs" />
215+
<Compile Include="DataFactories\NewAzureDataFactoryStubCommand.cs" />
216216
<Compile Include="Scheduler\GetSchedulerJobCollectionCommand.cs" />
217217
<Compile Include="Scheduler\GetSchedulerJobCommand.cs" />
218218
<Compile Include="Scheduler\GetSchedulerJobHistoryCommand.cs" />

src/ServiceManagement/Services/Commands/NewAzureDataFactoryStubCommand.cs renamed to src/ServiceManagement/Services/Commands/DataFactories/NewAzureDataFactoryStubCommand.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
using System.Security.Permissions;
1818
using Microsoft.WindowsAzure.Commands.Utilities.Common;
1919

20-
namespace Microsoft.WindowsAzure.Commands
20+
namespace Microsoft.WindowsAzure.Commands.DataFactories
2121
{
2222
/// <summary>
2323
/// In order to show warning for ADF cmdlets if client is using service management mode
@@ -35,9 +35,6 @@ public class NewAzureDataFactoryStubCommand : AzurePSCmdlet
3535
[Parameter(Mandatory = false)]
3636
public string Location { get; set; }
3737

38-
[Parameter(Mandatory = false)]
39-
public string File { get; set; }
40-
4138
[Parameter(Mandatory = false)]
4239
public Hashtable Tags { get; set; }
4340

@@ -50,7 +47,7 @@ public class NewAzureDataFactoryStubCommand : AzurePSCmdlet
5047
[PermissionSet(SecurityAction.Demand, Name = "FullTrust")]
5148
public override void ExecuteCmdlet()
5249
{
53-
WriteWarning("This Azure Data Factory cmdlet is available in the AzureResourceManager mode. To use the cmdlet, switch the Azure mode using Switch-AzureMode AzureResourceManager.");
50+
WriteWarning("You must be in AzureResourceManager mode to run Azure Data Factory cmdlets. To switch to AzureResourceManager mode, run Switch-AzureMode AzureResourceManager.");
5451
}
5552
}
5653
}

0 commit comments

Comments
 (0)