PSAzureProfile.Context Property

Definition

The current credentials and metadata for connecting with the current Azure cloud instance.

[Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="Account", Position=0, ScriptBlock="$_.Context.Account.ToString()", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)]
[Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="SubscriptionName", Position=1, ScriptBlock="$_.Context.Subscription.Name", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)]
[Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="TenantId", Position=2, ScriptBlock="$_.Context.Tenant.ToString()", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)]
[Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="Environment", Position=3, ScriptBlock="$_.Context.Environment.ToString()", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)]
public Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext Context { get; set; }
[<Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="Account", Position=0, ScriptBlock="$_.Context.Account.ToString()", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)>]
[<Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="SubscriptionName", Position=1, ScriptBlock="$_.Context.Subscription.Name", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)>]
[<Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="TenantId", Position=2, ScriptBlock="$_.Context.Tenant.ToString()", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)>]
[<Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="Environment", Position=3, ScriptBlock="$_.Context.Environment.ToString()", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)>]
member this.Context : Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext with get, set
Public Property Context As PSAzureContext

Property Value

Attributes

Applies to