diff --git a/src/ServiceManagement/Services/Commands.Utilities/Microsoft.WindowsAzure.Commands.dll-Help.xml b/src/ServiceManagement/Services/Commands.Utilities/Microsoft.WindowsAzure.Commands.dll-Help.xml index 304d174c1a2c..c16ba4e1e18a 100644 --- a/src/ServiceManagement/Services/Commands.Utilities/Microsoft.WindowsAzure.Commands.dll-Help.xml +++ b/src/ServiceManagement/Services/Commands.Utilities/Microsoft.WindowsAzure.Commands.dll-Help.xml @@ -27905,14 +27905,4 @@ - - - New-AzureDataFactory - - You must be in AzureResourceManager mode to run Azure Data Factory cmdlets. To switch to AzureResourceManager mode, run Switch-AzureMode AzureResourceManager. - - New - AzureDataFactory - - diff --git a/src/ServiceManagement/Services/Commands/Commands.csproj b/src/ServiceManagement/Services/Commands/Commands.csproj index e3d613cec441..148ccdbb2f4a 100644 --- a/src/ServiceManagement/Services/Commands/Commands.csproj +++ b/src/ServiceManagement/Services/Commands/Commands.csproj @@ -221,7 +221,6 @@ - diff --git a/src/ServiceManagement/Services/Commands/DataFactories/NewAzureDataFactoryStubCommand.cs b/src/ServiceManagement/Services/Commands/DataFactories/NewAzureDataFactoryStubCommand.cs deleted file mode 100644 index 39f32365cb23..000000000000 --- a/src/ServiceManagement/Services/Commands/DataFactories/NewAzureDataFactoryStubCommand.cs +++ /dev/null @@ -1,53 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// http://www.apache.org/licenses/LICENSE-2.0 -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// ---------------------------------------------------------------------------------- - -using System.Collections; -using System.Management.Automation; -using System.Security.Permissions; -using Microsoft.WindowsAzure.Commands.Utilities.Common; - -namespace Microsoft.WindowsAzure.Commands.DataFactories -{ - /// - /// In order to show warning for ADF cmdlets if client is using service management mode - /// - [Cmdlet(VerbsCommon.New, "AzureDataFactory")] - public class NewAzureDataFactoryStubCommand : AzureSMCmdlet - { - //Just to make sure there is no error messages for parameters when clients use "New-AzureDataFactory" - [Parameter(Mandatory = false)] - public string ResourceGroupName { get; set; } - - [Parameter(Mandatory = false)] - public string Name { get; set; } - - [Parameter(Mandatory = false)] - public string Location { get; set; } - - [Parameter(Mandatory = false)] - public Hashtable Tags { get; set; } - - [Parameter(Mandatory = false)] - public SwitchParameter Force { get; set; } - - /// - /// Execute this cmdlet. - /// - [PermissionSet(SecurityAction.Demand, Name = "FullTrust")] - public override void ExecuteCmdlet() - { - WriteWarning("You must be in AzureResourceManager mode to run Azure Data Factory cmdlets. To switch to AzureResourceManager mode, run Switch-AzureMode AzureResourceManager."); - } - } -}