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

PSAzureSubscription Class

Definition

Azure subscription details.

public class PSAzureSubscription : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription
type PSAzureSubscription = class
    interface IAzureSubscription
    interface IExtensibleModel
Public Class PSAzureSubscription
Implements IAzureSubscription
Inheritance
PSAzureSubscription
Implements

Constructors

PSAzureSubscription()

Default constructor

PSAzureSubscription(IAzureSubscription)

Copy constructor

PSAzureSubscription(PSObject)

Convert a subscription from a PSObject

Properties

AuthorizationSource
CurrentStorageAccount
CurrentStorageAccountName
ExtendedProperties
HomeTenantId
Id System.Object.Id
ManagedByTenantIds
Name System.Object.Name
State System.Object.State
SubscriptionId

For legacy support - return the subscription Id

SubscriptionPolicies
Tags
TenantId

The tenant home for the subscription.

Methods

GetAccountName(String)
ToString()

Operators

Implicit(AzureSubscription to PSAzureSubscription)

Convert between formats of AzureSubscription information.

Implicit(PSAzureSubscription to AzureSubscription)

Convert between formats of AzureSubscription information.

Extension Methods

CopyFrom(IAzureSubscription, IAzureSubscription)
GetAccount(IAzureSubscription)
GetEnvironment(IAzureSubscription)
GetHomeTenant(IAzureSubscription)
GetId(IAzureSubscription)
GetManagedByTenants(IAzureSubscription)
GetStorageAccount(IAzureSubscription)
GetSubscriptionPolicies(IAzureSubscription)
GetTags(IAzureSubscription)
GetTenant(IAzureSubscription)
IsDefault(IAzureSubscription)
SetAccount(IAzureSubscription, String)
SetDefault(IAzureSubscription)
SetEnvironment(IAzureSubscription, String)
SetHomeTenant(IAzureSubscription, String)
SetId(IAzureSubscription, Guid)
SetManagedByTenants(IAzureSubscription, String[])
SetStorageAccount(IAzureSubscription, String)
SetSubscriptionPolicies(IAzureSubscription, String)
SetTenant(IAzureSubscription, String)
Update(IAzureSubscription, IAzureSubscription)
CopyPropertiesFrom(IExtensibleModel, IExtensibleModel)
GetProperty(IExtensibleModel, String)
GetPropertyAsArray(IExtensibleModel, String)
IsPropertySet(IExtensibleModel, String)
SetOrAppendProperty(IExtensibleModel, String, String[])
SetProperty(IExtensibleModel, String, String[])
UpdateProperties(IExtensibleModel, IExtensibleModel)
PopulateExtensions(IExtensibleModel, PSObject)

Populate the model extensions from a PSObject

Applies to