Get-AzContainerRegistry cmdlet throws error when $PSModuleAutoLoadingPreference is set to None #27014
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Container Registry
customer-reported
needs-team-attention
This issue needs attention from Azure service team or SDK team
Description
I want to explicitly load the modules I use and have disabled autoloading by setting $PSModuleAutoloadingPreference='None' in my profile. Most Az cmdlets works as expected but Az.ContainerRegistry doesn't play well with this approach.
When I run Get-AzContainerRegistry cmdlet it fails with error
Issue script & Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: