Update-AzModule
Update Azure PowerShell modules.
Syntax
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.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Force
Installs modules and overrides the confirmation messages of each step.
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-KeepPrevious
Present to keep the previous versions of the modules.
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Az modules name to update. Can be the names without Az. prefix.
Type: | String[] |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-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.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Scope
Scope to update modules. Default value is CurrentUser
for all the PowerShell platforms. Accepted
values: CurrentUser
, AllUser
.
Type: | String |
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 |
Outputs
PSObject[]
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for