Azure / azure-cli

Azure Command-Line Interface
MIT License
4.03k stars 3.01k forks source link

Datafactory does not return the correct folder #23549

Open cartond opened 2 years ago

cartond commented 2 years ago

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Related command az datafactory pipeline show az datafactory pipeline list

Describe the bug Both commands above do not return the correct folder for pipelines.

To Reproduce Consider ADF "A" With folder "F" With pipeline "P" in folder F.

If you look at the P's JSON representation in the ADF's UI, you will see it has the folder's data:

{
    "name": "P",
    "properties": {
        ...
        "folder": {
            "name": "F"
        },
...
}

But, when you use either of the two commands you will not get that folder name, instead it has nameFolderName with P's name

{
  ...
  "name": "P",
  "nameFolderName": "P",
  ...
}

Expected behavior

Correctly get that folder name,

{
  ...
  "name": "P",
  "nameFolderName": "F",
  ...
}

Environment summary


core                              2.14.0 *
telemetry                          1.0.6

Extensions:
azure-devops                      0.18.0
datafactory                        0.2.1

Additional context

I have a screenshot showing this flow, but I don't want to post it publicly.

yonzhan commented 2 years ago

@evelyn-ys for awareness

cartond commented 2 years ago

@evelyn-ys do you think this should be tagged as a feature-request? What is the use case for nameFolderName if it's not the actual folder of the pipeline?

ghost commented 2 years ago

Thank you for your feedback. This has been routed to the support team for assistance.

evelyn-ys commented 2 years ago

Need datafactory service to investigate