Skip to content

[2.1.0] AzureRM.Compute fails to install  #2917

@alexandair

Description

@alexandair

If I try to install AzureRM module (or just AzureRM.Compute) module installation fails with the error:

PackageManagement\Install-Package : A command with name 'New-AzureVMSqlServerAutoBackupConfig' is already available on
this system. This module 'AzureRM.Compute' may override the existing commands. If you still want to install this module
'AzureRM.Compute', use -AllowClobber parameter.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1661 char:21
+ ...          $null = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Ex
   ception
    + FullyQualifiedErrorId : CommandAlreadyAvailable,Validate-ModuleCommandAlreadyAvailable,Microsoft.PowerShell.Packag
   eManagement.Cmdlets.InstallPackage

When did -AllowClobber become needed for installation of Azure and AzureRM modules?
Why is ARM-based cmdlets overlapping with ASM-based cmdlet, New-AzureVMSqlServerAutoBackupConfig (Shouldn't ARM-based cmdlet have AzureRm prefix)?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions