Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.1.0] AzureRM.Compute fails to install #2917

Closed
alexandair opened this issue Sep 9, 2016 · 8 comments
Closed

[2.1.0] AzureRM.Compute fails to install #2917

alexandair opened this issue Sep 9, 2016 · 8 comments

Comments

@alexandair
Copy link
Contributor

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)?

@markcowl
Copy link
Member

markcowl commented Sep 9, 2016

@alexandair This is a change in PowerShell, and not in the modules.

@markcowl
Copy link
Member

markcowl commented Sep 9, 2016

@kirthik We probably need to make sure to document this in a blog post, it looks like 5.1 is starting to be installed in more places.

@kilasuit
Copy link

Well yeah

it looks like 5.1 is starting to be installed in more places.

PS 5.1 is installed by default in Win10 Anniversary update so issues like this and anything else relating to the _undocumented & unversioned_ changes to PowerShellGet are going to sting you and other's in the near future.

For reference PowerShellGet has been at version 1.0.0.1 since the first Windows 10 build and even today is still at 1.0.0.1 in Win10 build 14915 yet there have been significant changes to the module in the last year

@markcowl markcowl assigned kirthik and markcowl and unassigned markcowl Sep 12, 2016
@markcowl
Copy link
Member

@kirthik Assigning to you for updating the documentation to mentioning this - this should be in the 'Getting Started' document for Azure PowerShell, where we discuss acquiring the cmdlets.

@cormacpayne
Copy link
Member

cormacpayne commented Jan 6, 2017

@markcowl @twitchax here is the list of conflicting cmdlets:

Compute

  • New-AzureVMSqlServerAutoBackupConfig
    • cmdlet name in RDFE and ARM
  • New-AzureVMSqlServerAutoPatchingConfig
    • cmdlet name in RDFE and ARM
  • New-AzureVMSqlServerKeyVaultCredentialConfig
    • cmdlet name in RDFE and ARM

Profile

  • Enable-AzureDataCollection
    • cmdlet name in RDFE, alias for Enable-AzureRmDataCollection in ARM
  • Disable-AzureDataCollection
    • cmdlet name in RDFE, alias for Disable-AzureRmDataCollection in ARM

@markcowl markcowl modified the milestones: January 2017, February 2017 Jan 18, 2017
@markcowl markcowl modified the milestone: February 2017 Jan 26, 2017
@twitchax
Copy link
Contributor

We should split this into two issues: one for network, and one for us.

If at all possible, I propose that we include this in our post-moratorium release as it will be a breaking change.

@cormacpayne
Copy link
Member

Fix in PR #3882

@markcowl
Copy link
Member

This is fixed in the module just released. No more -AllowClobber yay!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants