Compartilhar via


IAzureContextContainer Interface

Definition

public interface IAzureContextContainer : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IExtensibleModel
type IAzureContextContainer = interface
    interface IExtensibleModel
Public Interface IAzureContextContainer
Implements IExtensibleModel
Derived
Implements

Properties

Accounts
DefaultContext
Environments
ExtendedProperties (Inherited from IExtensibleModel)
Subscriptions

Methods

Clear()

Extension Methods

GetAccount(IAzureContextContainer, String)
GetEnvironment(IAzureContextContainer, String)
GetSubscriptionById(IAzureContextContainer, Guid)
GetSubscriptionById(IAzureContextContainer, String)
GetSubscriptionByName(IAzureContextContainer, String)
HasAccount(IAzureContextContainer, String)
HasEnvironment(IAzureContextContainer, String)
HasSubscriptionId(IAzureContextContainer, Guid)
HasSubscriptionId(IAzureContextContainer, String)
HasSubscriptionName(IAzureContextContainer, String)
CopyPropertiesFrom(IExtensibleModel, IExtensibleModel)
GetProperty(IExtensibleModel, String)
GetPropertyAsArray(IExtensibleModel, String)
IsPropertySet(IExtensibleModel, String)
SetOrAppendProperty(IExtensibleModel, String, String[])
SetProperty(IExtensibleModel, String, String[])
UpdateProperties(IExtensibleModel, IExtensibleModel)
GetTokenCache(IAzureContextContainer)
HasTokenCache(IAzureContextContainer)
SetTokenCache(IAzureContextContainer, IAzureTokenCache)
PopulateExtensions(IExtensibleModel, PSObject)

Populate the model extensions from a PSObject

SetContextWithCache(IAzureContextContainer, IAzureContext, String)

Set the context for the current profile, preserving token cache information. After MSAL, token cache is no longer stored in contexts. So this method roughly equals to TrySetDefaultContext().

Applies to