Skip to main content

Azure Subscription

Whatโ€‹

Display the currently active Azure subscription information.

tip

PowerShell offers support for the az module, but it is disabled by default. To enable this, set $env:POSH_AZURE_ENABLED = $true in your $PROFILE after initializing Oh My Posh.

Sample Configurationโ€‹

{
"type": "az",
"style": "powerline",
"powerline_symbol": "๎‚ฐ",
"foreground": "#000000",
"background": "#9ec3f0",
"template": " ๎ฏ˜ {{ .EnvironmentName }}"
}

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
.User.Namestringuser name
.User.Typestringuser type
.Originstringwhere we received the information from, can be CLI or PWSH