Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Update-AzModule

Update Azure PowerShell modules.

Syntax

Default (Default)

Update-AzModule
 [[-Name] <String[]>]
 [-Repository <String>]
 [-Scope <String>]
 [-KeepPrevious]
 [-Force]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

Description

Update Azure PowerShell modules.

Examples

EXAMPLE 1

Update-AzModule -Repository PSGallery

EXAMPLE 2

Update-AzModule -Name desktopVirtualization,RecoveryServices -Repository PSGallery

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

-Force

Installs modules and overrides the confirmation messages of each step.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False

Parameter sets

-KeepPrevious

Present to keep the previous versions of the modules.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False

Parameter sets

-Name

Az modules name to update. Can be the names without Az. prefix.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Repository

The registered repository to install module from. If only one repository is registered in PowerShell, Update-AzModule will use it. If more than one, please specify the Repository.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Scope

Scope to update modules. Default value is CurrentUser for all the PowerShell platforms. Accepted values: CurrentUser, AllUser.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-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

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.

Outputs

PSObject


Feedback

Was this page helpful?