Hi @Makoto Oda ,
Thanks for using Microsoft Q&A!!
As per understanding, you would like to know the differences between the CLI output of az datafactory linked-service show
vs output of the corresponding REST API.
As per internal discussion this is by design and here are answers to your question -
1) Nulls vs No Nulls are by design default.
2) It's by design from Azure CLI's perspective as Azure CLI uses Python SDK's response directly whose output format is as below.
This is expected as both Python SDK and CLI are implemented according to swagger definition and there are so many services in CLI and it’s difficult/not maintainable to add specific logic for each service in CLI to keep the output the same between CLI and Rest API as different services may have different response format.
One solution may be updating the swagger to let the Python SDK generate the same output between SDK and REST API which is a larger task. However, this feedback has been shared internally to Python SDK team for awareness.
Please let me know if you have any questions.
Thanks
Saurabh
Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.