Back to Oh My Posh

Azure Subscription

website/docs/segments/cloud/az.mdx

29.12.02.9 KB
Original Source

What

Display the currently active Azure subscription information.

Sample Configuration

import Config from "@site/src/components/Config.js";

<Config data={{ type: "az", style: "powerline", powerline_symbol: "\uE0B0", foreground: "#000000", background: "#9ec3f0", template: " \uebd8 {{ .EnvironmentName }}", options: { source: "pwsh", }, }} />

Options

NameTypeDefaultDescription
sourcestring<code>cli|pwsh</code>sources to get subscription information from. Can be any of the following values, joined by <code>|</code> to loop multiple sources for context. <ul><li>cli: fetch the information from the CLI config</li><li>pwsh: fetch the information from the PowerShell Module config</li></ul>

Template (info)

:::note default template

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