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

AzureContext Class

Definition

[System.Serializable]
public class AzureContext : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext
[<System.Serializable>]
type AzureContext = class
    interface IAzureContext
    interface IExtensibleModel
Public Class AzureContext
Implements IAzureContext
Inheritance
AzureContext
Attributes
Implements

Constructors

AzureContext()
AzureContext(IAzureAccount, IAzureEnvironment, IAzureTenant)
AzureContext(IAzureSubscription, IAzureAccount, IAzureEnvironment)
AzureContext(IAzureSubscription, IAzureAccount, IAzureEnvironment, IAzureTenant)
AzureContext(IAzureSubscription, IAzureAccount, IAzureEnvironment, IAzureTenant, Byte[])

Properties

Account
Environment
ExtendedProperties
Subscription
Tenant
TokenCache
VersionProfile

Extension Methods

DeepCopy(IAzureContext)
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)
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.

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