< Back
Clear-AzureRmDefault
Post
NAME Clear-AzureRmDefault
SYNOPSIS
Clears the defaults set by the user in the current context.
SYNTAX
Clear-AzureRmDefault [-DefaultProfile <IAzureContextContainer>] [-Force] [-PassThru] [-ResourceGroup] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Clear-AzureRmDefault cmdlet removes the defaults set by the user depending on the switch parameters specified by the user.
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
-Force [<SwitchParameter>]
Remove all defaults if no default is specified
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-PassThru [<SwitchParameter>]
{{Fill PassThru Description}}
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-ResourceGroup [<SwitchParameter>]
Clear Default Resource Group
Required? false
Position? named
Default value False
Accept pipeline input? True (ByPropertyName)
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
System.Management.Automation.SwitchParameter
OUTPUTS
System.Object
NOTES
Example 1
PS C:\\> Clear-AzureRmDefault
This command removes all the defaults set by the user in the current context.
Example 1
PS C:\\> Clear-AzureRmDefault -ResourceGroup
This command removes the default resource group set by the user in the current context.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ermdefault
SYNOPSIS
Clears the defaults set by the user in the current context.
SYNTAX
Clear-AzureRmDefault [-DefaultProfile <IAzureContextContainer>] [-Force] [-PassThru] [-ResourceGroup] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Clear-AzureRmDefault cmdlet removes the defaults set by the user depending on the switch parameters specified by the user.
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
-Force [<SwitchParameter>]
Remove all defaults if no default is specified
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-PassThru [<SwitchParameter>]
{{Fill PassThru Description}}
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-ResourceGroup [<SwitchParameter>]
Clear Default Resource Group
Required? false
Position? named
Default value False
Accept pipeline input? True (ByPropertyName)
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
System.Management.Automation.SwitchParameter
OUTPUTS
System.Object
NOTES
Example 1
PS C:\\> Clear-AzureRmDefault
This command removes all the defaults set by the user in the current context.
Example 1
PS C:\\> Clear-AzureRmDefault -ResourceGroup
This command removes the default resource group set by the user in the current context.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ermdefault