Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.21k stars 3.81k forks source link

Exception when calling Get-AzureRmProviderOperation #1363

Closed pcgeek86 closed 8 years ago

pcgeek86 commented 8 years ago

image

PS C:\Windows\system32> Get-AzureRmProviderOperation Microsoft.Cache/*
Get-AzureRmProviderOperation : Could not load type 'Microsoft.Azure.Management.Resources.Models.ProviderOperationsMetadata' from assembly 'Microsoft.Azure.ResourceManager, 
Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
At line:1 char:1
+ Get-AzureRmProviderOperation Microsoft.Cache/*
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-AzureRmProviderOperation], TypeLoadException
    + FullyQualifiedErrorId : System.TypeLoadException,Microsoft.Azure.Commands.Resources.GetAzureProviderOperationCommand

Cheers, Trevor Sullivan Microsoft MVP: PowerShell http://trevorsullivan.net http://twitter.com/pcgeek86

markcowl commented 8 years ago

@pcgeek86 Looks like an assembly version conflict. Can you loist out your available modules to help diagnose?

pcgeek86 commented 8 years ago

@markcowl Yep, here you go mate. Could this have to do with having multiple versions of the module installed?

    Directory: C:\Users\trevorsullivan\Documents\WindowsPowerShell\Modules

ModuleType Version  Name                            ExportedCommands                                                
---------- -------  ----                            ----------------                                                
Binary     3.1.16.1 AWSPowerShell                   {Add-ASInstances, Add-ASLoadBalancer, Complete-ASLifecycleAct...
Binary     3.1.9.0  AWSPowerShell                   {Add-ASInstances, Add-ASLoadBalancer, Complete-ASLifecycleAct...
Script     0.1.2    AzureAutomationAuthoringToolkit {Get-AutomationVariable, Get-AutomationCertificate, Get-Autom...
Script     0.1      AzureExt                        {Invoke-AzureRemoteDesktop, Invoke-AzureRmRemoteDesktop, Publ...
Script     1.0.3    AzureRM                         {Test-AdminRights, CheckIncompatibleVersion, Install-ModuleWi...
Script     1.0.2    AzureRM                         {Test-AdminRights, CheckIncompatibleVersion, Install-ModuleWi...
Manifest   1.0.33   cConfigMgr2012                                                                                  
Script     0.2      FormatMarkdown                  {Format-Markdown, fmd}                                          
Script     1.6.1.2  PSFTP                           {Send-FTPItem, Receive-FTPItem, Move-FTPItem}                   
Script     1.0      PSQuickParts                    {Get-QuickPart, Add-QuickPart, gqp}                             
Script     0.1      ReleaseManagement               New-CustomerPackage                                             
Script     1.0      TabExpansion++                  {Get-ArgumentCompleter, Get-CommandTreeCompletion, Get-Comman...
Script     1.5.0.0  xDSCResourceDesigner            {New-xDscResourceProperty, New-xDscResource, Update-xDscResou...

    Directory: C:\Windows\system32\WindowsPowerShell\v1.0\Modules

ModuleType Version Name                             ExportedCommands                                                
---------- ------- ----                             ----------------                                                
Manifest   1.0.0.0 AppBackgroundTask                {Disable-AppBackgroundTaskDiagnosticLog, Enable-AppBackground...
Manifest   2.0.0.0 AppLocker                        {Get-AppLockerFileInformation, Get-AppLockerPolicy, New-AppLo...
Manifest   2.0.0.0 Appx                             {Add-AppxPackage, Get-AppxPackage, Get-AppxPackageManifest, R...
Script     1.0.0.0 AssignedAccess                   {Clear-AssignedAccess, Get-AssignedAccess, Set-AssignedAccess}  
Manifest   1.0.0.0 BitLocker                        {Unlock-BitLocker, Suspend-BitLocker, Resume-BitLocker, Remov...
Manifest   2.0.0.0 BitsTransfer                     {Add-BitsFile, Complete-BitsTransfer, Get-BitsTransfer, Remov...
Manifest   1.0.0.0 BranchCache                      {Add-BCDataCacheExtension, Clear-BCCache, Disable-BC, Disable...
Manifest   1.0.0.0 CimCmdlets                       {Get-CimAssociatedInstance, Get-CimClass, Get-CimInstance, Ge...
Manifest   1.0.0.0 CIPolicy                         ConvertFrom-CIPolicy                                            
Manifest   1.0     ConfigCI                         {Get-SystemDriver, New-CIPolicyRule, New-CIPolicy, Get-CIPoli...
Manifest   1.0     Defender                         {Get-MpPreference, Set-MpPreference, Add-MpPreference, Remove...
Manifest   1.0.0.0 DirectAccessClientComponents     {Disable-DAManualEntryPointSelection, Enable-DAManualEntryPoi...
Script     3.0     Dism                             {Add-AppxProvisionedPackage, Add-WindowsDriver, Add-WindowsCa...
Manifest   1.0.0.0 DnsClient                        {Resolve-DnsName, Clear-DnsClientCache, Get-DnsClient, Get-Dn...
Manifest   1.0.0.0 EventTracingManagement           {New-EtwTraceSession, Get-EtwTraceSession, Set-EtwTraceSessio...
Binary     2.0.0.0 Hyper-V                          {Add-VMDvdDrive, Add-VMFibreChannelHba, Add-VMGroupMember, Ad...
Binary     1.1     Hyper-V                          {Add-VMDvdDrive, Add-VMFibreChannelHba, Add-VMHardDiskDrive, ...
Script     1.0.0.0 IISAdministration                {Get-IISAppPool, Start-IISCommitDelay, Stop-IISCommitDelay, G...
Manifest   2.0.0.0 International                    {Get-WinDefaultInputMethodOverride, Set-WinDefaultInputMethod...
Manifest   1.0.0.0 iSCSI                            {Get-IscsiTargetPortal, New-IscsiTargetPortal, Remove-IscsiTa...
Script     1.0.0.0 ISE                              {New-IseSnippet, Import-IseSnippet, Get-IseSnippet}             
Manifest   1.0.0.0 Kds                              {Add-KdsRootKey, Get-KdsRootKey, Test-KdsRootKey, Set-KdsConf...
Manifest   1.0.0.0 Microsoft.PowerShell.Archive     {Compress-Archive, Expand-Archive}                              
Manifest   3.0.0.0 Microsoft.PowerShell.Diagnostics {Get-WinEvent, Get-Counter, Import-Counter, Export-Counter...}  
Manifest   3.0.0.0 Microsoft.PowerShell.Host        {Start-Transcript, Stop-Transcript}                             
Manifest   3.1.0.0 Microsoft.PowerShell.Management  {Add-Content, Clear-Content, Clear-ItemProperty, Join-Path...}  
Script     1.0     Microsoft.PowerShell.ODataUtils  Export-ODataEndpointProxy                                       
Manifest   3.0.0.0 Microsoft.PowerShell.Security    {Get-Acl, Set-Acl, Get-PfxCertificate, Get-Credential...}       
Manifest   3.1.0.0 Microsoft.PowerShell.Utility     {Format-List, Format-Custom, Format-Table, Format-Wide...}      
Manifest   3.0.0.0 Microsoft.WSMan.Management       {Disable-WSManCredSSP, Enable-WSManCredSSP, Get-WSManCredSSP,...
Manifest   1.0     MMAgent                          {Disable-MMAgent, Enable-MMAgent, Set-MMAgent, Get-MMAgent...}  
Manifest   1.0.0.0 MsDtc                            {New-DtcDiagnosticTransaction, Complete-DtcDiagnosticTransact...
Manifest   1.0     MSOnline                         {New-MsolServicePrincipalAddresses, New-MsolLicenseOptions, C...
Manifest   1.0     MSOnlineExtended                 {New-MsolServicePrincipalAddresses, New-MsolLicenseOptions, C...
Manifest   2.0.0.0 NetAdapter                       {Disable-NetAdapter, Disable-NetAdapterBinding, Disable-NetAd...
Manifest   1.0.0.0 NetConnection                    {Get-NetConnectionProfile, Set-NetConnectionProfile}            
Manifest   1.0.0.0 NetEventPacketCapture            {New-NetEventSession, Remove-NetEventSession, Get-NetEventSes...
Manifest   2.0.0.0 NetLbfo                          {Add-NetLbfoTeamMember, Add-NetLbfoTeamNic, Get-NetLbfoTeam, ...
Manifest   1.0.0.0 NetNat                           {Get-NetNat, Get-NetNatExternalAddress, Get-NetNatStaticMappi...
Manifest   2.0.0.0 NetQos                           {Get-NetQosPolicy, Set-NetQosPolicy, Remove-NetQosPolicy, New...
Manifest   2.0.0.0 NetSecurity                      {Get-DAPolicyChange, New-NetIPsecAuthProposal, New-NetIPsecMa...
Manifest   1.0.0.0 NetSwitchTeam                    {New-NetSwitchTeam, Remove-NetSwitchTeam, Get-NetSwitchTeam, ...
Manifest   1.0.0.0 NetTCPIP                         {Get-NetIPAddress, Get-NetIPInterface, Get-NetIPv4Protocol, G...
Manifest   1.0.0.0 NetWNV                           {Get-NetVirtualizationProviderAddress, Get-NetVirtualizationG...
Manifest   1.0.0.0 NetworkConnectivityStatus        {Get-DAConnectionStatus, Get-NCSIPolicyConfiguration, Reset-N...
Manifest   1.0.0.0 NetworkSwitchManager             {Disable-NetworkSwitchEthernetPort, Enable-NetworkSwitchEther...
Manifest   1.0.0.0 NetworkTransition                {Add-NetIPHttpsCertBinding, Disable-NetDnsTransitionConfigura...
Manifest   1.0.0.0 PcsvDevice                       {Get-PcsvDevice, Start-PcsvDevice, Stop-PcsvDevice, Restart-P...
Manifest   1.0.0.0 PKI                              {Add-CertificateEnrollmentPolicyServer, Export-Certificate, E...
Manifest   1.0.0.0 PnpDevice                        {Get-PnpDevice, Get-PnpDeviceProperty, Enable-PnpDevice, Disa...
Manifest   1.1     PrintManagement                  {Add-Printer, Add-PrinterDriver, Add-PrinterPort, Get-PrintCo...
Manifest   1.1     PSDesiredStateConfiguration      {Set-DscLocalConfigurationManager, Start-DscConfiguration, Te...
Script     1.0.0.0 PSDiagnostics                    {Disable-PSTrace, Disable-PSWSManCombinedTrace, Disable-WSMan...
Binary     1.1.0.0 PSScheduledJob                   {New-JobTrigger, Add-JobTrigger, Remove-JobTrigger, Get-JobTr...
Manifest   2.0.0.0 PSWorkflow                       {New-PSWorkflowExecutionOption, New-PSWorkflowSession, nwsn}    
Manifest   1.0.0.0 PSWorkflowUtility                Invoke-AsWorkflow                                               
Manifest   1.0.0.0 ScheduledTasks                   {Get-ScheduledTask, Set-ScheduledTask, Register-ScheduledTask...
Manifest   2.0.0.0 SecureBoot                       {Confirm-SecureBootUEFI, Set-SecureBootUEFI, Get-SecureBootUE...
Manifest   2.0.0.0 SmbShare                         {Get-SmbShare, Remove-SmbShare, Set-SmbShare, Block-SmbShareA...
Manifest   2.0.0.0 SmbWitness                       {Get-SmbWitnessClient, Move-SmbWitnessClient, gsmbw, msmbw...}  
Manifest   1.0.0.0 StartLayout                      {Export-StartLayout, Import-StartLayout, Get-StartApps}         
Manifest   2.0.0.0 Storage                          {Add-InitiatorIdToMaskingSet, Add-PartitionAccessPath, Add-Ph...
Manifest   2.0.0.0 TLS                              {New-TlsSessionTicketKey, Enable-TlsSessionTicketKey, Disable...
Manifest   1.0.0.0 TroubleshootingPack              {Get-TroubleshootingPack, Invoke-TroubleshootingPack}           
Manifest   2.0.0.0 TrustedPlatformModule            {Get-Tpm, Initialize-Tpm, Clear-Tpm, Unblock-Tpm...}            
Manifest   2.0.0.0 VpnClient                        {Add-VpnConnection, Set-VpnConnection, Remove-VpnConnection, ...
Manifest   1.0.0.0 Wdac                             {Get-OdbcDriver, Set-OdbcDriver, Get-OdbcDsn, Add-OdbcDsn...}   
Manifest   1.0.0.0 WebAdministration                {Start-WebCommitDelay, Stop-WebCommitDelay, Get-WebConfigurat...
Manifest   1.0.0.0 WindowsDeveloperLicense          {Get-WindowsDeveloperLicense, Show-WindowsDeveloperLicenseReg...
Script     1.0     WindowsErrorReporting            {Enable-WindowsErrorReporting, Disable-WindowsErrorReporting,...
Manifest   1.0.0.0 WindowsSearch                    {Get-WindowsSearchSetting, Set-WindowsSearchSetting}            
Manifest   1.0.0.0 WindowsUpdate                    Get-WindowsUpdateLog                                            

    Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version Name                        ExportedCommands                                                     
---------- ------- ----                        ----------------                                                     
Manifest   1.0.1   Azure.Storage               {Get-AzureStorageBlob, Get-AzureStorageBlobContent, Get-AzureStora...
Manifest   1.0.0   Azure.Storage               {Get-AzureStorageBlob, Get-AzureStorageBlobContent, Get-AzureStora...
Manifest   1.0.1   AzureRM.ApiManagement       {Add-AzureRmApiManagementRegion, Get-AzureRmApiManagementSsoToken,...
Manifest   1.0.0   AzureRM.ApiManagement       {Add-AzureRmApiManagementRegion, Get-AzureRmApiManagementSsoToken,...
Manifest   1.0.1   AzureRM.Automation          {Import-AzureRmAutomationDscNodeConfiguration, Export-AzureRmAutom...
Manifest   1.0.0   AzureRM.Automation          {Import-AzureRmAutomationDscNodeConfiguration, Export-AzureRmAutom...
Manifest   1.0.1   AzureRM.Backup              {Backup-AzureRmBackupItem, Enable-AzureRmBackupContainerReregistra...
Manifest   1.0.0   AzureRM.Backup              {Backup-AzureRmBackupItem, Enable-AzureRmBackupContainerReregistra...
Manifest   1.0.0   AzureRM.Batch               {Remove-AzureRmBatchAccount, Get-AzureRmBatchAccount, Get-AzureRmB...
Manifest   1.1.0   AzureRM.Compute             {Remove-AzureRmAvailabilitySet, Get-AzureRmAvailabilitySet, New-Az...
Manifest   1.0.0   AzureRM.Compute             {Remove-AzureRmAvailabilitySet, Get-AzureRmAvailabilitySet, New-Az...
Manifest   1.0.1   AzureRM.DataFactories       {Remove-AzureRmDataFactory, Get-AzureRmDataFactoryRun, Get-AzureRm...
Manifest   1.0.0   AzureRM.DataLakeAnalytics   {Remove-AzureRmDataLakeAnalyticsCatalogSecret, Set-AzureRmDataLake...
Manifest   1.0.1   AzureRM.DataLakeStore       {Add-AzureRmDataLakeStoreItemContent, Export-AzureRmDataLakeStoreI...
Manifest   1.0.0   AzureRM.DataLakeStore       {Add-AzureRmDataLakeStoreItemContent, Export-AzureRmDataLakeStoreI...
Manifest   1.0.1   AzureRM.Dns                 {Get-AzureRmDnsRecordSet, Remove-AzureRmDnsRecordSet, Set-AzureRmD...
Manifest   1.0.0   AzureRM.Dns                 {Get-AzureRmDnsRecordSet, Remove-AzureRmDnsRecordSet, Set-AzureRmD...
Manifest   1.0.0   AzureRM.HDInsight           {Get-AzureRmHDInsightJob, New-AzureRmHDInsightSqoopJobDefinition, ...
Manifest   1.0.1   AzureRM.Insights            {Add-AlertRule, Get-AlertHistory, Get-AlertRule, Remove-AlertRule...}
Manifest   1.0.0   AzureRM.Insights            {Add-AlertRule, Get-AlertHistory, Get-AlertRule, Remove-AlertRule...}
Manifest   1.1.0   AzureRM.KeyVault            {Get-AzureRmKeyVault, New-AzureRmKeyVault, Remove-AzureRmKeyVault,...
Manifest   1.0.0   AzureRM.KeyVault            {Get-AzureRmKeyVault, New-AzureRmKeyVault, Remove-AzureRmKeyVault,...
Manifest   1.0.0   AzureRM.Network             {Add-AzureRmApplicationGatewayBackendAddressPool, Get-AzureRmAppli...
Manifest   1.0.0   AzureRM.OperationalInsights {Get-AzureRmOperationalInsightsStorageInsight, Set-AzureRmOperatio...
Manifest   1.0.1   AzureRM.profile             {Enable-AzureRmDataCollection, Disable-AzureRmDataCollection, Remo...
Manifest   0.0     AzureRM.profile                                                                                  
Manifest   1.0.2   AzureRM.RecoveryServices    {Get-AzureRmRecoveryServicesVault, Get-AzureRmRecoveryServicesVaul...
Manifest   1.0.1   AzureRM.RedisCache          {Set-AzureRmRedisCache, New-AzureRmRedisCacheKey, Get-AzureRmRedis...
Manifest   1.0.0   AzureRM.RedisCache          {Set-AzureRmRedisCache, New-AzureRmRedisCacheKey, Get-AzureRmRedis...
Manifest   1.0.1   AzureRM.Resources           {Get-AzureRmADGroupMember, Get-AzureRmADGroup, Get-AzureRmADServic...
Manifest   1.0.0   AzureRM.Resources           {Get-AzureRmADGroupMember, Get-AzureRmADGroup, Get-AzureRmADServic...
Manifest   1.1.0   AzureRM.SiteRecovery        {Stop-AzureRmSiteRecoveryJob, Get-AzureRmSiteRecoveryNetwork, Get-...
Manifest   1.0.0   AzureRM.SiteRecovery        {Get-AzureRmSiteRecoveryJob, Resume-AzureRmSiteRecoveryJob, Get-Az...
Manifest   1.0.1   AzureRM.Sql                 {Get-AzureRmSqlCapability, Get-AzureRmSqlDatabaseAuditingPolicy, G...
Manifest   1.0.0   AzureRM.Sql                 {Get-AzureRmSqlCapability, Get-AzureRmSqlDatabaseAuditingPolicy, G...
Manifest   1.0.1   AzureRM.Storage             {Get-AzureRmStorageAccount, Get-AzureRmStorageAccountKey, Get-Azur...
Manifest   1.0.0   AzureRM.Storage             {Get-AzureRmStorageAccount, Get-AzureRmStorageAccountKey, Get-Azur...
Manifest   1.0.1   AzureRM.StreamAnalytics     {Get-AzureRmStreamAnalyticsInput, New-AzureRmStreamAnalyticsInput,...
Manifest   1.0.0   AzureRM.StreamAnalytics     {Get-AzureRmStreamAnalyticsInput, New-AzureRmStreamAnalyticsInput,...
Manifest   1.0.0   AzureRM.Tags                {Remove-AzureRmTag, Get-AzureRmTag, New-AzureRmTag}                  
Manifest   1.0.1   AzureRM.TrafficManager      {Disable-AzureRmTrafficManagerEndpoint, Enable-AzureRmTrafficManag...
Manifest   1.0.0   AzureRM.TrafficManager      {Disable-AzureRmTrafficManagerEndpoint, Enable-AzureRmTrafficManag...
Manifest   1.0.1   AzureRM.UsageAggregates     Get-UsageAggregates                                                  
Manifest   1.0.0   AzureRM.UsageAggregates     Get-UsageAggregates                                                  
Manifest   1.0.0   AzureRM.Websites            {Get-AzureRMAppServicePlanMetrics, Get-AzureRMWebAppSlot, Get-Azur...
Script     6.0     ITDevCon                                                                                         
Script     7.0     MMS2015                                                                                          
Binary     1.0.0.0 PackageManagement           {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource...
Script     3.3.5   Pester                      {Describe, Context, It, Should...}                                   
Script     1.0     PowerShellGet               {Install-Module, Find-Module, Save-Module, Update-Module...}         
Script     1.1     PSReadline                  {Get-PSReadlineKeyHandler, Set-PSReadlineKeyHandler, Remove-PSRead...
hovsepm commented 8 years ago

@pcgeek86 , unable to repro. Please upgrade to the latest version and reopen this bug if it is still happening.

bvirkler commented 8 years ago

I'm getting this same error for Get-AzureRmProviderOperation, even after installing the latest version of Azure Powershell.

Directory: C:\Users\virklba\Documents\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands                                                
---------- -------    ----                                ----------------                                                
Script     1.0        ARM                                 {Connect-ARM, Execute-ARMQuery, Get-ARMDirectories, Get-ARMSu...
Script     0.1.2      AzureAutomationAuthoringToolkit     {Get-AutomationVariable, Get-AutomationCertificate, Get-Autom...
Script     1.0        DushyantGill.AzureResourceManager   {Connect-ARM, Execute-ARMQuery, Get-ARMDirectories, Get-ARMSu...
Script     0.0        Get-PSCredential                    Get-PSCredential                                                
Manifest   1.0        ManageAlertRecipients               {AddAlertRecipient, Set-AlertRecipient, SetAlertRecipient, Se...
Manifest   1.0.0.0    PKI                                 {Add-CertificateEnrollmentPolicyServer, Export-Certificate, E...
Script     0.0        posh-git                            Invoke-NullCoalescing                                           
Script     0.0        PsGet                               {Install-Module, Update-Module, Get-PsGetModuleInfo, Get-PsGe...

    Directory: C:\Windows\system32\WindowsPowerShell\v1.0\Modules

ModuleType Version    Name                                ExportedCommands                                                
---------- -------    ----                                ----------------                                                
Manifest   1.0.0.0    AppLocker                           {Set-AppLockerPolicy, Get-AppLockerPolicy, Test-AppLockerPoli...
Manifest   1.0.0.0    BitsTransfer                        {Add-BitsFile, Remove-BitsTransfer, Complete-BitsTransfer, Ge...
Manifest   1.0.0.0    CimCmdlets                          {Get-CimAssociatedInstance, Get-CimClass, Get-CimInstance, Ge...
Script     1.0.0.0    ISE                                 {New-IseSnippet, Import-IseSnippet, Get-IseSnippet}             
Manifest   3.0.0.0    Microsoft.PowerShell.Diagnostics    {Get-WinEvent, Get-Counter, Import-Counter, Export-Counter...}  
Manifest   3.0.0.0    Microsoft.PowerShell.Host           {Start-Transcript, Stop-Transcript}                             
Manifest   3.1.0.0    Microsoft.PowerShell.Management     {Add-Content, Clear-Content, Clear-ItemProperty, Join-Path...}  
Manifest   3.0.0.0    Microsoft.PowerShell.Security       {Get-Acl, Set-Acl, Get-PfxCertificate, Get-Credential...}       
Manifest   3.1.0.0    Microsoft.PowerShell.Utility        {Format-List, Format-Custom, Format-Table, Format-Wide...}      
Manifest   3.0.0.0    Microsoft.WSMan.Management          {Disable-WSManCredSSP, Enable-WSManCredSSP, Get-WSManCredSSP,...
Manifest   1.0        MSOnline                            {Get-MsolDevice, Remove-MsolDevice, Enable-MsolDevice, Disabl...
Manifest   1.0        MSOnlineExtended                    {Get-MsolDevice, Remove-MsolDevice, Enable-MsolDevice, Disabl...
Binary     1.0        PSDesiredStateConfiguration         {Set-DscLocalConfigurationManager, Start-DscConfiguration, Co...
Script     1.0.0.0    PSDiagnostics                       {Disable-PSTrace, Disable-PSWSManCombinedTrace, Disable-WSMan...
Binary     1.1.0.0    PSScheduledJob                      {New-JobTrigger, Add-JobTrigger, Remove-JobTrigger, Get-JobTr...
Manifest   2.0.0.0    PSWorkflow                          {New-PSWorkflowExecutionOption, New-PSWorkflowSession, nwsn}    
Manifest   1.0.0.0    PSWorkflowUtility                   Invoke-AsWorkflow                                               
Manifest   1.0.0.0    TroubleshootingPack                 {Get-TroubleshootingPack, Invoke-TroubleshootingPack}           

    Directory: C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager

ModuleType Version    Name                                ExportedCommands                                                
---------- -------    ----                                ----------------                                                
Manifest   1.0.3      Azure.Storage                       {Get-AzureStorageBlob, Get-AzureStorageBlobContent, Get-Azure...
Manifest   1.0.3      AzureRM.ApiManagement               {Add-AzureRmApiManagementRegion, Get-AzureRmApiManagementSsoT...
Manifest   1.0.3      AzureRM.Automation                  {Get-AzureRmAutomationJobOutputRecord, Import-AzureRmAutomati...
Manifest   1.0.3      AzureRM.Backup                      {Backup-AzureRmBackupItem, Enable-AzureRmBackupContainerRereg...
Manifest   1.0.3      AzureRM.Batch                       {Remove-AzureRmBatchAccount, Get-AzureRmBatchAccount, Get-Azu...
Manifest   1.2.1      AzureRM.Compute                     {Remove-AzureRmAvailabilitySet, Get-AzureRmAvailabilitySet, N...
Manifest   1.0.3      AzureRM.DataFactories               {Remove-AzureRmDataFactory, Get-AzureRmDataFactoryRun, Get-Az...
Manifest   1.0.3      AzureRM.DataLakeAnalytics           {Remove-AzureRmDataLakeAnalyticsCatalogSecret, Set-AzureRmDat...
Manifest   1.0.3      AzureRM.DataLakeStore               {Add-AzureRmDataLakeStoreItemContent, Export-AzureRmDataLakeS...
Manifest   1.0.3      AzureRM.Dns                         {Get-AzureRmDnsRecordSet, Remove-AzureRmDnsRecordSet, Set-Azu...
Manifest   1.0.4      AzureRM.HDInsight                   {Get-AzureRmHDInsightJob, New-AzureRmHDInsightSqoopJobDefinit...
Manifest   1.0.3      AzureRM.Insights                    {Add-AlertRule, Get-AlertHistory, Get-AlertRule, Remove-Alert...
Manifest   1.1.2      AzureRM.KeyVault                    {Get-AzureRmKeyVault, New-AzureRmKeyVault, Remove-AzureRmKeyV...
Manifest   1.0.3      AzureRM.Network                     {Add-AzureRmApplicationGatewayBackendAddressPool, Get-AzureRm...
Manifest   1.0.3      AzureRM.NotificationHubs            {Get-AzureRmNotificationHubsNamespaceAuthorizationRules, Get-...
Manifest   1.0.3      AzureRM.OperationalInsights         {Get-AzureRmOperationalInsightsStorageInsight, Set-AzureRmOpe...
Manifest   1.0.3      AzureRM.Profile                     {Enable-AzureRmDataCollection, Disable-AzureRmDataCollection,...
Manifest   1.0.4      AzureRM.RecoveryServices            {Get-AzureRmRecoveryServicesVault, Get-AzureRmRecoveryService...
Manifest   1.1.1      AzureRM.RedisCache                  {Remove-AzureRmRedisCacheDiagnostics, Set-AzureRmRedisCacheDi...
Manifest   1.0.3      AzureRM.Resources                   {Get-AzureRmADApplication, Get-AzureRmADGroupMember, Get-Azur...
Manifest   1.1.2      AzureRM.SiteRecovery                {Stop-AzureRmSiteRecoveryJob, Get-AzureRmSiteRecoveryNetwork,...
Manifest   1.0.3      AzureRM.Sql                         {Get-AzureRmSqlDatabaseThreatDetectionPolicy, Set-AzureRmSqlD...
Manifest   1.0.3      AzureRM.Storage                     {Get-AzureRmStorageAccount, Get-AzureRmStorageAccountKey, Get...
Manifest   1.0.3      AzureRM.StreamAnalytics             {Get-AzureRmStreamAnalyticsFunction, Get-AzureRmStreamAnalyti...
Manifest   1.0.3      AzureRM.Tags                        {Remove-AzureRmTag, Get-AzureRmTag, New-AzureRmTag}             
Manifest   1.0.3      AzureRM.TrafficManager              {Disable-AzureRmTrafficManagerEndpoint, Enable-AzureRmTraffic...
Manifest   1.0.3      AzureRM.UsageAggregates             Get-UsageAggregates                                             
Manifest   1.0.3      AzureRM.Websites                    {Get-AzureRmAppServicePlanMetrics, Get-AzureRmWebAppCertifica...

    Directory: C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ServiceManagement

ModuleType Version    Name                                ExportedCommands                                                
---------- -------    ----                                ----------------                                                
Manifest   1.0.3      Azure                               {Disable-AzureServiceProjectRemoteDesktop, Enable-AzureServic...

Also potentially of interest:

$dllPath = "C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager\AzureRM.Resources\Microsoft.Azure.ResourceManager.dll"
PS P:\> [System.Reflection.AssemblyName]::GetAssemblyName($dllPath).Version

Major  Minor  Build  Revision
-----  -----  -----  --------
2      0      0      0       

PS P:\> (Get-ChildItem $dllPath).VersionInfo.FileVersion
2.18.11.0