Compartir a través de


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="Subscription name", Position=0, ScriptBlock="if($null -ne $_.Context.Subscription.Name){$_.Context.Subscription.Name}else{$_.Context.Subscription.Id}", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)]
[Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="Tenant", Position=1, ScriptBlock="if($null -ne $_.Context.Tenant.Name){$_.Context.Tenant.Name}else{$_.Context.Tenant.Id}", 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
[<Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="Subscription name", Position=0, ScriptBlock="if($null -ne $_.Context.Subscription.Name){$_.Context.Subscription.Name}else{$_.Context.Subscription.Id}", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)>]
[<Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="Tenant", Position=1, ScriptBlock="if($null -ne $_.Context.Tenant.Name){$_.Context.Tenant.Name}else{$_.Context.Tenant.Id}", 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