< Back

Get-AzureRmContextAutosaveSetting

Tue Jan 29, 2019 10:00 pm

NAME Get-AzureRmContextAutosaveSetting



SYNOPSIS

Display metadata about the context autosave feature, including whterh the context is automaticallys aved, and where saved context and credential

information cna be found.





SYNTAX

Get-AzureRmContextAutosaveSetting [-DefaultProfile <IAzureContextContainer>] [-Scope {Process | CurrentUser}] [<CommonParameters>]





DESCRIPTION

Display metadata about the context autosave feature, including whether the context is automatically saved, and where saved context and credential

information can be found.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant and subscription used for communication with azure



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Scope <ContextModificationScope>

Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this

user.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None







OUTPUTS

Microsoft.Azure.Commands.Common.Authentication.ContextAutosaveSettings

Information about the current Autosave settings, including whether Autosave is enabled for the current user, and where context and credential

files are saved.





NOTES









Get context save metadata for the current session



PS C:\\> Get-AzureRmContextAutosaveSetting



Mode : Process

ContextDirectory : None

ContextFile : None

CacheDirectory : None

CacheFile : None

Settings : {}



Get details about whether and wehere the context is saved. In the above example, the autosave feature has been disabled.





Get context save metadata for the current user



PS C:\\> Get-AzureRmContextAutosaveSetting -Scope CurrentUser



Mode : CurrentUser

ContextDirectory : C:\\Users\\contoso\\AppData\\Roaming\\Windows Azure Powershell

ContextFile : AzureRmContext.json

CacheDirectory : C:\\Users\\contoso\\AppData\\Roaming\\Windows Azure Powershell

CacheFile : TokenCache.dat

Settings : {}



Get details about whether and wehere the context is saved by default for the current user. Note that this may be different than the settings

that are active in the current session. In the above example, the autosave feature has been enabled, and data is saved to the default location.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... avesetting