你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PSAzureContext.Subscription Property

Definition

The subscription targeted in Azure.

[Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="SubscriptionName", Position=0, ScriptBlock="$_.Subscription.Name", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)]
[Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="SubscriptionId", Position=1, ScriptBlock="$_.Subscription.Id", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)]
public Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription Subscription { get; set; }
[<Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="SubscriptionName", Position=0, ScriptBlock="$_.Subscription.Name", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)>]
[<Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="SubscriptionId", Position=1, ScriptBlock="$_.Subscription.Id", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)>]
member this.Subscription : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription with get, set
Public Property Subscription As IAzureSubscription

Property Value

Implements

Attributes

Applies to