Az and AzureStack (Az) modules do not load assemblies when used with PartnerCenter modules in PS7 - Assembly with same name is already loaded - Still does not work under 3.0.10
See original GitHub issueWindows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\Users\Administrator> docker run -ti --rm azmoduleazshtest2:v1 pwsh
PowerShell 7.0.1
Copyright (c) Microsoft Corporation. All rights reserved.
https://aka.ms/powershell
Type 'help' to get help.
PS C:\> uninstall-Module -Name PartnerCenter -Verbose -Force
VERBOSE: Acquiring providers for assembly: C:\program files\powershell\7\Modules\PackageManagement\coreclr\netstandard2.
0\Microsoft.PackageManagement.MetaProvider.PowerShell.dll
VERBOSE: Acquiring providers for assembly: C:\program files\powershell\7\Modules\PackageManagement\coreclr\netstandard2.
0\Microsoft.PackageManagement.CoreProviders.dll
VERBOSE: Acquiring providers for assembly: C:\program files\powershell\7\Modules\PackageManagement\coreclr\netstandard2.
0\Microsoft.PackageManagement.ArchiverProviders.dll
VERBOSE: Acquiring providers for assembly: C:\program files\powershell\7\Modules\PackageManagement\coreclr\netstandard2.
0\Microsoft.PackageManagement.NuGetProvider.dll
VERBOSE: Performing the operation "Uninstall-Module" on target "Version '3.0.9' of module 'PartnerCenter'".
VERBOSE: Successfully uninstalled the module 'PartnerCenter' from module base 'C:\Program Files\PowerShell\Modules\Partn
erCenter\3.0.9'.
PS C:\> install-Module -Name PartnerCenter -Verbose -Force
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: The -Repository parameter was not specified. PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PartnerCenter'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'PartnerCenter'.
VERBOSE: Performing the operation "Install-Module" on target "Version '3.0.10' of module 'PartnerCenter'".
VERBOSE: The installation scope is specified to be 'CurrentUser'.
VERBOSE: The specified module will be installed in 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules'.
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'PartnerCenter' with version '3.0.10' from the repository 'https://www.powershellgallery.com
/api/v2'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PartnerCenter'' for ''.
VERBOSE: InstallPackage' - name='PartnerCenter', version='3.0.10',destination='C:\Users\ContainerAdministrator\AppData\L
ocal\Temp\1681523444'
VERBOSE: DownloadPackage' - name='PartnerCenter', version='3.0.10',destination='C:\Users\ContainerAdministrator\AppData\
Local\Temp\1681523444\PartnerCenter.3.0.10\PartnerCenter.3.0.10.nupkg', uri='https://www.powershellgallery.com/api/v2/pa
ckage/PartnerCenter/3.0.10'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/PartnerCenter/3.0.10'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/PartnerCenter/3.0.10'.
VERBOSE: Completed downloading 'PartnerCenter'.
VERBOSE: InstallPackageLocal' - name='PartnerCenter', version='3.0.10',destination='C:\Users\ContainerAdministrator\AppD
ata\Local\Temp\1681523444'
VERBOSE: Validating the 'PartnerCenter' module contents under 'C:\Users\ContainerAdministrator\AppData\Local\Temp\168152
3444\PartnerCenter.3.0.10' path.
VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\ContainerAdministrator\AppData\Lo
cal\Temp\1681523444\PartnerCenter.3.0.10'.
VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module '
PartnerCenter'.
VERBOSE: Catalog file 'PartnerCenter.cat' is not found in the contents of the module 'PartnerCenter' being installed.
VERBOSE: Valid authenticode signature found in the file 'PartnerCenter.psd1' for the module 'PartnerCenter'.
VERBOSE: For publisher validation, current module 'PartnerCenter' with version '3.0.10' with publisher name 'CN=Microsof
t Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Roo
t Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsof
t: 'True'.
VERBOSE: For publisher validation, using the previously-installed module 'PartnerCenter' with version '3.0.9' under 'C:\
Program Files\WindowsPowerShell\Modules\PartnerCenter\3.0.9' with publisher name 'CN=Microsoft Corporation, O=Microsoft
Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 201
1, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
VERBOSE: Authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the n
ew module 'PartnerCenter' with version '3.0.10' matches with the authenticode issuer 'CN=Microsoft Corporation, O=Micros
oft Corporation, L=Redmond, S=Washington, C=US' of the previously-installed module 'PartnerCenter' with version '3.0.9'.
VERBOSE: Checking for possible command collisions for the module 'PartnerCenter' commands.
VERBOSE: Module 'PartnerCenter' was installed successfully to path 'C:\Users\ContainerAdministrator\Documents\PowerShell
\Modules\PartnerCenter\3.0.10'.
PS C:\> Import-Module AzureStack -Verbose
VERBOSE: Loading module from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\AzureStack\2.0.0\AzureSt
ack.psd1'.
VERBOSE: Populating RepositorySourceLocation property for module AzureStack.
VERBOSE: Loading module from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\AzureStack\2.0.0\AzureSt
ack.psm1'.
WARNING: Preview version of AzureStack module is loaded, Future versions may have breaking changes
PS C:\> Import-Module PartnerCenter -Verbose
VERBOSE: Loading module from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.10\Par
tnerCenter.psd1'.
VERBOSE: Loading 'Assembly' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.10
\Microsoft.Store.PartnerCenter.PowerShell.dll'.
VERBOSE: Loading 'Executable' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.
10\Microsoft.Store.PartnerCenter.PowerShell.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.10
\Microsoft.Store.PartnerCenter.Azure.Billing.dll'.
VERBOSE: Loading 'Executable' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.
10\Microsoft.Store.PartnerCenter.Azure.Billing.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.10
\Microsoft.Store.PartnerCenter.Azure.Subscription.dll'.
VERBOSE: Loading 'Executable' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.
10\Microsoft.Store.PartnerCenter.Azure.Subscription.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.10
\Microsoft.Graph.Beta.dll'.
VERBOSE: Loading 'Executable' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.
10\Microsoft.Graph.Beta.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.10
\Microsoft.Graph.Core.dll'.
VERBOSE: Loading 'Executable' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.
10\Microsoft.Graph.Core.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.10
\Microsoft.Extensions.Caching.Abstractions.dll'.
VERBOSE: Loading 'Executable' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.
10\Microsoft.Extensions.Caching.Abstractions.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.10
\Microsoft.Extensions.Caching.Memory.dll'.
VERBOSE: Loading 'Executable' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.
10\Microsoft.Extensions.Caching.Memory.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.10
\Microsoft.Extensions.DependencyInjection.Abstractions.dll'.
VERBOSE: Loading 'Executable' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.
10\Microsoft.Extensions.DependencyInjection.Abstractions.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.10
\Microsoft.Extensions.Options.dll'.
VERBOSE: Loading 'Executable' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.
10\Microsoft.Extensions.Options.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.10
\Microsoft.Extensions.Primitives.dll'.
VERBOSE: Loading 'Executable' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.
10\Microsoft.Extensions.Primitives.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.10
\Microsoft.Identity.Client.dll'.
VERBOSE: Loading 'Executable' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.
10\Microsoft.Identity.Client.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.10
\Microsoft.Identity.Client.Extensions.Msal.dll'.
VERBOSE: Loading 'Executable' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.
10\Microsoft.Identity.Client.Extensions.Msal.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.10
\Microsoft.IdentityModel.JsonWebTokens.dll'.
VERBOSE: Loading 'Executable' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.
10\Microsoft.IdentityModel.JsonWebTokens.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.10
\Microsoft.IdentityModel.Logging.dll'.
VERBOSE: Loading 'Executable' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.
10\Microsoft.IdentityModel.Logging.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.10
\Microsoft.IdentityModel.Tokens.dll'.
VERBOSE: Loading 'Executable' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.
10\Microsoft.IdentityModel.Tokens.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.10
\Microsoft.Rest.ClientRuntime.dll'.
VERBOSE: Loading 'Executable' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.
10\Microsoft.Rest.ClientRuntime.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.10
\Microsoft.Store.PartnerCenter.dll'.
VERBOSE: Loading 'Executable' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.
10\Microsoft.Store.PartnerCenter.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.10
\System.Runtime.CompilerServices.Unsafe.dll'.
VERBOSE: Loading 'Executable' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCenter\3.0.
10\System.Runtime.CompilerServices.Unsafe.dll'.
VERBOSE: Loading 'FormatsToProcess' from path 'C:\Users\ContainerAdministrator\Documents\PowerShell\Modules\PartnerCente
r\3.0.10\Microsoft.Store.PartnerCenter.PowerShell.format.ps1xml'.
Import-Module: Assembly with same name is already loaded
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:13 (8 by maintainers)
Top Results From Across the Web
Az and AzureStack (Az) modules do not load assemblies ...
Az and AzureStack (Az) modules do not load assemblies when used with PartnerCenter modules in PS7 - Assembly with same name is already...
Read more >Unable to install Az powershell module with PS7 on ...
Trying to install az module over existing modules will give this error and it appears to be the cause for this issue. The...
Read more >How to fix "Assembly with same name is already loaded ...
Hi, I am deploying a few Azure resources using az PowerShell and MgGraph PowerShell modules, using deployment script in an ARM Template, ...
Read more >Install PowerShell Az module for Azure Stack Hub
This article explains how to install the Azure PowerShell Az and compatible Azure Stack Hub administrator modules using PowerShellGet. The Az ...
Read more >module conflict when both the older AzureRM and newer ...
This situation can cause Azure Automation to start a runbook job by using only AzureRM modules, and then start another job by using...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It is a waste of time to try to get response from Isaih. He has moved on to another team as far as I know. Microsoft official statement is that this was open-source project and never supported by Microsoft. I have reached Microsoft several times trough different channels and response was always that. I am trying to get them at least may be someone to update the repo saying that currently there is no development done and if someone wants to chime in on that work they can help me. I doubt that someone will really commit to this if it is outside of Microsoft.
At this point I am seriously considering of abandoning PartnerCenter and trying to find other ways to do things. I do not see anyone picking the development on this module.