Note

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

Access to this page requires authorization. You can try .

PSAzureRmAccount 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 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

Name Description
PSAzureRmAccount()

Default constructor

PSAzureRmAccount(IAzureAccount)
PSAzureRmAccount(PSObject)

Populate the account from a PSObject

Properties

Name Description
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

Name Description
ToString()

Operators

Name Description
Implicit(AzureAccount to PSAzureRmAccount)

Convert between implementation of Azure Account metadata

Implicit(PSAzureRmAccount to AzureAccount)

Convert between implementation of Azure Account metadata

Extension Methods

Name Description
CopyFrom(IAzureAccount, IAzureAccount)
CopyPropertiesFrom(IExtensibleModel, IExtensibleModel)
GetAccessToken(IAzureAccount)
GetCommonTenant(IAzureAccount)
GetProperty(IExtensibleModel, String)
GetPropertyAsArray(IExtensibleModel, String)
GetSubscriptions(IAzureAccount, IAzureContextContainer)
GetSubscriptions(IAzureAccount, IAzureContextContainer)
GetSubscriptions(IAzureAccount)
GetTenants(IAzureAccount)
GetThumbprint(IAzureAccount)
HasSubscription(IAzureAccount, Guid)
IsPropertySet(IExtensibleModel, String)
PopulateExtensions(IExtensibleModel, PSObject)

Populate the model extensions from a PSObject

RemoveSubscription(IAzureAccount, Guid)
SetAccessToken(IAzureAccount, String)
SetOrAppendProperty(IExtensibleModel, String, String[])
SetProperty(IExtensibleModel, String, String[])
SetSubscriptions(IAzureAccount, List<IAzureSubscription>)
SetSubscriptions(IAzureAccount, String[])
SetTenants(IAzureAccount, String[])
SetThumbprint(IAzureAccount, String)
Update(IAzureAccount, IAzureAccount)
UpdateProperties(IExtensibleModel, IExtensibleModel)

Applies to