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

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