Modifier

Partager via


Disable-AzureRmAlias

Disables AzureRm prefix aliases for Az modules.

Syntax

Disable-AzureRmAlias
       [-Scope <String>]
       [-Module <String[]>]
       [-PassThru]
       [-DefaultProfile <IAzureContextContainer>]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]

Description

Disables AzureRm prefix aliases for Az modules. If -Module is specified, only modules listed will have aliases disabled. Otherwise all AzureRm aliases are disabled.

Examples

Example 1

Disable-AzureRmAlias

Disables all AzureRm prefixes for the current PowerShell session.

Example 2

Disable-AzureRmAlias -Module Az.Accounts -Scope CurrentUser

Disables AzureRm aliases for the Az.Accounts module for both the current process and for the current user.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Module

Indicates which modules to disable aliases for. If none are specified, default is all enabled modules.

Type:String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PassThru

If specified, cmdlet will return all disabled aliases

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Scope

Indicates what scope aliases should be disabled for. Default is 'Process'

Type:String
Accepted values:Process, CurrentUser, LocalMachine
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

String