跳转到主内容

Azure 订阅信息

非官方测试版翻译

本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →

功能

显示当前活动的 Azure 订阅信息。

示例配置

{
"type": "az",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#000000",
"background": "#9ec3f0",
"template": "  {{ .EnvironmentName }}",
"options": {
"source": "pwsh"
}
}

选项

NameTypeDefaultDescription
sourcestringcli|pwshsources to get subscription information from. Can be any of the following values, joined by | to loop multiple sources for context.
  • cli: fetch the information from the CLI config
  • pwsh: fetch the information from the PowerShell Module config

模板 (信息)

默认模板
{{ .Name }}

属性

NameTypeDescription
.EnvironmentNamestringAzure environment name
.HomeTenantIDstringhome tenant id
.IDstringsubscription id
.IsDefaultbooleanis the default subscription or not
.Namestringsubscription name
.Statestringsubscription state
.TenantIDstringtenant id
.TenantDisplayNamestringtenant name
.User.Namestringuser name
.User.Typestringuser type
.Originstringwhere we received the information from, can be CLI or PWSH