azure-cli: az webapp config connection-string list does not give values for non-JSON output

Command Name az webapp config connection-string list

Errors: Values are missing with non-JSON output (such as table and tsv)

To Reproduce:

  • az webapp config connection-string list --name {} --resource-group {} --output tsv

Expected Behavior

The output should be similar to az webapp config connection-string list --name {} --resource-group {} --output json

Environment Summary

Windows-10-10.0.17134-SP0
Python 3.6.6
Shell: cmd.exe

azure-cli 2.0.71 *
azure-cli-ml 1.0.6

Extensions:
azure-cli-ml 1.0.6

Additional Context

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (12 by maintainers)

Commits related to this issue

Most upvoted comments

Change with self.command_group(‘webapp config connection-string’) as g: g.custom_command(‘list’, ‘get_connection_strings’, exception_handler=empty_on_404)

to with self.command_group(‘webapp config connection-string’) as g: g.custom_command(‘list’, ‘get_connection_strings’, exception_handler=empty_on_404, table_transformer=‘{Name:name, SlotSetting:slotSetting, Type:value.type, Value:value.value}’)

I have not tested it. Search “table_transformer=” in the project, you can find many examples. You can customize the schema of table.

Thanks! will check.