azure-cli-extensions icon indicating copy to clipboard operation
azure-cli-extensions copied to clipboard

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

Open EllaLiMSCSS opened this issue 3 years ago • 7 comments
trafficstars

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 <class 'dict'> During handling of the above exception, another exception occurred ..... Full errorstack with debug info is attached to 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.

EllaLiMSCSS avatar Aug 18 '22 05:08 EllaLiMSCSS

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Jingshu923, @zhangyd2015, @Frey-Wang.

Issue Details

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 <class 'dict'> During handling of the above exception, another exception occurred ..... Full errorstack with debug info is attached to 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.

Author: EllaLiMSCSS
Assignees: jiasli
Labels:

customer-reported, Account, Data Factory, Service Attention, Auto-Assign, Installation

Milestone: -

ghost avatar Aug 18 '22 05:08 ghost

route to CXP team

yonzhan avatar Aug 18 '22 05:08 yonzhan

Hi @Jingshu923 , @zhangyd2015 , @Frey-Wang , could you please help to check the issue?

EllaLiMSCSS avatar Aug 18 '22 06:08 EllaLiMSCSS

Hi @Jingshu923 ,@Frey-Wang . Good day. May I know the progress of the issue?

Thanks!

B&R Ella

EllaLiMSCSS avatar Aug 22 '22 09:08 EllaLiMSCSS

@EllaLiMSCSS Az package is outdated and we are working on fixing it. Please use Az Powershell or direct REST API as workaround. Thanks.

Frey-Wang avatar Aug 22 '22 09:08 Frey-Wang

@Frey-Wang Any update on this?

RakeshMohanMSFT avatar Oct 10 '22 02:10 RakeshMohanMSFT

@EllaLiMSCSS, could you please follow up the issue and update the status here?

Frey-Wang avatar Oct 10 '22 02:10 Frey-Wang

Updates?

FernandoPerezLara avatar Jun 01 '23 14:06 FernandoPerezLara