oh-my-posh/docs/docs/segment-az.md
2021-12-29 16:58:06 +01:00

1 KiB

id title sidebar_label
az Azure Subscription Azure

What

Display the currently active Azure subscription information.

Sample Configuration

{
  "type": "az",
  "style": "powerline",
  "powerline_symbol": "\uE0B0",
  "foreground": "#000000",
  "background": "#9ec3f0",
  "properties": {
    "template": "{{ .EnvironmentName }}",
    "prefix": " \uFD03 "
  }
}

Properties

  • template: string - A go text/template template extended with sprig utilizing the properties below - defaults to {{.Name}}

Template Properties

  • .EnvironmentName: string - the account environment name
  • .HomeTenantID: string - the home tenant id
  • .ID: string - the account/subscription id
  • .IsDefault: boolean - is the default account or not
  • .Name: string - the account name
  • .State: string - the account state
  • .TenantID: string - the tenant id
  • .User.Name: string - the user name