< Back

Enable-AzureRmContextAutosave

Tue Jan 29, 2019 10:00 pm

NAME Enable-AzureRmContextAutosave



SYNOPSIS

Allow the azure credential, account and subscription information to be saved and automatically loaded when you open a PowerShell window.





SYNTAX

Enable-AzureRmContextAutosave [-DefaultProfile <IAzureContextContainer>] [-Scope {Process | CurrentUser}] [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

Allow the azure credential, account and subscription information to be saved and automatically loaded when you open a PowerShell window.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, 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



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

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









Enable autosaving credentials for the current user



PS C:\\> Enable-AzureRmContextAutosave



Turn on credential autosave for the current user. Whenever a powershell window is opened, your current context will be remembered without logging

in.







RELATED LINKS

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