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

Documentation: Connect-AzureRmAccount is Wrong? #552

Closed
Pytry opened this issue Apr 6, 2018 · 25 comments
Closed

Documentation: Connect-AzureRmAccount is Wrong? #552

Pytry opened this issue Apr 6, 2018 · 25 comments
Labels
needs-more-info Waiting - for more information triaged

Comments

@Pytry
Copy link

Pytry commented Apr 6, 2018

Version: powershell_6.0.2-1.ubuntu.16.04_amd64.deb

After installing the AzureRm module, when I try to follow the documentation and connect to azure with the following:

> Connect-AzureRmAccount       

I get this error back:

Connect-AzureRmAccount : The term 'Connect-AzureRmAccount' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Connect-AzureRmAccount
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (Connect-AzureRmAccount:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

However, if I use this:

>Login-AzureRmAccount

Then I get the expected device login message:

WARNING: To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code <redacted> to authenticate.

I'm not sure if the command is different on Ubuntu as it is from other flavors of linux or on windows, but either way the documentation needs to be updated to reflect the correct command for logging into Azure.

@Pytry
Copy link
Author

Pytry commented Apr 6, 2018

I was looking over the documentation source, and it looks like it is present already, but that the website itself has not been updated.

@TaraMeyer
Copy link

@Pytry -could you kindly provide the page where the information is missing?

@Pytry
Copy link
Author

Pytry commented Apr 12, 2018

I was seeing it here:

https://docs.microsoft.com/en-us/powershell/azure/install-azurermps-maclinux?view=azurermps-5.7.0

But that no longer seems to be out of date.

@Pytry
Copy link
Author

Pytry commented Apr 12, 2018

Ah, actually it looks like it is here still.

https://docs.microsoft.com/en-us/powershell/azure/authenticate-azureps?view=azurermps-5.7.0

@kjhosein
Copy link

FWIW, I see the same behavior with PowerShell 6.0.1 on MacOS.

There are a few confusing things here:

  • The online documentation for the Azure-PS 5.7.0 module doesn't reflect that Login-AzureRM is current and that Connect-AzureRM doesn't exist. A search to find Login-AzureRM doesn't turn up much. Now I don't trust the documentation to be accurate.
  • The AzureRM module's latest version is 5.7.0, while PowerShell is at 6.0.1 - makes you question whether they're compatible.

@brucedkyle
Copy link

For me, I was using automation account in Azure. For me, the fix was to update the Automation Module. See https://docs.microsoft.com/en-us/azure/automation/automation-update-azure-modules

@dombarnes
Copy link

I seem to have a similar issue but neither command are working
I've even done Import-Module AzureRM.Netcore and Import-Module AzureRm.Profile.Netcore having followed the instructions on https://docs.microsoft.com/en-us/powershell/azure/install-azurermps-maclinux?view=azurermps-6.0.0

$PSVersionTable.PSVersion

Major  Minor  Patch  PreReleaseLabel BuildLabel
-----  -----  -----  --------------- ----------
6      1      0      preview.2

$ Get-Module Azure* -list | Select-Object Name,Version,Path

Name                                   Version Path
----                                   ------- ----
Azure.AnalysisServices                 0.5.1   /usr/local/share/powershell/Modules/Azure.AnalysisServices/0.5.1/Azur...
Azure.AnalysisServices.Netcore         0.11.0  /usr/local/share/powershell/Modules/Azure.AnalysisServices.Netcore/0....
Azure.Storage                          4.3.0   /usr/local/share/powershell/Modules/Azure.Storage/4.3.0/Azure.Storage...
Azure.Storage.Netcore                  0.11.0  /usr/local/share/powershell/Modules/Azure.Storage.Netcore/0.11.0/Azur...
AzureRM                                6.0.1   /usr/local/share/powershell/Modules/AzureRM/6.0.1/AzureRM.psd1
AzureRM.Aks.Netcore                    0.11.0  /usr/local/share/powershell/Modules/AzureRM.Aks.Netcore/0.11.0/AzureR...
AzureRM.AnalysisServices               0.6.7   /usr/local/share/powershell/Modules/AzureRM.AnalysisServices/0.6.7/Az...
AzureRM.AnalysisServices.Netcore       0.11.0  /usr/local/share/powershell/Modules/AzureRM.AnalysisServices.Netcore/...
AzureRM.ApiManagement                  6.0.0   /usr/local/share/powershell/Modules/AzureRM.ApiManagement/6.0.0/Azure...
AzureRM.ApiManagement.Netcore          0.11.0  /usr/local/share/powershell/Modules/AzureRM.ApiManagement.Netcore/0.1...
AzureRM.ApplicationInsights            0.1.4   /usr/local/share/powershell/Modules/AzureRM.ApplicationInsights/0.1.4...
AzureRM.ApplicationInsights.Netcore    0.11.0  /usr/local/share/powershell/Modules/AzureRM.ApplicationInsights.Netco...
AzureRM.Automation                     5.0.0   /usr/local/share/powershell/Modules/AzureRM.Automation/5.0.0/AzureRM....
AzureRM.Automation.Netcore             0.11.0  /usr/local/share/powershell/Modules/AzureRM.Automation.Netcore/0.11.0...
AzureRM.Backup                         4.0.5   /usr/local/share/powershell/Modules/AzureRM.Backup/4.0.5/AzureRM.Back...
AzureRM.Backup.Netcore                 0.11.0  /usr/local/share/powershell/Modules/AzureRM.Backup.Netcore/0.11.0/Azu...
AzureRM.Batch                          4.0.7   /usr/local/share/powershell/Modules/AzureRM.Batch/4.0.7/AzureRM.Batch...
AzureRM.Batch.Netcore                  0.11.0  /usr/local/share/powershell/Modules/AzureRM.Batch.Netcore/0.11.0/Azur...
AzureRM.Billing                        0.14.2  /usr/local/share/powershell/Modules/AzureRM.Billing/0.14.2/AzureRM.Bi...
AzureRM.Billing.Netcore                0.11.0  /usr/local/share/powershell/Modules/AzureRM.Billing.Netcore/0.11.0/Az...
AzureRM.Cdn                            5.0.0   /usr/local/share/powershell/Modules/AzureRM.Cdn/5.0.0/AzureRM.Cdn.psd1
AzureRM.Cdn.Netcore                    0.11.0  /usr/local/share/powershell/Modules/AzureRM.Cdn.Netcore/0.11.0/AzureR...
AzureRM.CognitiveServices              0.9.5   /usr/local/share/powershell/Modules/AzureRM.CognitiveServices/0.9.5/A...
AzureRM.CognitiveServices.Netcore      0.11.0  /usr/local/share/powershell/Modules/AzureRM.CognitiveServices.Netcore...
AzureRM.Compute                        5.0.0   /usr/local/share/powershell/Modules/AzureRM.Compute/5.0.0/AzureRM.Com...
AzureRM.Compute.Netcore                0.11.0  /usr/local/share/powershell/Modules/AzureRM.Compute.Netcore/0.11.0/Az...
AzureRM.Consumption                    0.3.2   /usr/local/share/powershell/Modules/AzureRM.Consumption/0.3.2/AzureRM...
AzureRM.Consumption.Netcore            0.11.0  /usr/local/share/powershell/Modules/AzureRM.Consumption.Netcore/0.11....
AzureRM.ContainerInstance              0.2.6   /usr/local/share/powershell/Modules/AzureRM.ContainerInstance/0.2.6/A...
AzureRM.ContainerInstance.Netcore      0.11.0  /usr/local/share/powershell/Modules/AzureRM.ContainerInstance.Netcore...
AzureRM.ContainerRegistry              1.0.5   /usr/local/share/powershell/Modules/AzureRM.ContainerRegistry/1.0.5/A...
AzureRM.ContainerRegistry.Netcore      0.11.0  /usr/local/share/powershell/Modules/AzureRM.ContainerRegistry.Netcore...
AzureRM.DataFactories                  5.0.0   /usr/local/share/powershell/Modules/AzureRM.DataFactories/5.0.0/Azure...
AzureRM.DataFactories.Netcore          0.11.0  /usr/local/share/powershell/Modules/AzureRM.DataFactories.Netcore/0.1...
AzureRM.DataFactoryV2                  0.5.4   /usr/local/share/powershell/Modules/AzureRM.DataFactoryV2/0.5.4/Azure...
AzureRM.DataFactoryV2.Netcore          0.11.0  /usr/local/share/powershell/Modules/AzureRM.DataFactoryV2.Netcore/0.1...
AzureRM.DataLakeAnalytics              5.0.0   /usr/local/share/powershell/Modules/AzureRM.DataLakeAnalytics/5.0.0/A...
AzureRM.DataLakeAnalytics.Netcore      0.11.0  /usr/local/share/powershell/Modules/AzureRM.DataLakeAnalytics.Netcore...
AzureRM.DataLakeStore                  6.0.0   /usr/local/share/powershell/Modules/AzureRM.DataLakeStore/6.0.0/Azure...
AzureRM.DataLakeStore.Netcore          0.11.0  /usr/local/share/powershell/Modules/AzureRM.DataLakeStore.Netcore/0.1...
AzureRM.DevTestLabs                    4.0.5   /usr/local/share/powershell/Modules/AzureRM.DevTestLabs/4.0.5/AzureRM...
AzureRM.DevTestLabs.Netcore            0.11.0  /usr/local/share/powershell/Modules/AzureRM.DevTestLabs.Netcore/0.11....
AzureRM.Dns                            5.0.0   /usr/local/share/powershell/Modules/AzureRM.Dns/5.0.0/AzureRM.Dns.psd1
AzureRM.Dns.Netcore                    0.11.0  /usr/local/share/powershell/Modules/AzureRM.Dns.Netcore/0.11.0/AzureR...
AzureRM.EventGrid                      0.3.3   /usr/local/share/powershell/Modules/AzureRM.EventGrid/0.3.3/AzureRM.E...
AzureRM.EventGrid.Netcore              0.11.0  /usr/local/share/powershell/Modules/AzureRM.EventGrid.Netcore/0.11.0/...
AzureRM.EventHub                       0.6.4   /usr/local/share/powershell/Modules/AzureRM.EventHub/0.6.4/AzureRM.Ev...
AzureRM.EventHub.Netcore               0.11.0  /usr/local/share/powershell/Modules/AzureRM.EventHub.Netcore/0.11.0/A...
AzureRM.HDInsight                      4.1.3   /usr/local/share/powershell/Modules/AzureRM.HDInsight/4.1.3/AzureRM.H...
AzureRM.Insights                       5.0.0   /usr/local/share/powershell/Modules/AzureRM.Insights/5.0.0/AzureRM.In...
AzureRM.Insights.Netcore               0.11.0  /usr/local/share/powershell/Modules/AzureRM.Insights.Netcore/0.11.0/A...
AzureRM.IotHub                         3.1.3   /usr/local/share/powershell/Modules/AzureRM.IotHub/3.1.3/AzureRM.IotH...
AzureRM.IotHub.Netcore                 0.11.0  /usr/local/share/powershell/Modules/AzureRM.IotHub.Netcore/0.11.0/Azu...
AzureRM.KeyVault                       5.0.0   /usr/local/share/powershell/Modules/AzureRM.KeyVault/5.0.0/AzureRM.Ke...
AzureRM.KeyVault.Netcore               0.11.0  /usr/local/share/powershell/Modules/AzureRM.KeyVault.Netcore/0.11.0/A...
AzureRM.LogicApp                       4.0.4   /usr/local/share/powershell/Modules/AzureRM.LogicApp/4.0.4/AzureRM.Lo...
AzureRM.LogicApp.Netcore               0.11.0  /usr/local/share/powershell/Modules/AzureRM.LogicApp.Netcore/0.11.0/A...
AzureRM.MachineLearning                0.18.0  /usr/local/share/powershell/Modules/AzureRM.MachineLearning/0.18.0/Az...
AzureRM.MachineLearning.Netcore        0.11.0  /usr/local/share/powershell/Modules/AzureRM.MachineLearning.Netcore/0...
AzureRM.MachineLearningCompute         0.4.3   /usr/local/share/powershell/Modules/AzureRM.MachineLearningCompute/0....
AzureRM.MachineLearningCompute.Netcore 0.11.0  /usr/local/share/powershell/Modules/AzureRM.MachineLearningCompute.Ne...
AzureRM.MarketplaceOrdering            0.2.2   /usr/local/share/powershell/Modules/AzureRM.MarketplaceOrdering/0.2.2...
AzureRM.MarketplaceOrdering.Netcore    0.11.0  /usr/local/share/powershell/Modules/AzureRM.MarketplaceOrdering.Netco...
AzureRM.Media                          0.10.0  /usr/local/share/powershell/Modules/AzureRM.Media/0.10.0/AzureRM.Medi...
AzureRM.Media.Netcore                  0.11.0  /usr/local/share/powershell/Modules/AzureRM.Media.Netcore/0.11.0/Azur...
AzureRM.Netcore                        0.11.0  /usr/local/share/powershell/Modules/AzureRM.Netcore/0.11.0/AzureRM.Ne...
AzureRM.Network                        6.0.0   /usr/local/share/powershell/Modules/AzureRM.Network/6.0.0/AzureRM.Net...
AzureRM.Network.Netcore                0.11.0  /usr/local/share/powershell/Modules/AzureRM.Network.Netcore/0.11.0/Az...
AzureRM.NotificationHubs               5.0.0   /usr/local/share/powershell/Modules/AzureRM.NotificationHubs/5.0.0/Az...
AzureRM.NotificationHubs.Netcore       0.11.0  /usr/local/share/powershell/Modules/AzureRM.NotificationHubs.Netcore/...
AzureRM.OperationalInsights            5.0.0   /usr/local/share/powershell/Modules/AzureRM.OperationalInsights/5.0.0...
AzureRM.OperationalInsights.Netcore    0.11.0  /usr/local/share/powershell/Modules/AzureRM.OperationalInsights.Netco...
AzureRM.PowerBIEmbedded                4.1.5   /usr/local/share/powershell/Modules/AzureRM.PowerBIEmbedded/4.1.5/Azu...
AzureRM.PowerBIEmbedded.Netcore        0.11.0  /usr/local/share/powershell/Modules/AzureRM.PowerBIEmbedded.Netcore/0...
AzureRM.profile                        5.0.1   /usr/local/share/powershell/Modules/AzureRM.profile/5.0.1/AzureRM.pro...
AzureRM.Profile.Netcore                0.11.0  /usr/local/share/powershell/Modules/AzureRM.Profile.Netcore/0.11.0/Az...
AzureRM.RecoveryServices               4.1.3   /usr/local/share/powershell/Modules/AzureRM.RecoveryServices/4.1.3/Az...
AzureRM.RecoveryServices.Backup        4.1.3   /usr/local/share/powershell/Modules/AzureRM.RecoveryServices.Backup/4...
AzureRM.RecoveryServices.SiteRecovery  0.2.5   /usr/local/share/powershell/Modules/AzureRM.RecoveryServices.SiteReco...
AzureRM.RedisCache                     5.0.0   /usr/local/share/powershell/Modules/AzureRM.RedisCache/5.0.0/AzureRM....
AzureRM.RedisCache.Netcore             0.11.0  /usr/local/share/powershell/Modules/AzureRM.RedisCache.Netcore/0.11.0...
AzureRM.Relay                          0.3.4   /usr/local/share/powershell/Modules/AzureRM.Relay/0.3.4/AzureRM.Relay...
AzureRM.Relay.Netcore                  0.11.0  /usr/local/share/powershell/Modules/AzureRM.Relay.Netcore/0.11.0/Azur...
AzureRM.Resources                      6.0.0   /usr/local/share/powershell/Modules/AzureRM.Resources/6.0.0/AzureRM.R...
AzureRM.Resources.Netcore              0.11.0  /usr/local/share/powershell/Modules/AzureRM.Resources.Netcore/0.11.0/...
AzureRM.Scheduler                      0.16.4  /usr/local/share/powershell/Modules/AzureRM.Scheduler/0.16.4/AzureRM....
AzureRM.Scheduler.Netcore              0.11.0  /usr/local/share/powershell/Modules/AzureRM.Scheduler.Netcore/0.11.0/...
AzureRM.ServiceBus                     0.6.5   /usr/local/share/powershell/Modules/AzureRM.ServiceBus/0.6.5/AzureRM....
AzureRM.ServiceBus.Netcore             0.11.0  /usr/local/share/powershell/Modules/AzureRM.ServiceBus.Netcore/0.11.0...
AzureRM.ServiceFabric                  0.3.5   /usr/local/share/powershell/Modules/AzureRM.ServiceFabric/0.3.5/Azure...
AzureRM.ServiceFabric.Netcore          0.11.0  /usr/local/share/powershell/Modules/AzureRM.ServiceFabric.Netcore/0.1...
AzureRM.Sql                            4.4.1   /usr/local/share/powershell/Modules/AzureRM.Sql/4.4.1/AzureRM.Sql.psd1
AzureRM.Sql.Netcore                    0.11.0  /usr/local/share/powershell/Modules/AzureRM.Sql.Netcore/0.11.0/AzureR...
AzureRM.Storage                        5.0.0   /usr/local/share/powershell/Modules/AzureRM.Storage/5.0.0/AzureRM.Sto...
AzureRM.Storage.Netcore                0.11.0  /usr/local/share/powershell/Modules/AzureRM.Storage.Netcore/0.11.0/Az...
AzureRM.StreamAnalytics                4.0.5   /usr/local/share/powershell/Modules/AzureRM.StreamAnalytics/4.0.5/Azu...
AzureRM.StreamAnalytics.Netcore        0.11.0  /usr/local/share/powershell/Modules/AzureRM.StreamAnalytics.Netcore/0...
AzureRM.Tags                           4.0.2   /usr/local/share/powershell/Modules/AzureRM.Tags/4.0.2/AzureRM.Tags.psd1
AzureRM.Tags.Netcore                   0.11.0  /usr/local/share/powershell/Modules/AzureRM.Tags.Netcore/0.11.0/Azure...
AzureRM.TrafficManager                 4.0.4   /usr/local/share/powershell/Modules/AzureRM.TrafficManager/4.0.4/Azur...
AzureRM.TrafficManager.Netcore         0.11.0  /usr/local/share/powershell/Modules/AzureRM.TrafficManager.Netcore/0....
AzureRM.UsageAggregates                4.0.3   /usr/local/share/powershell/Modules/AzureRM.UsageAggregates/4.0.3/Azu...
AzureRM.UsageAggregates.Netcore        0.11.0  /usr/local/share/powershell/Modules/AzureRM.UsageAggregates.Netcore/0...
AzureRM.Websites                       5.0.1   /usr/local/share/powershell/Modules/AzureRM.Websites/5.0.1/AzureRM.We...
AzureRM.Websites.Netcore               0.11.0  /usr/local/share/powershell/Modules/AzureRM.Websites.Netcore/0.11.0/A...

$ Login-AzureRmAccount
Login-AzureRmAccount : The term 'Login-AzureRmAccount' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Login-AzureRmAccount
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (Login-AzureRmAccount:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

$ Connect-AzureRmAccount
Connect-AzureRmAccount : The term 'Connect-AzureRmAccount' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Connect-AzureRmAccount
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (Connect-AzureRmAccount:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

I've also done this: http://jessicadeen.com/tech/updated-powershell-core-and-azurerm-netcore-preview-module-install-scripts-for-ubuntu-and-os-x/

And get:

$Import-Module AzureRM.Profile.NetCore.Preview
Import-Module : Assembly with same name is already loaded
At line:1 char:1
+ Import-Module AzureRM.Profile.NetCore.Preview
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Import-Module], FileLoadException
+ FullyQualifiedErrorId : System.IO.FileLoadException,Microsoft.PowerShell.Commands.ImportModuleCommand

PS /usr/local/microsoft/powershell/6.1.0-preview.2> Login-AzureRmAccount
Login-AzureRmAccount : The 'Login-AzureRmAccount' command was found in the module 'AzureRM.Profile.NetCore.Preview', but the module could not be loaded. For more information, run 'Import-Module AzureRM.Profile.NetCore.Preview'.
At line:1 char:1
+ Login-AzureRmAccount
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (Login-AzureRmAccount:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CouldNotAutoloadMatchingModule

@stofte
Copy link

stofte commented Jun 1, 2018

Is anyone looking at this? It's exxtremely confusing to be used to Login-AzureRMAccount and then see a non-existant command being used. The commands aren't alias of each other either, so which one is it?

@sptramer
Copy link
Contributor

sptramer commented Jun 1, 2018

@twitchax This appears to be an engineering problem on non-Win platforms. Can the PG investigate?

@Pytry
Copy link
Author

Pytry commented Jun 1, 2018

That would be great if that could happen:D It would help my team feel better about adoption as well.

@twitchax
Copy link
Contributor

twitchax commented Jun 2, 2018

I am not able to repro this in Ubuntu 16.04 with AzureRM.Netcore 0.11.0, and if this is a product issue, then it needs to be filled out here with the repro steps.

@dombarnes, your issue might be caused by also having AzureRM 6.0.1 installed. That module is Framework-only, and its presence may be causing loading issues.

@stofte, Connect-AzureRmAccount and its alias Login-AzureRmAccount both work for with AzureRM 0.11.0: can you elaborate on your setup?

@sptramer sptramer added the needs-more-info Waiting - for more information label Jun 7, 2018
@TommyKTheDJ
Copy link

I am having the same issue as @dombarnes. Here is my setup:
(installed using https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-powershell-core-on-macos?view=powershell-6
and
https://docs.microsoft.com/en-us/powershell/azure/install-azurermps-maclinux?view=azurermps-6.3.0&viewFallbackFrom=azurermps-6.0.0)

$PSVersionTable.PSVersion

Major Minor Patch PreReleas BuildLabel
eLabel


6 0 2

Get-Module Azure* -list | Select-Object Name,Version,Path

Name Version Path


Azure.AnalysisServices 0.5.1 /usr/local/share/powershell/M...
Azure.AnalysisServices.Netcore 0.12.0 /usr/local/share/powershell/M...
Azure.Storage 4.3.1 /usr/local/share/powershell/M...
Azure.Storage.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM 6.3.0 /usr/local/share/powershell/M...
AzureRM.Aks.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.AnalysisServices 0.6.8 /usr/local/share/powershell/M...
AzureRM.AnalysisServices.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.ApiManagement 6.1.0 /usr/local/share/powershell/M...
AzureRM.ApiManagement.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.ApplicationInsights 0.1.4 /usr/local/share/powershell/M...
AzureRM.ApplicationInsights.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.Automation 5.0.0 /usr/local/share/powershell/M...
AzureRM.Automation.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.Backup 4.0.5 /usr/local/share/powershell/M...
AzureRM.Batch 4.1.0 /usr/local/share/powershell/M...
AzureRM.Batch.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.Billing 0.14.2 /usr/local/share/powershell/M...
AzureRM.Billing.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.Cdn 5.0.0 /usr/local/share/powershell/M...
AzureRM.Cdn.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.CognitiveServices 0.9.5 /usr/local/share/powershell/M...
AzureRM.CognitiveServices.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.Compute 5.1.1 /usr/local/share/powershell/M...
AzureRM.Compute.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.Consumption 0.3.3 /usr/local/share/powershell/M...
AzureRM.Consumption.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.ContainerInstance 0.2.6 /usr/local/share/powershell/M...
AzureRM.ContainerInstance.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.ContainerRegistry 1.0.5 /usr/local/share/powershell/M...
AzureRM.ContainerRegistry.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.DataFactories 5.0.0 /usr/local/share/powershell/M...
AzureRM.DataFactoryV2 0.5.5 /usr/local/share/powershell/M...
AzureRM.DataLakeAnalytics 5.0.0 /usr/local/share/powershell/M...
AzureRM.DataLakeAnalytics.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.DataLakeStore 6.0.1 /usr/local/share/powershell/M...
AzureRM.DataLakeStore.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.DevTestLabs 4.0.5 /usr/local/share/powershell/M...
AzureRM.DevTestLabs.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.Dns 5.0.0 /usr/local/share/powershell/M...
AzureRM.Dns.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.EventGrid 0.3.4 /usr/local/share/powershell/M...
AzureRM.EventGrid.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.EventHub 0.6.4 /usr/local/share/powershell/M...
AzureRM.EventHub.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.HDInsight 4.1.3 /usr/local/share/powershell/M...
AzureRM.Insights 5.0.0 /usr/local/share/powershell/M...
AzureRM.Insights.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.IotHub 3.1.3 /usr/local/share/powershell/M...
AzureRM.IotHub.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.KeyVault 5.0.2 /usr/local/share/powershell/M...
AzureRM.KeyVault.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.LogicApp 4.0.4 /usr/local/share/powershell/M...
AzureRM.LogicApp.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.MachineLearning 0.18.0 /usr/local/share/powershell/M...
AzureRM.MachineLearning.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.MachineLearningCompute 0.4.3 /usr/local/share/powershell/M...
AzureRM.MachineLearningCompute.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.MarketplaceOrdering 0.2.2 /usr/local/share/powershell/M...
AzureRM.MarketplaceOrdering.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.Media 0.10.0 /usr/local/share/powershell/M...
AzureRM.Media.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.Network 6.2.0 /usr/local/share/powershell/M...
AzureRM.Network.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.NotificationHubs 5.0.0 /usr/local/share/powershell/M...
AzureRM.NotificationHubs.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.OperationalInsights 5.0.1 /usr/local/share/powershell/M...
AzureRM.OperationalInsights.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.PolicyInsights 1.0.1 /usr/local/share/powershell/M...
AzureRM.PowerBIEmbedded 4.1.5 /usr/local/share/powershell/M...
AzureRM.PowerBIEmbedded.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.profile 5.3.0 /usr/local/share/powershell/M...
AzureRM.Profile.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.RecoveryServices 4.1.3 /usr/local/share/powershell/M...
AzureRM.RecoveryServices.Backup 4.2.0 /usr/local/share/powershell/M...
AzureRM.RecoveryServices.SiteRecovery 0.2.5 /usr/local/share/powershell/M...
AzureRM.RedisCache 5.0.0 /usr/local/share/powershell/M...
AzureRM.Relay 0.3.4 /usr/local/share/powershell/M...
AzureRM.Relay.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.Resources 6.1.0 /usr/local/share/powershell/M...
AzureRM.Resources.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.Scheduler 0.16.5 /usr/local/share/powershell/M...
AzureRM.ServiceBus 0.6.5 /usr/local/share/powershell/M...
AzureRM.ServiceBus.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.ServiceFabric 0.3.6 /usr/local/share/powershell/M...
AzureRM.ServiceFabric.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.Sql 4.6.1 /usr/local/share/powershell/M...
AzureRM.Sql.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.Storage 5.0.0 /usr/local/share/powershell/M...
AzureRM.Storage.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.StreamAnalytics 4.0.5 /usr/local/share/powershell/M...
AzureRM.StreamAnalytics.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.Subscription 0.2.1 /usr/local/share/powershell/M...
AzureRM.Tags 4.0.2 /usr/local/share/powershell/M...
AzureRM.Tags.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.TrafficManager 4.0.6 /usr/local/share/powershell/M...
AzureRM.TrafficManager.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.UsageAggregates 4.0.3 /usr/local/share/powershell/M...
AzureRM.UsageAggregates.Netcore 0.12.0 /usr/local/share/powershell/M...
AzureRM.Websites 5.0.3 /usr/local/share/powershell/M...
AzureRM.Websites.Netcore 0.12.0 /usr/local/share/powershell/M...

@sptramer
Copy link
Contributor

sptramer commented Jun 21, 2018

@TommyKTheDJ please file a product bug: https://github.com/azure/azure-powershell/issues

Closing this as a product issue.

@twitchax
Copy link
Contributor

@TommyKTheDJ, this is because you have both the Netcore modules, and the .NET Framework modules installed. Please remove the .NET Framework modules, since they will not work.

@TommyKTheDJ
Copy link

Thanks @twitchax - that has fixed it for me

@olivelawn
Copy link

For the uninitiated...which Module is the .Net Framework from the list above?

@sptramer
Copy link
Contributor

@olivelawn Any module which ends in .Netcore is a .NET Core module. Other modules are .NET Framework.

@twitchax
Copy link
Contributor

twitchax commented Jun 25, 2018

@olivelawn, also, we are moving towards a NET Standard module system soon, that will work on both, and not require a PhD in PowerShel Gallery to figure out. :)

@gerardo001
Copy link

@twitchax
Copy link
Contributor

@gerardo001, sorry, what is wrong with that doc?

Connect-AzureRmAccount is the proper cmdlet: the issue here was overlapping .NET Framework and .NET Core modules. The cmdlet itself is fine.

@gerardo001
Copy link

gerardo001 commented Jun 27, 2018 via email

@twitchax
Copy link
Contributor

@gerardo001, did you upgrade your account to the latest Azure PowerShell version in Automation?

@gerardo001
Copy link

gerardo001 commented Jun 28, 2018 via email

@twitchax
Copy link
Contributor

Cool. In that case, you probably have an older version of Azure PowerShell.

@eamonoreilly can likely help route this issue in the Automation docs.

@georgewallace
Copy link
Contributor

@twitchax I will add a note to the doc about the old cmdlet alias. And what to do. Similar to what I recently put here https://docs.microsoft.com/en-us/azure/automation/automation-first-runbook-graphical#add-authentication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-more-info Waiting - for more information triaged
Projects
None yet
Development

No branches or pull requests