Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

PSAzureSubscription Class

Definition

Namespace:
Microsoft.Azure.Commands.Profile.Models
Assembly:
Microsoft.Azure.PowerShell.Authentication.ResourceManager.dll
Assembly:
Microsoft.Azure.Commands.Common.Authentication.ResourceManager.dll

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

Name Description
PSAzureSubscription()

Default constructor

PSAzureSubscription(IAzureSubscription)

Copy constructor

PSAzureSubscription(PSObject)

Convert a subscription from a PSObject

Properties

Name Description
AuthorizationSource
CurrentStorageAccount
CurrentStorageAccountName
ExtendedProperties
HomeTenantId
Id
ManagedByTenantIds
Name
State
SubscriptionId

For legacy support - return the subscription Id

SubscriptionPolicies
Tags
TenantId

The tenant home for the subscription.

Methods

Name Description
GetAccountName(String)
ToString()

Operators

Name Description
Implicit(AzureSubscription to PSAzureSubscription)

Convert between formats of AzureSubscription information.

Implicit(PSAzureSubscription to AzureSubscription)

Convert between formats of AzureSubscription information.

Extension Methods

Name Description
CopyFrom(IAzureSubscription, IAzureSubscription)
CopyPropertiesFrom(IExtensibleModel, IExtensibleModel)
GetAccount(IAzureSubscription)
GetEnvironment(IAzureSubscription)
GetHomeTenant(IAzureSubscription)
GetId(IAzureSubscription)
GetManagedByTenants(IAzureSubscription)
GetProperty(IExtensibleModel, String)
GetPropertyAsArray(IExtensibleModel, String)
GetStorageAccount(IAzureSubscription)
GetSubscriptionPolicies(IAzureSubscription)
GetTags(IAzureSubscription)
GetTenant(IAzureSubscription)
IsDefault(IAzureSubscription)
IsPropertySet(IExtensibleModel, String)
PopulateExtensions(IExtensibleModel, PSObject)

Populate the model extensions from a PSObject

SetAccount(IAzureSubscription, String)
SetDefault(IAzureSubscription)
SetEnvironment(IAzureSubscription, String)
SetHomeTenant(IAzureSubscription, String)
SetId(IAzureSubscription, Guid)
SetManagedByTenants(IAzureSubscription, String[])
SetOrAppendProperty(IExtensibleModel, String, String[])
SetProperty(IExtensibleModel, String, String[])
SetStorageAccount(IAzureSubscription, String)
SetSubscriptionPolicies(IAzureSubscription, String)
SetTenant(IAzureSubscription, String)
Update(IAzureSubscription, IAzureSubscription)
UpdateProperties(IExtensibleModel, IExtensibleModel)

Applies to