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 }}",
"options": {
"source": "pwsh"
}
}

Optionsโ€‹

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

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