Skip to main content

Azure Subscription

What

Display the currently active Azure subscription information.

Sample Configuration

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

Properties

NameTypeDefaultDescription
sourcestringfirst_match
  • first_match: try the CLI config first, then the PowerShell module. The first to resolve is displayed
  • cli: fetch the information from the CLI config
  • pwsh: fetch the information from the PowerShell Module config

Template (info)

default template
{{ .Name }}

Properties

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