azure - 在 Azure PowerShell 中将输出设置为表格格式而不是 json
问题描述
在 Azure PowerShell 中,json 格式有时很烦人。需要向后滚动并解密。
如何将所有 az 命令的默认值更改为 --output 表?
解决方案
在 Azure powershell 中,键入以下命令 - 将默认输出更改为表
az configure
它会提示您以下问题。选择 3
Do you wish to change your settings? (y/N): y
What default output format would you like?
[1] json - JSON formatted output that most closely matches API responses.
[2] jsonc - Colored JSON formatted output that most closely matches API responses.
[3] table - Human-readable output format.
..
Please enter a choice [Default choice(1)]: 3
这适用于不喜欢默认 json 格式的用户
推荐阅读
- javascript - 使用 jquery 函数播放或暂停视频
- python-3.x - 就像我们在 scala 中一样,如何在 python 中一次性完成 Groupby 和 map
- python - 两个类似文件之一无法识别 date_parser 格式
- python - 使用多 GPU 和多线程、Pytorch 的对象检测推理
- python-3.x - 为什么使用 opencv 进行图像屏蔽会返回“输入参数的大小不匹配”?
- c# - 计划的 .NET WebJob V3 示例
- python-3.x - 使用 Python 向其他用户授予使用谷歌表的权限
- ruby-on-rails - 在没有 webpack 开发服务器的 Heroku 上部署 Rails React 应用程序
- python - 在已经运行的进程之间传输队列实例
- typo3 - 如何在 TYPO3 9.x 中配置 tx_blog 扩展的演讲 URL