azure-cli-extensions
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
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.
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: |
|
| Milestone: | - |
route to CXP team
Hi @Jingshu923 , @zhangyd2015 , @Frey-Wang , could you please help to check the issue?
Hi @Jingshu923 ,@Frey-Wang . Good day. May I know the progress of the issue?
Thanks!
B&R Ella
@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 Any update on this?
@EllaLiMSCSS, could you please follow up the issue and update the status here?
Updates?