< Back

Disable-AzureRmContextAutosave

Tue Jan 29, 2019 9:59 pm

NAME Disable-AzureRmContextAutosave



SYNOPSIS

Turn off autosaving Azure credentials. Your login information will be forgotten the next time you open a PowerShell window





SYNTAX

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

[<CommonParameters>]





DESCRIPTION

Turn off autosaving Azure credentials. Your login information will be forgotten the next time 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









Disable autosaving the context



PS C:\\> Disable-AzureRmContextAutosave



Disable autosave for the current user.







RELATED LINKS

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