< Back
Update-AzureRmProfile
Post
NAME Update-AzureRmProfile
SYNOPSIS
Update modules to the latest versions consitent with the given profile and import updated modules to the current
session. This should always be executed in a new PowerShell session.
SYNTAX
Update-AzureRmProfile [-Profile] {2017-03-09-profile | Latest | <others>} [[-Module] <Array>] [-Force]
[-RemovePreviousVersions] [-Scope {CurrentUser | AllUsers}] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
Update modules to the latest versions consitent with the given profile and import updated modules to the current
session. This should always be executed in a new PowerShell session.
PARAMETERS
-Force [<SwitchParameter>]
Automatically install modules for the given profile if they are not already installed.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-Module <Array>
The module name to be updated.
Required? false
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Profile <String>
The profile version to load in the current PowerShell session.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-RemovePreviousVersions [<SwitchParameter>]
Automatically remove old versions of the modules currently installed.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-Scope <String>
Specifies the installation scope of the modules. The acceptable values for this parameter are: AllUsers and
CurrentUser. The AllUsers scope lets modules be installed in a location that is accessible to all users of the
computer. The CurrentUser scope lets modules be installed in a location that is available only to the current
user.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Request confrimation for any change made by the cmdlet
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Print the changes that would be made in executing the cmdlets, but do not make any changes.
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 (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
None
NOTES
Example 1
PS C:\\> Update-AzureRmProfile -Profile '2017-03-09-profile'
Update the modules associated with profile '2017-03-09-profile' to their latest versions and load in the current
session. This should be executed after opening a new PowerShell session.
Example 2
PS C:\\> Update-AzureRmProfile -Profile 'Latest' -RemovePreviousVersions -Force
Update the modules associated with profile version 'Latest' and load the modules in the current session. It
downloads and installs the required modules and removes old versions of the modules without prompting the user.
This should be executed after opening a new PowerShell session.
Example 3
PS C:\\> Update-AzureRmProfile -Profile 'Latest' -Module 'AzureRM', 'Azure.Storage' -Scope 'CurrentUser'
Update the modules 'AzureRM', 'Azure.Storage' with profile version 'Latest' and load the modules in the current
session. It downloads and installs the required modules in the CurrentUser scope. This should be executed after
opening a new PowerShell session.
RELATED LINKS
SYNOPSIS
Update modules to the latest versions consitent with the given profile and import updated modules to the current
session. This should always be executed in a new PowerShell session.
SYNTAX
Update-AzureRmProfile [-Profile] {2017-03-09-profile | Latest | <others>} [[-Module] <Array>] [-Force]
[-RemovePreviousVersions] [-Scope {CurrentUser | AllUsers}] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
Update modules to the latest versions consitent with the given profile and import updated modules to the current
session. This should always be executed in a new PowerShell session.
PARAMETERS
-Force [<SwitchParameter>]
Automatically install modules for the given profile if they are not already installed.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-Module <Array>
The module name to be updated.
Required? false
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Profile <String>
The profile version to load in the current PowerShell session.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-RemovePreviousVersions [<SwitchParameter>]
Automatically remove old versions of the modules currently installed.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-Scope <String>
Specifies the installation scope of the modules. The acceptable values for this parameter are: AllUsers and
CurrentUser. The AllUsers scope lets modules be installed in a location that is accessible to all users of the
computer. The CurrentUser scope lets modules be installed in a location that is available only to the current
user.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Request confrimation for any change made by the cmdlet
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Print the changes that would be made in executing the cmdlets, but do not make any changes.
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 (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
None
NOTES
Example 1
PS C:\\> Update-AzureRmProfile -Profile '2017-03-09-profile'
Update the modules associated with profile '2017-03-09-profile' to their latest versions and load in the current
session. This should be executed after opening a new PowerShell session.
Example 2
PS C:\\> Update-AzureRmProfile -Profile 'Latest' -RemovePreviousVersions -Force
Update the modules associated with profile version 'Latest' and load the modules in the current session. It
downloads and installs the required modules and removes old versions of the modules without prompting the user.
This should be executed after opening a new PowerShell session.
Example 3
PS C:\\> Update-AzureRmProfile -Profile 'Latest' -Module 'AzureRM', 'Azure.Storage' -Scope 'CurrentUser'
Update the modules 'AzureRM', 'Azure.Storage' with profile version 'Latest' and load the modules in the current
session. It downloads and installs the required modules in the CurrentUser scope. This should be executed after
opening a new PowerShell session.
RELATED LINKS