Disable-AzContextAutosave  
	Turn off autosaving Azure credentials. Your login information will be forgotten the next time you open a PowerShell window
Syntax
Default (Default)
Disable-AzContextAutosave
    [-Scope <ContextModificationScope>]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]
Description
Turn off autosaving Azure credentials. Your login information will be forgotten the next time you open a PowerShell window
Examples
Example 1: Disable autosaving the context
Disable-AzContextAutosave
Disable autosave for the current user.
Example 2
Turn off autosaving Azure credentials in this powershell session. (autogenerated)
Disable-AzContextAutosave -Scope Process
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
| Type: | SwitchParameter | 
| Default value: | None | 
| Supports wildcards: | False | 
| DontShow: | False | 
| Aliases: | cf | 
Parameter sets
(All)
| Position: | Named | 
| Mandatory: | False | 
| Value from pipeline: | False | 
| Value from pipeline by property name: | False | 
| Value from remaining arguments: | False | 
-DefaultProfile 
		The credentials, tenant and subscription used for communication with azure
Parameter properties
| Type: | IAzureContextContainer | 
| Default value: | None | 
| Supports wildcards: | False | 
| DontShow: | False | 
| Aliases: | AzContext, AzureRmContext, AzureCredential | 
Parameter sets
(All)
| Position: | Named | 
| Mandatory: | False | 
| Value from pipeline: | False | 
| Value from pipeline by property name: | False | 
| Value from remaining arguments: | False | 
-Scope
Determines the scope of context changes, for example, whether changes apply only to the current process, or to all sessions started by this user
Parameter properties
| Type: | ContextModificationScope | 
| Default value: | None | 
| Accepted values: | Process, CurrentUser | 
| Supports wildcards: | False | 
| DontShow: | False | 
Parameter sets
(All)
| Position: | Named | 
| Mandatory: | False | 
| Value from pipeline: | False | 
| Value from pipeline by property name: | False | 
| Value from remaining arguments: | False | 
-WhatIf 
		Shows what would happen if the cmdlet runs. The cmdlet is not run.
Parameter properties
| Type: | SwitchParameter | 
| Default value: | None | 
| Supports wildcards: | False | 
| DontShow: | False | 
| Aliases: | wi | 
Parameter sets
(All)
| Position: | Named | 
| Mandatory: | False | 
| Value from pipeline: | False | 
| Value from pipeline by property name: | False | 
| Value from remaining arguments: | False | 
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.