Compartilhar via


PSAzureRmAccount Class

Definition

Azure account details.

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

Constructors

PSAzureRmAccount()

Default constructor

PSAzureRmAccount(IAzureAccount)
PSAzureRmAccount(PSObject)

Populate the account from a PSObject

Properties

AccessToken

The access token for the account (if any)

CertificateThumbprint

Gets or sets Thumbprint for associated certificate

Credential
ExtendedProperties
Id

The UPN or SPN for this account.

TenantMap
Tenants

The tenant ids for the account

Type

The type of the account

Methods

ToString()

Operators

Implicit(AzureAccount to PSAzureRmAccount)

Convert between implementation of Azure Account metadata

Implicit(PSAzureRmAccount to AzureAccount)

Convert between implementation of Azure Account metadata

Extension Methods

CopyFrom(IAzureAccount, IAzureAccount)
GetAccessToken(IAzureAccount)
GetCommonTenant(IAzureAccount)
GetSubscriptions(IAzureAccount, IAzureContextContainer)
GetSubscriptions(IAzureAccount, IAzureContextContainer)
GetSubscriptions(IAzureAccount)
GetTenants(IAzureAccount)
GetThumbprint(IAzureAccount)
HasSubscription(IAzureAccount, Guid)
RemoveSubscription(IAzureAccount, Guid)
SetAccessToken(IAzureAccount, String)
SetSubscriptions(IAzureAccount, List<IAzureSubscription>)
SetSubscriptions(IAzureAccount, String[])
SetTenants(IAzureAccount, String[])
SetThumbprint(IAzureAccount, String)
Update(IAzureAccount, IAzureAccount)
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