Microsoft.Azure.Commands.DataFactories.DataFactoryClient.SuspendPipeline C# (CSharp) Method

SuspendPipeline() public method

public SuspendPipeline ( string resourceGroupName, string dataFactoryName, string pipelineName ) : void
resourceGroupName string
dataFactoryName string
pipelineName string
return void
        public virtual void SuspendPipeline(string resourceGroupName, string dataFactoryName, string pipelineName)
        {
            DataPipelineManagementClient.Pipelines.Suspend(resourceGroupName, dataFactoryName, pipelineName);
        }

Usage Example

        protected override void ProcessRecord()
        {
            if (ParameterSetName == ByFactoryObject)
            {
                if (DataFactory == null)
                {
                    throw new PSArgumentNullException(string.Format(CultureInfo.InvariantCulture, Resources.DataFactoryArgumentInvalid));
                }

                DataFactoryName   = DataFactory.DataFactoryName;
                ResourceGroupName = DataFactory.ResourceGroupName;
            }

            ConfirmAction(
                Force.IsPresent,
                string.Format(
                    CultureInfo.InvariantCulture,
                    "Are you sure you want to suspend pipeline '{0}' in data factory '{1}'?",
                    Name,
                    DataFactoryName),
                string.Format(
                    CultureInfo.InvariantCulture,
                    "Suspending pipeline '{0}' in data factory '{1}'.",
                    Name,
                    DataFactoryName),
                Name,
                () => DataFactoryClient.SuspendPipeline(ResourceGroupName, DataFactoryName, Name));

            WriteObject(true);
        }
All Usage Examples Of Microsoft.Azure.Commands.DataFactories.DataFactoryClient::SuspendPipeline