Skip to content

Remove-AzDataFactoryV2Dataset Return Question #22040

@kryten68

Description

@kryten68

Description

Remove-AzDataFactoryV2Dataset Documentation states return is [void], which is what I observe in use and don't like one bit.

A bool as per Remove-AzDataFactoryV2Pipeline would be much better as this makes it much easier to reliably handle ADF cleaning before deployments.

My question is why the docs here:
https://github.com/Azure/azure-powershell/blob/main/src/DataFactory/DataFactoryV2/help/Remove-AzDataFactoryV2Dataset.md

Do in fact describe the bool return for this cmdlet. So which is correct?

Script or Debug output

No response

Environment data

No response

Module versions

F:\posh\exps> get-module Az*

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     2.10.4                Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…}    
Script     1.16.11               Az.DataFactory                      {Add-AzDataFactoryV2DataFlowDebugSessionPackage, Add-AzDataFactoryV2Trig…
Script     6.5.0                 Az.Resources                        {Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzDenyAssignment, Ge…

Error output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Data FactoryService AttentionThis issue is responsible by Azure service team.customer-reportedquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions