Azure / Azure/azure-cli-extensions

Fail to list ADF pipelines using az cli extension even though updated az cli to latest cli version 2.39.0

Open
#5,250 8 comments 0 reactions 0 assignees View on GitHub
Auto-Assign customer-reported Data Factory needs-team-attention Service Attention
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

**Related command**

az datafactory pipeline list --factory-name XDLKMCNINFDTFACINST001 -g XDLKMCNINFRESGP026 --debug

***Errortack is as following:***
DEBUG: cli.azure.cli.core.util: Traceback (most recent call last):
File "/root/lib/azure-cli/lib/python3.8/site-packages/msrest/serialization.py", line 1626, in deserialize_data
return self.deserialize_type[iter_type](data, data_type[1:-1])
File "/root/lib/azure-cli/lib/python3.8/site-packages/msrest/serialization.py", line 1653, in deserialize_iter
raise DeserializationError("Cannot deserialize as [{}] an object of type {}".format(
azure.core.exceptions.DeserializationError: Cannot deserialize as [object] an object of type
During handling of the above exception, another exception occurred
.....
Full errorstack with debug info is attached to
[Error.log](https://github.com/Azure/azure-cli/files/9367749/Error.log)

**Describe the bug**

Our customer was blocked by the issue with az cli tool. We CSS can reproduce the issue as well. Rest api(https://docs.microsoft.com/en-us/rest/api/datafactory/pipelines/list-by-factory?tabs=HTTP) works well.
So the issue only exists in az cli tool and need fix ASAP to unblock our customer.

**To Reproduce**
az cloud set -n AzureChinaCloud
az login
az account set --subscription aacc52b0-33ef-45e4-9c10-c8b6a4fdc8ed
az datafactory pipeline list --factory-name "myADFTutorialDataFactory" --resource-group "myResourceGroup" // reproduced

**Expected behavior**

It should return a list of all pipelines in ADF

**Environment summary**

az --version

azure-cli 2.39.0

core 2.39.0
telemetry 1.0.6 *

Extensions:
azure-iot 0.14.0
datafactory 0.5.0

Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\huijuanli\.azure\cliextensions'

Python (Windows) 3.10.5 (tags/v3.10.5:f377153, Jun 6 2022, 15:58:59) [MSC v.1929 32 bit (Intel)]

Legal docs and information: aka.ms/AzureCliLegal

**Additional context**
None.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.