Compartilhar via


PSAzureContext Class

Definition

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

Constructors

PSAzureContext()
PSAzureContext(IAzureContext)
PSAzureContext(PSObject)

Properties

Account
Environment
ExtendedProperties
Name
Subscription
Tenant
TokenCache
VersionProfile

Operators

Implicit(AzureContext to PSAzureContext)
Implicit(PSAzureContext to AzureContext)

Extension Methods

Update(IAzureContext, IAzureContext)
CopyPropertiesFrom(IExtensibleModel, IExtensibleModel)
GetProperty(IExtensibleModel, String)
GetPropertyAsArray(IExtensibleModel, String)
IsPropertySet(IExtensibleModel, String)
SetOrAppendProperty(IExtensibleModel, String, String[])
SetProperty(IExtensibleModel, String, String[])
UpdateProperties(IExtensibleModel, IExtensibleModel)
CopyFrom(IAzureContext, IAzureContext)
WithAccount(IAzureContext, IAzureAccount)
WithSubscription(IAzureContext, IAzureSubscription)
WithTenant(IAzureContext, IAzureTenant)
PopulateExtensions(IExtensibleModel, PSObject)

Populate the model extensions from a PSObject

GetCurrentStorageAccountName(IAzureContext)
GetCloudStorageAccount(IAzureContext, IStorageServiceProvider)

Get a CloudStorageAccount client for the current storage service using the given storage service provider

GetCurrentStorageAccount(IAzureContext, IStorageServiceProvider)

Get the current storage account.

GetCurrentStorageAccountConnectionString(IAzureContext)
SetCurrentStorageAccount(IAzureContext, IStorageContext)
SetCurrentStorageAccount(IAzureContext, IStorageContextProvider)
SetCurrentStorageAccount(IAzureContext, String)

Applies to