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โ
- json
- yaml
- toml
{
"type": "az",
"style": "powerline",
"powerline_symbol": "๎ฐ",
"foreground": "#000000",
"background": "#9ec3f0",
"template": " ๎ฏ {{ .EnvironmentName }}"
}
type: az
style: powerline
powerline_symbol: ๎ฐ
foreground: "#000000"
background: "#9ec3f0"
template: " ๎ฏ {{ .EnvironmentName }}"
type = "az"
style = "powerline"
powerline_symbol = "๎ฐ"
foreground = "#000000"
background = "#9ec3f0"
template = " ๎ฏ {{ .EnvironmentName }}"
Propertiesโ
Name | Type | Default | Description |
---|---|---|---|
source | string | first_match |
|
Template (info)โ
default template
{{ .Name }}
Propertiesโ
Name | Type | Description |
---|---|---|
.EnvironmentName | string | Azure environment name |
.HomeTenantID | string | home tenant id |
.ID | string | subscription id |
.IsDefault | boolean | is the default subscription or not |
.Name | string | subscription name |
.State | string | subscription state |
.TenantID | string | tenant id |
.User.Name | string | user name |
.User.Type | string | user type |
.Origin | string | where we received the information from, can be CLI or PWSH |