You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
When trying to import Azure Core modules, I am getting the following error on latest Mac OS:
Import-Module : Could not load file or assembly 'Microsoft.Azure.Commands.ResourceManager.Common, Version=1.6.0.0, Cultur
e=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
At line:1 char:1
Hum!! I don't think the 'PSScriptAnalyzer' can be installed in PowerShell Core Linux and is not part of AzureRM module.
You can use the following command to identify what's been tag for Linux:
Find-Module -tag Linux
For sure there's a lot of work to be done in the PSGallery to properly identify the difference between Windows PowerShell vs PowerShell Core as they are not the same.
I don't believe it is just PSScriptAnalyzer not being able to run on OSX. I ran the command you suggested Find-Module with the same result.
PowerShell v6.0.0-beta.3
Copyright (C) Microsoft Corporation. All rights reserved.
PS /> Find-Module -tag Linux
Unable to find the specified file.
At line:1 char:1
+ Find-Module -tag Linux
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], FileNotFoundException
+ FullyQualifiedErrorId : System.IO.FileNotFoundException
Well, this is interesting. I just tried for the hell of it to change back to my $HOME directory and it worked.
PowerShell v6.0.0-beta.3
Copyright (C) Microsoft Corporation. All rights reserved.
PS /Users/*******> Find-Module -tag Linux
Version Name Repository Description
------- ---- ---------- -----------
1.1.4.0 PackageManagement PSGallery PackageManagement (a.k.a. OneGet) is a new way to discover and insta...
1.1.3.1 PowerShellGet PSGallery PowerShell module with commands for discovering, installing, updatin...
0.3.4 AzureRM.Profile.NetCore.Preview PSGallery [PowerShell Core Edition] Microsoft Azure PowerShell - Profile crede...
1.1.0.0 Microsoft.PowerShell.Archive PSGallery PowerShell module for working with ZIP archives.
0.3.4 AzureRM.Resources.NetCore.Preview PSGallery [PowerShell Core Edition] Microsoft Azure PowerShell - Azure Resourc...
0.3.4 AzureRM.NetCore.Preview PSGallery [PowerShell Core Edition] Azure Resource Manager Module - Management...
1.0.0 SSH PSGallery Provides a PowerShell-based SSH client based on SSH.net http://sshn...
1.7.3.9 PoshRSJob PSGallery Module designed to use PowerShell runspaces to create jobs that allo...
2.0.4 Posh-SYSLOG PSGallery Send SYSLOG messages from PowerShell
1.1.6.0 Microsoft.PowerShell.ODataUtils PSGallery Generates CDXML modules that contain cmdlets to manage OData and Red...
0.1.1 PSPuTTY PSGallery This PowerShell module enables you to switch between color themes fo...
0.5.1.0 PSReleaseTools PSGallery A set of commands for working with PowerShell 6.0 releases
Previously, I was running out of the root folder / (I have just noticed). So is there something going on under the hood of PS and using relative paths or something else from where you currently are.
I was working in a particular folder in a bash session.
Done some stuff, then deleted the same working folder via OSX Finder.
Updated PowerShell to v6 beta 3 on my Mac OSX.
Then back in the bash session without changing the working directory, started powershell.
Not realising that the PS prompt PS /> indicated that I was supposedly working in /.
Executing the command $PSVersionTable obviously works as it not having to load up a script, cmdlet or module.
Executing a call against a function where it wants to load a script, cmdlet or module is where the problem lies.
I have been able to replicate this by repeating the process in session 1 changing to a folder like /tmp/test, then in another session (2) removing the /tmp/test, then back to the first session and run PS. Run a command calling a function and bingo - same result.
Unix (and I assume for now Linux as well) do not lock a folder if another session is currently pointing to it or have a file open like Windows does. Hence the dramas.
Anyway, I personally don't see this as a major bug, but the error message is not accurate as to the actual cause, but how or what is the best message to return, and how would PS determine the situation before running the executing command.
I would hold off on trying to use the Azure.NetCore.Preview module on Mac/Linux. They have a new release coming, but it's blocked by a CoreFx bug and waiting on us to pick up a new dotnet core that has the fix. Hopefully the stars align and everything works out in time for beta.4
Yes, sure, is it the login process you are uncertain about?
You just enter Login-AzureRmAccount on the Powershell prompt, it will then tell to go to https://aka.ms/devicelogin in a browser and enter the code Login-AzureRmAccount shows you.
When you enter the code, you will be prompted to enter login and password to Azure. This will create a session in Powershell, giving you back the prompt.
Laurent Prat (@LaurentPrat) are you sure you installed AzureRM.netcore and not AzureRM. Both of them are on powershellgallery but to run on linux or mac AzureRM.netcore is required.
Steve posted the command to do exactly that: install-module azurerm.netcore -scope currentuser
Also - can you post the output of: Get-Module -ListAvailable |Where-Object {$_.Name -like 'AzureRM*'}
Tomasz Lisiecki (@tlisiecki) . Actually I had installed AzureRM long time back and was stuck waiting for the fix
I did applied as specified by Steve. Still after that I ran into the issue explained, that Login command does not load.
Please see below the output request - Many thanks in advance
Gleb Boushev (@4c74356b41) Not sure I am following your mind - fyi, I have just installed the cross platform PowerShell package - the last is BETA4 for MacOs check the download page (powershell-6.0.0-beta.4-osx.10.12-x64.pkg).
Laurent Prat (@LaurentPrat) well I guess there is some clash on command names from different modules and the proper modules do not auto load.
I bielieve you could try Import-Module AzureRM.Netcore and then try to log in.
But if I were you I`d first uninstall AzureRM module completely. AzureRM is a module running on Full .NET framework as 4c74356b41 suggests between lines :) and there is no way it would ever run on linux/mac.
On mac you have powershell core, based on .NET core framework and thus you need AzureRM.netcore module.
Hope that is clear enough.
Tomasz Lisiecki (@tlisiecki) Thanks for confirming. Forgot to mention that I ran PS Core on Windows 10, which is likely why we got slightly different error messages (you seem to be running a different OS).
FYI: I`ve submitted an issue in the Azure PowerShell repository
Tried hundred of times finally made 1 step, after installed azurerm.netcore module, just import modules end with "netcore". Get-Module -ListAvailable azurerm*netcore | Import-Module
PSVersion
> Name Value
> ---- -----
> PSVersion 6.0.0-beta
> PSEdition Core
> GitCommitId v6.0.0-beta.5
> OS Darwin 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64
> Platform Unix
> PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
> PSRemotingProtocolVersion 2.3
> SerializationVersion 1.1.0.1
> WSManStackVersion 3.0
Steve Lee (@SteveL-MSFT) hey there, do you know why each time i run azure powershell it prompts for datacollection? it honestly looks like a bug. the '/home/user/.config/Windows Azure Powershell/AzureDataCollectionProfile.json' file is there and contains: {"enableAzureDataCollection":true}, yet each time i open new session and run azure cmdlets it prompts if i want to collect data
Activity
januschr commentedon Jun 24, 2017
I get the same error. I first ran
And after that Import-Module AzureRM.Profile.NetCore.Preview, where I get the same error as unbreakabl3.
Get-Module -ListAvailable shows the following:
Thank you in advance.
amhendley commentedon Jun 26, 2017
I would like to report the exact same behaviour, but where it appears to occur for any call made.
Examples
MaximoTrinidad commentedon Jun 26, 2017
Hum!! I don't think the 'PSScriptAnalyzer' can be installed in PowerShell Core Linux and is not part of AzureRM module.
You can use the following command to identify what's been tag for Linux:
For sure there's a lot of work to be done in the PSGallery to properly identify the difference between Windows PowerShell vs PowerShell Core as they are not the same.
Hope this will clear some confusion,
:)
amhendley commentedon Jun 27, 2017
I don't believe it is just
PSScriptAnalyzernot being able to run on OSX. I ran the command you suggestedFind-Modulewith the same result.amhendley commentedon Jun 27, 2017
Well, this is interesting. I just tried for the hell of it to change back to my
$HOMEdirectory and it worked.Previously, I was running out of the root folder
/(I have just noticed). So is there something going on under the hood of PS and using relative paths or something else from where you currently are.amhendley commentedon Jun 27, 2017
OK. I think I have found the possible cause.
powershell.PS />indicated that I was supposedly working in/.$PSVersionTableobviously works as it not having to load up a script, cmdlet or module.I have been able to replicate this by repeating the process in session 1 changing to a folder like
/tmp/test, then in another session (2) removing the/tmp/test, then back to the first session and run PS. Run a command calling a function and bingo - same result.Unix (and I assume for now Linux as well) do not lock a folder if another session is currently pointing to it or have a file open like Windows does. Hence the dramas.
Anyway, I personally don't see this as a major bug, but the error message is not accurate as to the actual cause, but how or what is the best message to return, and how would PS determine the situation before running the executing command.
MaximoTrinidad commentedon Jun 27, 2017
Ah!! A M Hendley (@amhendley)
Too bad I don't have a Mac! :(
It works on Ubuntu 16.04,2.
vszalma commentedon Jun 27, 2017
Hello. I am also seeing the same issue. I don't appear to be in the same situation as A M Hendley (@amhendley) .
Getting the same error on the import.
SteveL-MSFT commentedon Jun 27, 2017
I would hold off on trying to use the Azure.NetCore.Preview module on Mac/Linux. They have a new release coming, but it's blocked by a CoreFx bug and waiting on us to pick up a new dotnet core that has the fix. Hopefully the stars align and everything works out in time for beta.4
januschr commentedon Jun 27, 2017
Hi Steve Lee (@SteveL-MSFT),
That sounds promising. Any word on what the timeline is for the new release?
Thanks!
MaximoTrinidad commentedon Jun 27, 2017
I thought this was already been addressed back in the Alpha version: #3577
:)
SteveL-MSFT commentedon Jun 27, 2017
januschr we're working with Azure PowerShell team closely, but the underlying issue is in dotnet. beta.4 is targeted for 7/13. I
MaximoTrinidad commentedon Jun 27, 2017
Steve Lee (@SteveL-MSFT) Awesome!!
That's just around the corner!
:)
4c74356b41 commentedon Jul 12, 2017
so it's tomorrow, any updates? thanks!
17 remaining items
januschr commentedon Jul 29, 2017
Yes, sure, is it the login process you are uncertain about?
You just enter Login-AzureRmAccount on the Powershell prompt, it will then tell to go to https://aka.ms/devicelogin in a browser and enter the code Login-AzureRmAccount shows you.
When you enter the code, you will be prompted to enter login and password to Azure. This will create a session in Powershell, giving you back the prompt.
Hope this helps,
Janus
tlisiecki commentedon Jul 29, 2017
Just installed AzureRM.Netcore/0.9.1 on beta4 on linux and it works flawlessly.
The login procedure works just as januschr described
LaurentPrat commentedon Jul 29, 2017
Tomasz Lisiecki (@tlisiecki) & januschr Thank you so much for your support.
The issue I have (on Mac) after successfully importing AzureRM (Import-Module AzureRM), is that when running the command : PS > Login-AzureRmAccount
I got an error, see #4389
Best regards,
L.
tlisiecki commentedon Jul 29, 2017
Laurent Prat (@LaurentPrat) are you sure you installed AzureRM.netcore and not AzureRM. Both of them are on powershellgallery but to run on linux or mac AzureRM.netcore is required.
Steve posted the command to do exactly that:
install-module azurerm.netcore -scope currentuserAlso - can you post the output of:
Get-Module -ListAvailable |Where-Object {$_.Name -like 'AzureRM*'}LaurentPrat commentedon Jul 29, 2017
Tomasz Lisiecki (@tlisiecki) . Actually I had installed AzureRM long time back and was stuck waiting for the fix
I did applied as specified by Steve. Still after that I ran into the issue explained, that Login command does not load.
Please see below the output request - Many thanks in advance
PS /Users/laurentprat> Get-Module -ListAvailable |Where-Object {$_.Name -like 'AzureRM*'}
ModuleType Version Name ExportedCommands
Manifest 0.9.1 AzureRM.Compute.Netcore {Remove-AzureRmAvailabilitySet, Get-AzureRmAvailabilitySet, New-AzureRmAvailabilitySet, Update-Azu...
Manifest 0.9.1 AzureRM.Netcore
Manifest 0.9.1 AzureRM.Network.Netcore {Add-AzureRmApplicationGatewayAuthenticationCertificate, Get-AzureRmApplicationGatewayAuthenticati...
Manifest 0.9.1 AzureRM.Profile.Netcore {Disable-AzureRmDataCollection, Enable-AzureRmDataCollection, Remove-AzureRmEnvironment, Get-Azure...
Manifest 0.9.1 AzureRM.Resources.Netcore {Get-AzureRmProviderOperation, Remove-AzureRmRoleAssignment, Get-AzureRmRoleAssignment, New-AzureR...
Manifest 0.9.1 AzureRM.Storage.Netcore {Get-AzureRmStorageAccount, Get-AzureRmStorageAccountKey, New-AzureRmStorageAccount, New-AzureRmSt...
Manifest 0.9.1 AzureRM.Tags.Netcore {Remove-AzureRmTag, Get-AzureRmTag, New-AzureRmTag}
Manifest 0.9.1 AzureRM.Websites.Netcore {Get-AzureRmAppServicePlan, Set-AzureRmAppServicePlan, New-AzureRmAppServicePlan, Remove-AzureRmAp...
ModuleType Version Name ExportedCommands
Script 4.2.1 AzureRM {Remove-AzureRmSiteRecoveryServicesProvider, Get-AzureRmVMImageSku, Set-AzureRmVirtualNetworkGatew...
Script 0.4.2 AzureRM.AnalysisServices {Resume-AzureRmAnalysisServicesServer, Suspend-AzureRmAnalysisServicesServer, Get-AzureRmAnalysisS...
Script 4.2.1 AzureRM.ApiManagement {Add-AzureRmApiManagementRegion, Get-AzureRmApiManagementSsoToken, New-AzureRmApiManagementHostnam...
Script 3.2.1 AzureRM.Automation {Get-AzureRMAutomationHybridWorkerGroup, Get-AzureRmAutomationJobOutputRecord, Import-AzureRmAutom...
Script 3.2.1 AzureRM.Backup {Backup-AzureRmBackupItem, Enable-AzureRmBackupContainerReregistration, Get-AzureRmBackupContainer...
Script 3.2.1 AzureRM.Batch {Remove-AzureRmBatchAccount, Get-AzureRmBatchAccount, Get-AzureRmBatchAccountKeys, New-AzureRmBatc...
Script 0.13.2 AzureRM.Billing {Get-AzureRmBillingInvoice, Get-AzureRmBillingPeriod}
Script 3.2.1 AzureRM.Cdn {Get-AzureRmCdnProfile, Get-AzureRmCdnProfileSsoUrl, New-AzureRmCdnProfile, Remove-AzureRmCdnProfi...
Script 0.8.2 AzureRM.CognitiveServices {Get-AzureRmCognitiveServicesAccount, Get-AzureRmCognitiveServicesAccountKey, Get-AzureRmCognitive...
Script 3.2.1 AzureRM.Compute {Remove-AzureRmAvailabilitySet, Get-AzureRmAvailabilitySet, New-AzureRmAvailabilitySet, Update-Azu...
Script 0.2.2 AzureRM.Consumption Get-AzureRmConsumptionUsageDetail
Script 0.2.2 AzureRM.ContainerRegistry {New-AzureRmContainerRegistry, Get-AzureRmContainerRegistry, Update-AzureRmContainerRegistry, Remo...
Script 3.2.1 AzureRM.DataFactories {Remove-AzureRmDataFactory, Get-AzureRmDataFactoryRun, Get-AzureRmDataFactorySlice, Save-AzureRmDa...
Script 3.2.1 AzureRM.DataLakeAnalytics {Get-AzureRmDataLakeAnalyticsDataSource, New-AzureRmDataLakeAnalyticsCatalogCredential, Remove-Azu...
Script 4.2.1 AzureRM.DataLakeStore {Get-AzureRmDataLakeStoreTrustedIdProvider, Remove-AzureRmDataLakeStoreTrustedIdProvider, Remove-A...
Script 3.2.1 AzureRM.DevTestLabs {Get-AzureRmDtlAllowedVMSizesPolicy, Get-AzureRmDtlAutoShutdownPolicy, Get-AzureRmDtlAutoStartPoli...
Script 3.2.1 AzureRM.Dns {Get-AzureRmDnsRecordSet, New-AzureRmDnsRecordConfig, Remove-AzureRmDnsRecordSet, Set-AzureRmDnsRe...
Script 0.4.2 AzureRM.EventHub {New-AzureRmEventHubKey, Get-AzureRmEventHubNamespace, Get-AzureRmEventHubNamespaceAuthorizationRu...
Script 3.2.1 AzureRM.HDInsight {Get-AzureRmHDInsightJob, New-AzureRmHDInsightSqoopJobDefinition, Wait-AzureRmHDInsightJob, New-Az...
Script 3.2.1 AzureRM.Insights {Get-AzureRmUsage, Get-AzureRmMetricDefinition, Get-AzureRmMetric, Remove-AzureRmLogProfile...}
Script 2.2.1 AzureRM.IotHub {Add-AzureRmIotHubKey, Get-AzureRmIotHubEventHubConsumerGroup, Get-AzureRmIotHubConnectionString, ...
Script 3.2.1 AzureRM.KeyVault {Add-AzureKeyVaultCertificate, Set-AzureKeyVaultCertificateAttribute, Stop-AzureKeyVaultCertificat...
Script 3.2.1 AzureRM.LogicApp {Get-AzureRmIntegrationAccountAgreement, Get-AzureRmIntegrationAccountCallbackUrl, Get-AzureRmInte...
Script 0.15.2 AzureRM.MachineLearning {Move-AzureRmMlCommitmentAssociation, Get-AzureRmMlCommitmentAssociation, Get-AzureRmMlCommitmentP...
Script 0.7.2 AzureRM.Media {Sync-AzureRmMediaServiceStorageKeys, Set-AzureRmMediaServiceKey, Get-AzureRmMediaServiceKeys, Get...
Script 4.2.1 AzureRM.Network {Add-AzureRmApplicationGatewayAuthenticationCertificate, Get-AzureRmApplicationGatewayAuthenticati...
Script 3.2.1 AzureRM.NotificationHubs {Get-AzureRmNotificationHub, Get-AzureRmNotificationHubAuthorizationRules, Get-AzureRmNotification...
Script 3.2.1 AzureRM.OperationalInsights {New-AzureRmOperationalInsightsAzureActivityLogDataSource, New-AzureRmOperationalInsightsCustomLog...
Script 3.2.1 AzureRM.PowerBIEmbedded {Remove-AzureRmPowerBIWorkspaceCollection, Get-AzureRmPowerBIWorkspaceCollection, Get-AzureRmPower...
Script 3.2.1 AzureRM.profile {Disable-AzureRmDataCollection, Enable-AzureRmDataCollection, Remove-AzureRmEnvironment, Get-Azure...
Script 3.2.1 AzureRM.RecoveryServices {Get-AzureRmRecoveryServicesBackupProperty, Get-AzureRmRecoveryServicesVault, Get-AzureRmRecoveryS...
Script 3.2.1 AzureRM.RecoveryServices.Backup {Backup-AzureRmRecoveryServicesBackupItem, Get-AzureRmRecoveryServicesBackupManagementServer, Get-...
Script 3.2.1 AzureRM.RedisCache {Remove-AzureRmRedisCachePatchSchedule, New-AzureRmRedisCacheScheduleEntry, Get-AzureRmRedisCacheP...
Script 0.2.2 AzureRM.Relay {New-AzureRmRelayNamespace, Get-AzureRmRelayNamespace, Set-AzureRmRelayNamespace, Remove-AzureRmRe...
Script 4.2.1 AzureRM.Resources {Get-AzureRmProviderOperation, Remove-AzureRmRoleAssignment, Get-AzureRmRoleAssignment, New-AzureR...
Script 0.15.2 AzureRM.Scheduler {Disable-AzureRmSchedulerJobCollection, Enable-AzureRmSchedulerJobCollection, Get-AzureRmScheduler...
Script 3.2.1 AzureRM.ServerManagement {Invoke-AzureRmServerManagementPowerShellCommand, Get-AzureRmServerManagementSession, New-AzureRmS...
Script 0.4.2 AzureRM.ServiceBus {Get-AzureRmServiceBusTopic, Get-AzureRmServiceBusTopicAuthorizationRule, Get-AzureRmServiceBusTop...
Script 0.2.2 AzureRM.ServiceFabric {Add-AzureRmServiceFabricApplicationCertificate, Add-AzureRmServiceFabricClientCertificate, Add-Az...
Script 4.2.1 AzureRM.SiteRecovery {Get-AzureRmSiteRecoveryFabric, New-AzureRmSiteRecoveryFabric, Remove-AzureRmSiteRecoveryFabric, S...
Script 3.2.1 AzureRM.Sql {Get-AzureRmSqlDatabaseTransparentDataEncryption, Get-AzureRmSqlDatabaseTransparentDataEncryptionA...
Script 3.2.1 AzureRM.Storage {Get-AzureRmStorageAccount, Get-AzureRmStorageAccountKey, New-AzureRmStorageAccount, New-AzureRmSt...
Script 3.2.1 AzureRM.StreamAnalytics {Get-AzureRmStreamAnalyticsFunction, Get-AzureRmStreamAnalyticsDefaultFunctionDefinition, New-Azur...
Script 3.2.1 AzureRM.Tags {Remove-AzureRmTag, Get-AzureRmTag, New-AzureRmTag}
Script 3.2.1 AzureRM.TrafficManager {Disable-AzureRmTrafficManagerEndpoint, Enable-AzureRmTrafficManagerEndpoint, Set-AzureRmTrafficMa...
Script 3.2.1 AzureRM.UsageAggregates Get-UsageAggregates
Script 3.2.1 AzureRM.Websites {Get-AzureRmAppServicePlan, Set-AzureRmAppServicePlan, New-AzureRmAppServicePlan, Remove-AzureRmAp...
4c74356b41 commentedon Jul 29, 2017
Laurent Prat (@LaurentPrat) so how did you port full net framework (to use AzureRM) to macos?
LaurentPrat commentedon Jul 29, 2017
Gleb Boushev (@4c74356b41) Not sure I am following your mind - fyi, I have just installed the cross platform PowerShell package - the last is BETA4 for MacOs check the download page (powershell-6.0.0-beta.4-osx.10.12-x64.pkg).
tlisiecki commentedon Jul 29, 2017
Laurent Prat (@LaurentPrat) well I guess there is some clash on command names from different modules and the proper modules do not auto load.
I bielieve you could try
Import-Module AzureRM.Netcoreand then try to log in.But if I were you I`d first uninstall AzureRM module completely. AzureRM is a module running on Full .NET framework as 4c74356b41 suggests between lines :) and there is no way it would ever run on linux/mac.
On mac you have powershell core, based on .NET core framework and thus you need AzureRM.netcore module.
Hope that is clear enough.
janegilring commentedon Jul 29, 2017
Is PSCredential objects supposed to work in the current version of Add-AzureRmAccount?
I get this error:
PS C:\Program Files\PowerShell\6.0.0-beta.4> $cred = Get-Credential
Windows PowerShell credential request
Enter your credentials.
User: [email protected]
Password for user [email protected]: **********
PS C:\Program Files\PowerShell\6.0.0-beta.4> Add-AzureRmAccount -Credential $cred
Add-AzureRmAccount : accessing_ws_metadata_exchange_failed: Accessing WS metadata exchange failed: Response status cod
e does not indicate success: 406 (NotAcceptable).
At line:1 char:1
PS C:\Program Files\PowerShell\6.0.0-beta.4>
LaurentPrat commentedon Jul 29, 2017
Tomasz Lisiecki (@tlisiecki)
uninstalling/reinstalling, then checked the AzureRM* modules - where I saw there are only the AzureRM.netcore (Manifest 0.91) ...
And it fixed it. As of now, can login, and execute powershell command successfully ;)
btw, I have closed the #4389
Thank you so much
tlisiecki commentedon Jul 29, 2017
Laurent Prat (@LaurentPrat) You`re most welcome :)
Jan Egil Ring (@janegilring) id doesn`t work for me either, but I get some different Exception
janegilring commentedon Jul 29, 2017
Tomasz Lisiecki (@tlisiecki) Thanks for confirming. Forgot to mention that I ran PS Core on Windows 10, which is likely why we got slightly different error messages (you seem to be running a different OS).
FYI: I`ve submitted an issue in the Azure PowerShell repository
LarrysGIT commentedon Aug 8, 2017
Tried hundred of times finally made 1 step, after installed azurerm.netcore module, just import modules end with "netcore".
Get-Module -ListAvailable azurerm*netcore | Import-ModulePSVersion
4c74356b41 commentedon Aug 14, 2017
Steve Lee (@SteveL-MSFT) hey there, do you know why each time i run azure powershell it prompts for datacollection? it honestly looks like a bug. the '/home/user/.config/Windows Azure Powershell/AzureDataCollectionProfile.json' file is there and contains:
{"enableAzureDataCollection":true}, yet each time i open new session and run azure cmdlets it prompts if i want to collect dataSteveL-MSFT commentedon Aug 14, 2017
Gleb Boushev (@4c74356b41) don't know, best to open an issue in their repo