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

Can't import newest Az modules with Windows PowerShell 5.1 #4594

Closed
6 tasks done
o-l-a-v opened this issue May 23, 2023 · 2 comments
Closed
6 tasks done

Can't import newest Az modules with Windows PowerShell 5.1 #4594

o-l-a-v opened this issue May 23, 2023 · 2 comments
Assignees
Labels
Issue-Bug A bug to squash. Resolution-Duplicate Will close automatically.

Comments

@o-l-a-v
Copy link

o-l-a-v commented May 23, 2023

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all open and closed issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
  • If this is a security issue, I have read the security issue reporting guidance.

Summary

Since Az.Accounts v2.12.2, VSCode + vscode-powershell + Windows PowerShell fails to load other Az.* modules, like Az.Resources.

  • Works if using vscode-powershell + PowerShell 7.3.
  • Works if using Windows PowerShell 5.1 terminal.
  • Works if using PowerShell ISE.

Automation Account in Azure has the same problem, the maintainers over at https://github.com/Azure/azure-powershell blamed Automation Account for it. I asked "what about vscode-powershell" but got no answers, so opening a ticket here too.

Here's the issue over at mentioned repo:

PowerShell Version

Windows PowerShell 5.1 x64

Visual Studio Code Version

1.78.2

Extension Version

v2023.5.0

Steps to Reproduce

Install Az v10, which includes Az.Accounts v2.12.3 and Az.Resources v6.7.0.
Set vscode-powershell to use Windows PowerShell 5.1, confirm with $PSVersionTable.

Write the following: Import-Module -Name 'Az.Accounts','Az.Resources, it fails.

Visuals

No response

Logs

Output for import-module
PS > Register-AzModule : The type initializer for 'Microsoft.Azure.Commands.Common.AzModule' threw an exception.
At C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\MSGraph.Autorest\Az.MSGraph.psm1:49 char:13
+   $VTable = Register-AzModule
+             ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Register-AzModule], TypeInitializationException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.Common.RegisterAzModule
 
Register-AzModule : The type initializer for 'Microsoft.Azure.Commands.Common.AzModule' threw an exception.
At C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\Authorization.Autorest\Az.Authorization.psm1:49 char:13
+   $VTable = Register-AzModule
+             ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Register-AzModule], TypeInitializationException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.Common.RegisterAzModule

PS >
Output for import-module -verbose
PS > Import-Module -Name 'Az.Accounts','Az.Resources' -Verbose
VERBOSE: Loading module from path 'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Az.Accounts.psd1'.
VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions.
VERBOSE: Loading 'Assembly' from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.AssemblyLoading.dll'.
VERBOSE: Loading 'Assembly' from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.AssemblyLoading.dll'.
VERBOSE: Loading 'Assembly' from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Authentication.Abstractions.
dll'.
VERBOSE: Loading 'Assembly' from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Authentication.Abstractions.
dll'.
VERBOSE: Loading 'Assembly' from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Authentication.dll'.
VERBOSE: Loading 'Assembly' from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Authentication.dll'.
VERBOSE: Loading 'Assembly' from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Authenticators.dll'.
VERBOSE: Loading 'Assembly' from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Authenticators.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Authentication.ResourceManag 
er.dll'.
VERBOSE: Loading 'Assembly' from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Authentication.ResourceManag 
er.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Clients.Authorization.dll'.  
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Clients.Authorization.dll'.  
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Clients.Compute.dll'.        
VERBOSE: Loading 'Assembly' from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Clients.Compute.dll'.        
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Clients.Graph.Rbac.dll'.     
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Clients.Graph.Rbac.dll'.     
VERBOSE: Loading 'Assembly' from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Clients.Monitor.dll'.        
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Clients.Monitor.dll'.        
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Clients.Network.dll'.        
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Clients.Network.dll'.        
VERBOSE: Loading 'Assembly' from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Clients.PolicyInsights.dll'. 
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Clients.PolicyInsights.dll'. 
VERBOSE: Loading 'Assembly' from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Clients.ResourceManager.dll' 
.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Clients.ResourceManager.dll' 
.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Common.dll'.
VERBOSE: Loading 'Assembly' from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Common.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Storage.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Storage.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Clients.Storage.Management.d 
ll'.
VERBOSE: Loading 'Assembly' from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Clients.Storage.Management.d 
ll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Clients.KeyVault.dll'.       
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Clients.KeyVault.dll'.       
VERBOSE: Loading 'Assembly' from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Clients.Websites.dll'.       
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Clients.Websites.dll'.       
VERBOSE: Loading 'Assembly' from path 'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Hyak.Common.dll'. 
VERBOSE: Loading 'Assembly' from path 'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Hyak.Common.dll'. 
VERBOSE: Loading 'Assembly' from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.ApplicationInsights.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.ApplicationInsights.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.Common.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.Common.dll'.
VERBOSE: Loading 'Assembly' from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Rest.ClientRuntime.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Rest.ClientRuntime.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Rest.ClientRuntime.Azure.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Rest.ClientRuntime.Azure.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.WindowsAzure.Storage.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.WindowsAzure.Storage.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.WindowsAzure.Storage.DataMovement.dll'.       
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.WindowsAzure.Storage.DataMovement.dll'.       
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Clients.Aks.dll'.
VERBOSE: Loading 'Assembly' from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Clients.Aks.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Strategies.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Strategies.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Common.Share.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Microsoft.Azure.PowerShell.Common.Share.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\FuzzySharp.dll'.  
VERBOSE: Loading 'Assembly' from path 'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\FuzzySharp.dll'.  
VERBOSE: Loading 'FormatsToProcess' from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Accounts.format.ps1xml'.
VERBOSE: Loading 'FormatsToProcess' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Accounts.generated.format.ps1xml'.
VERBOSE: Loading module from path 'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Accounts\2.12.3\Az.Accounts.psm1'.
VERBOSE: Exporting function 'Test-DotNet'.
VERBOSE: Exporting function 'Preload-Assembly'.
VERBOSE: Exporting function 'Write-InstallationCheckToFile'.
VERBOSE: Exporting cmdlet 'Register-AzModule'.
VERBOSE: Exporting cmdlet 'Clear-AzConfig'.
VERBOSE: Exporting cmdlet 'Export-AzConfig'.
VERBOSE: Exporting cmdlet 'Get-AzConfig'.
VERBOSE: Exporting cmdlet 'Import-AzConfig'.
VERBOSE: Exporting cmdlet 'Update-AzConfig'.
VERBOSE: Exporting cmdlet 'Connect-AzAccount'.
VERBOSE: Exporting cmdlet 'Disconnect-AzAccount'.
VERBOSE: Exporting cmdlet 'Get-AzContext'.
VERBOSE: Exporting cmdlet 'Import-AzContext'.
VERBOSE: Exporting cmdlet 'Save-AzContext'.
VERBOSE: Exporting cmdlet 'Set-AzContext'.
VERBOSE: Exporting cmdlet 'Disable-AzDataCollection'.
VERBOSE: Exporting cmdlet 'Enable-AzDataCollection'.
VERBOSE: Exporting cmdlet 'Add-AzEnvironment'.
VERBOSE: Exporting cmdlet 'Get-AzEnvironment'.
VERBOSE: Exporting cmdlet 'Remove-AzEnvironment'.
VERBOSE: Exporting cmdlet 'Set-AzEnvironment'.
VERBOSE: Exporting cmdlet 'Send-Feedback'.
VERBOSE: Exporting cmdlet 'Get-AzSubscription'.
VERBOSE: Exporting cmdlet 'Get-AzTenant'.
VERBOSE: Exporting cmdlet 'Get-AzAccessToken'.
VERBOSE: Exporting cmdlet 'Uninstall-AzureRm'.
VERBOSE: Exporting cmdlet 'Invoke-AzRestMethod'.
VERBOSE: Exporting cmdlet 'Open-AzSurveyLink'.
VERBOSE: Exporting cmdlet 'Resolve-AzError'.
VERBOSE: Exporting cmdlet 'Clear-AzDefault'.
VERBOSE: Exporting cmdlet 'Get-AzDefault'.
VERBOSE: Exporting cmdlet 'Set-AzDefault'.
VERBOSE: Exporting cmdlet 'Disable-AzureRmAlias'.
VERBOSE: Exporting cmdlet 'Enable-AzureRmAlias'.
VERBOSE: Exporting cmdlet 'Disable-AzContextAutosave'.
VERBOSE: Exporting cmdlet 'Enable-AzContextAutosave'.
VERBOSE: Exporting cmdlet 'Get-AzContextAutosaveSetting'.
VERBOSE: Exporting cmdlet 'Clear-AzContext'.
VERBOSE: Exporting cmdlet 'Remove-AzContext'.
VERBOSE: Exporting cmdlet 'Rename-AzContext'.
VERBOSE: Exporting cmdlet 'Select-AzContext'.
VERBOSE: Exporting alias 'Login-AzAccount'.
VERBOSE: Exporting alias 'Login-AzureRmAccount'.
VERBOSE: Exporting alias 'Add-AzAccount'.
VERBOSE: Exporting alias 'Logout-AzAccount'.
VERBOSE: Exporting alias 'Logout-AzureRmAccount'.
VERBOSE: Exporting alias 'Remove-AzAccount'.
VERBOSE: Exporting alias 'Save-AzProfile'.
VERBOSE: Exporting alias 'Select-AzSubscription'.
VERBOSE: Exporting alias 'Get-AzureRmDomain'.
VERBOSE: Exporting alias 'Get-AzDomain'.
VERBOSE: Exporting alias 'Invoke-AzRest'.
VERBOSE: Exporting alias 'Resolve-Error'.
VERBOSE: Importing cmdlet 'Add-AzEnvironment'.
VERBOSE: Importing cmdlet 'Clear-AzConfig'.
VERBOSE: Importing cmdlet 'Clear-AzContext'.
VERBOSE: Importing cmdlet 'Clear-AzDefault'.
VERBOSE: Importing cmdlet 'Connect-AzAccount'.
VERBOSE: Importing cmdlet 'Disable-AzContextAutosave'.
VERBOSE: Importing cmdlet 'Disable-AzDataCollection'.
VERBOSE: Importing cmdlet 'Disable-AzureRmAlias'.
VERBOSE: Importing cmdlet 'Disconnect-AzAccount'.
VERBOSE: Importing cmdlet 'Enable-AzContextAutosave'.
VERBOSE: Importing cmdlet 'Enable-AzDataCollection'.
VERBOSE: Importing cmdlet 'Enable-AzureRmAlias'.
VERBOSE: Importing cmdlet 'Export-AzConfig'.
VERBOSE: Importing cmdlet 'Get-AzAccessToken'.
VERBOSE: Importing cmdlet 'Get-AzConfig'.
VERBOSE: Importing cmdlet 'Get-AzContext'.
VERBOSE: Importing cmdlet 'Get-AzContextAutosaveSetting'.
VERBOSE: Importing cmdlet 'Get-AzDefault'.
VERBOSE: Importing cmdlet 'Get-AzEnvironment'.
VERBOSE: Importing cmdlet 'Get-AzSubscription'.
VERBOSE: Importing cmdlet 'Get-AzTenant'.
VERBOSE: Importing cmdlet 'Import-AzConfig'.
VERBOSE: Importing cmdlet 'Import-AzContext'.
VERBOSE: Importing cmdlet 'Invoke-AzRestMethod'.
VERBOSE: Importing cmdlet 'Open-AzSurveyLink'.
VERBOSE: Importing cmdlet 'Register-AzModule'.
VERBOSE: Importing cmdlet 'Remove-AzContext'.
VERBOSE: Importing cmdlet 'Remove-AzEnvironment'.
VERBOSE: Importing cmdlet 'Rename-AzContext'.
VERBOSE: Importing cmdlet 'Resolve-AzError'.
VERBOSE: Importing cmdlet 'Save-AzContext'.
VERBOSE: Importing cmdlet 'Select-AzContext'.
VERBOSE: Importing cmdlet 'Send-Feedback'.
VERBOSE: Importing cmdlet 'Set-AzContext'.
VERBOSE: Importing cmdlet 'Set-AzDefault'.
VERBOSE: Importing cmdlet 'Set-AzEnvironment'.
VERBOSE: Importing cmdlet 'Uninstall-AzureRm'.
VERBOSE: Importing cmdlet 'Update-AzConfig'.
VERBOSE: Importing alias 'Add-AzAccount'.
VERBOSE: Importing alias 'Get-AzDomain'.
VERBOSE: Importing alias 'Invoke-AzRest'.
VERBOSE: Importing alias 'Login-AzAccount'.
VERBOSE: Importing alias 'Logout-AzAccount'.
VERBOSE: Importing alias 'Remove-AzAccount'.
VERBOSE: Importing alias 'Resolve-Error'.
VERBOSE: Importing alias 'Save-AzProfile'.
VERBOSE: Importing alias 'Select-AzSubscription'.
VERBOSE: Loading module from path 'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\Az.Resources.psd1'.   
VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions.     
VERBOSE: Loading 'Assembly' from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\Microsoft.Azure.Management.Authorization.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\Microsoft.Azure.Management.Authorization.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\Microsoft.Azure.Management.ResourceManager.dll'.        
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\Microsoft.Azure.Management.ResourceManager.dll'.        
VERBOSE: Loading 'Assembly' from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\Microsoft.Azure.Management.ManagementGroups.dll'.       
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\Microsoft.Azure.Management.ManagementGroups.dll'.       
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\Microsoft.Extensions.Caching.Abstractions.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\Microsoft.Extensions.Caching.Abstractions.dll'.
VERBOSE: Loading 'Assembly' from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\Microsoft.Extensions.Caching.Memory.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\Microsoft.Extensions.Caching.Memory.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\.vscode\extensions\ms-vscode.powershell-2023.5.0\modules\PowerShellEditorServices\bin\Common\Microsoft.Extensions.Dep 
endencyInjection.Abstractions.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\.vscode\extensions\ms-vscode.powershell-2023.5.0\modules\PowerShellEditorServices\bin\Common\Microsoft.Extensions.Dep 
endencyInjection.Abstractions.dll'.
VERBOSE: Loading 'Assembly' from path 
'C:\Users\ORB\.vscode\extensions\ms-vscode.powershell-2023.5.0\modules\PowerShellEditorServices\bin\Common\Microsoft.Extensions.Opt 
ions.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\.vscode\extensions\ms-vscode.powershell-2023.5.0\modules\PowerShellEditorServices\bin\Common\Microsoft.Extensions.Opt 
ions.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\.vscode\extensions\ms-vscode.powershell-2023.5.0\modules\PowerShellEditorServices\bin\Common\Microsoft.Extensions.Pri 
mitives.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\.vscode\extensions\ms-vscode.powershell-2023.5.0\modules\PowerShellEditorServices\bin\Common\Microsoft.Extensions.Pri 
mitives.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\.vscode\extensions\ms-vscode.powershell-2023.5.0\modules\PowerShellEditorServices\bin\Common\System.Runtime.CompilerS 
ervices.Unsafe.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\.vscode\extensions\ms-vscode.powershell-2023.5.0\modules\PowerShellEditorServices\bin\Common\System.Runtime.CompilerS 
ervices.Unsafe.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\MSGraph.Autorest\bin\Az.MSGraph.private.dll'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\MSGraph.Autorest\bin\Az.MSGraph.private.dll'.
VERBOSE: Loading 'Assembly' from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\Authorization.Autorest\bin\Az.Authorization.private.dll 
'.
VERBOSE: Loading 'Assembly' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\Authorization.Autorest\bin\Az.Authorization.private.dll 
'.
VERBOSE: Loading 'FormatsToProcess' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\Resources.format.ps1xml'.
VERBOSE: Loading 'FormatsToProcess' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\ResourceManager.format.ps1xml'.
VERBOSE: Loading 'FormatsToProcess' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\ResourceManager.generated.format.ps1xml'.
VERBOSE: Loading 'FormatsToProcess' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\Tags.format.ps1xml'.
VERBOSE: Loading 'FormatsToProcess' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\MSGraph.Autorest\Az.MSGraph.format.ps1xml'.
VERBOSE: Loading 'FormatsToProcess' from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\Authorization.Autorest\Az.Authorization.format.ps1xml'. 
VERBOSE: Loading module from path 
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\MSGraph.Autorest\Az.MSGraph.psm1'.
Register-AzModule : The type initializer for 'Microsoft.Azure.Commands.Common.AzModule' threw an exception.
At C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\MSGraph.Autorest\Az.MSGraph.psm1:49 char:13
+   $VTable = Register-AzModule
+             ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Register-AzModule], TypeInitializationException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.Common.RegisterAzModule

VERBOSE: Importing function 'Add-AzADAppPermission'.
VERBOSE: Importing function 'Add-AzADGroupMember'.
VERBOSE: Importing function 'Get-AzADAppCredential'.
VERBOSE: Importing function 'Get-AzADAppFederatedCredential'.
VERBOSE: Importing function 'Get-AzADApplication'.
VERBOSE: Importing function 'Get-AzADAppPermission'.
VERBOSE: Importing function 'Get-AzADGroup'.
VERBOSE: Importing function 'Get-AzADGroupMember'.
VERBOSE: Importing function 'Get-AzADOrganization'.
VERBOSE: Importing function 'Get-AzADServicePrincipal'.
VERBOSE: Importing function 'Get-AzADSpCredential'.
VERBOSE: Importing function 'Get-AzADUser'.
VERBOSE: Importing function 'New-AzADAppCredential'.
VERBOSE: Importing function 'New-AzADAppFederatedCredential'.
VERBOSE: Importing function 'New-AzADApplication'.
VERBOSE: Importing function 'New-AzADGroup'.
VERBOSE: Importing function 'New-AzADServicePrincipal'.
VERBOSE: Importing function 'New-AzADSpCredential'.
VERBOSE: Importing function 'New-AzADUser'.
VERBOSE: Importing function 'Remove-AzADAppCredential'.
VERBOSE: Importing function 'Remove-AzADAppFederatedCredential'.
VERBOSE: Importing function 'Remove-AzADApplication'.
VERBOSE: Importing function 'Remove-AzADAppPermission'.
VERBOSE: Importing function 'Remove-AzADGroup'.
VERBOSE: Importing function 'Remove-AzADGroupMember'.
VERBOSE: Importing function 'Remove-AzADServicePrincipal'.
VERBOSE: Importing function 'Remove-AzADSpCredential'.
VERBOSE: Importing function 'Remove-AzADUser'.
VERBOSE: Importing function 'Update-AzADAppFederatedCredential'.
VERBOSE: Importing function 'Update-AzADApplication'.
VERBOSE: Importing function 'Update-AzADGroup'.
VERBOSE: Importing function 'Update-AzADServicePrincipal'.
VERBOSE: Importing function 'Update-AzADUser'.
VERBOSE: Importing alias 'Get-AzADServicePrincipalCredential'.
VERBOSE: Importing alias 'New-AzADServicePrincipalCredential'.
VERBOSE: Importing alias 'Remove-AzADServicePrincipalCredential'.
VERBOSE: Importing alias 'Set-AzADApplication'.
VERBOSE: Importing alias 'Set-AzADServicePrincipal'.
VERBOSE: Importing alias 'Set-AzADUser'.
VERBOSE: Loading module from path
'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\Authorization.Autorest\Az.Authorization.psm1'.
Register-AzModule : The type initializer for 'Microsoft.Azure.Commands.Common.AzModule' threw an exception.
At C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\Authorization.Autorest\Az.Authorization.psm1:49       
char:13
+   $VTable = Register-AzModule
+             ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Register-AzModule], TypeInitializationException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.Common.RegisterAzModule

VERBOSE: Importing function 'Get-AzRoleAssignmentSchedule'.
VERBOSE: Importing function 'Get-AzRoleAssignmentScheduleInstance'.
VERBOSE: Importing function 'Get-AzRoleAssignmentScheduleRequest'.
VERBOSE: Importing function 'Get-AzRoleEligibilitySchedule'.
VERBOSE: Importing function 'Get-AzRoleEligibilityScheduleInstance'.
VERBOSE: Importing function 'Get-AzRoleEligibilityScheduleRequest'.
VERBOSE: Importing function 'Get-AzRoleEligibleChildResource'.
VERBOSE: Importing function 'Get-AzRoleManagementPolicy'.
VERBOSE: Importing function 'Get-AzRoleManagementPolicyAssignment'.
VERBOSE: Importing function 'New-AzRoleAssignmentScheduleRequest'.
VERBOSE: Importing function 'New-AzRoleEligibilityScheduleRequest'.
VERBOSE: Importing function 'New-AzRoleManagementPolicyAssignment'.
VERBOSE: Importing function 'Remove-AzRoleManagementPolicy'.
VERBOSE: Importing function 'Remove-AzRoleManagementPolicyAssignment'.
VERBOSE: Importing function 'Stop-AzRoleAssignmentScheduleRequest'.
VERBOSE: Importing function 'Stop-AzRoleEligibilityScheduleRequest'.
VERBOSE: Importing function 'Update-AzRoleManagementPolicy'.
VERBOSE: Loading module from path 'C:\Users\ORB\AppData\Local\Microsoft\PowerShell\Modules\Az.Resources\6.7.0\Az.Resources.psm1'.   
VERBOSE: Exporting function 'Add-AzADAppPermission'.
VERBOSE: Exporting function 'Add-AzADGroupMember'.
VERBOSE: Exporting function 'Get-AzADAppCredential'.
VERBOSE: Exporting function 'Get-AzADAppFederatedCredential'.
VERBOSE: Exporting function 'Get-AzADApplication'.
VERBOSE: Exporting function 'Get-AzADAppPermission'.
VERBOSE: Exporting function 'Get-AzADGroup'.
VERBOSE: Exporting function 'Get-AzADGroupMember'.
VERBOSE: Exporting function 'Get-AzADOrganization'.
VERBOSE: Exporting function 'Get-AzADServicePrincipal'.
VERBOSE: Exporting function 'Get-AzADSpCredential'.
VERBOSE: Exporting function 'Get-AzADUser'.
VERBOSE: Exporting function 'New-AzADAppCredential'.
VERBOSE: Exporting function 'New-AzADAppFederatedCredential'.
VERBOSE: Exporting function 'New-AzADApplication'.
VERBOSE: Exporting function 'New-AzADGroup'.
VERBOSE: Exporting function 'New-AzADServicePrincipal'.
VERBOSE: Exporting function 'New-AzADSpCredential'.
VERBOSE: Exporting function 'New-AzADUser'.
VERBOSE: Exporting function 'Remove-AzADAppCredential'.
VERBOSE: Exporting function 'Remove-AzADAppFederatedCredential'.
VERBOSE: Exporting function 'Remove-AzADApplication'.
VERBOSE: Exporting function 'Remove-AzADAppPermission'.
VERBOSE: Exporting function 'Remove-AzADGroup'.
VERBOSE: Exporting function 'Remove-AzADGroupMember'.
VERBOSE: Exporting function 'Remove-AzADServicePrincipal'.
VERBOSE: Exporting function 'Remove-AzADSpCredential'.
VERBOSE: Exporting function 'Remove-AzADUser'.
VERBOSE: Exporting function 'Update-AzADAppFederatedCredential'.
VERBOSE: Exporting function 'Update-AzADApplication'.
VERBOSE: Exporting function 'Update-AzADGroup'.
VERBOSE: Exporting function 'Update-AzADServicePrincipal'.
VERBOSE: Exporting function 'Update-AzADUser'.
VERBOSE: Exporting function 'Get-AzRoleAssignmentSchedule'.
VERBOSE: Exporting function 'Get-AzRoleAssignmentScheduleInstance'.
VERBOSE: Exporting function 'Get-AzRoleAssignmentScheduleRequest'.
VERBOSE: Exporting function 'Get-AzRoleEligibilitySchedule'.
VERBOSE: Exporting function 'Get-AzRoleEligibilityScheduleInstance'.
VERBOSE: Exporting function 'Get-AzRoleEligibilityScheduleRequest'.
VERBOSE: Exporting function 'Get-AzRoleEligibleChildResource'.
VERBOSE: Exporting function 'Get-AzRoleManagementPolicy'.
VERBOSE: Exporting function 'Get-AzRoleManagementPolicyAssignment'.
VERBOSE: Exporting function 'New-AzRoleAssignmentScheduleRequest'.
VERBOSE: Exporting function 'New-AzRoleEligibilityScheduleRequest'.
VERBOSE: Exporting function 'New-AzRoleManagementPolicyAssignment'.
VERBOSE: Exporting function 'Remove-AzRoleManagementPolicy'.
VERBOSE: Exporting function 'Remove-AzRoleManagementPolicyAssignment'.
VERBOSE: Exporting function 'Stop-AzRoleAssignmentScheduleRequest'.
VERBOSE: Exporting function 'Stop-AzRoleEligibilityScheduleRequest'.
VERBOSE: Exporting function 'Update-AzRoleManagementPolicy'.
VERBOSE: Exporting function 'Test-DotNet'.
VERBOSE: Exporting function 'Preload-Assembly'.
VERBOSE: Exporting cmdlet 'Get-AzDenyAssignment'.
VERBOSE: Exporting cmdlet 'Get-AzProviderOperation'.
VERBOSE: Exporting cmdlet 'Get-AzRoleAssignment'.
VERBOSE: Exporting cmdlet 'New-AzRoleAssignment'.
VERBOSE: Exporting cmdlet 'Remove-AzRoleAssignment'.
VERBOSE: Exporting cmdlet 'Set-AzRoleAssignment'.
VERBOSE: Exporting cmdlet 'Get-AzRoleDefinition'.
VERBOSE: Exporting cmdlet 'New-AzRoleDefinition'.
VERBOSE: Exporting cmdlet 'Remove-AzRoleDefinition'.
VERBOSE: Exporting cmdlet 'Set-AzRoleDefinition'.
VERBOSE: Exporting cmdlet 'Remove-AzPrivateLinkAssociation'.
VERBOSE: Exporting cmdlet 'Remove-AzResourceManagementPrivateLink'.
VERBOSE: Exporting cmdlet 'Get-AzPrivateLinkAssociation'.
VERBOSE: Exporting cmdlet 'Get-AzResourceManagementPrivateLink'.
VERBOSE: Exporting cmdlet 'New-AzPrivateLinkAssociation'.
VERBOSE: Exporting cmdlet 'New-AzResourceManagementPrivateLink'.
VERBOSE: Exporting cmdlet 'Get-AzManagementGroupEntity'.
VERBOSE: Exporting cmdlet 'Get-AzManagementGroup'.
VERBOSE: Exporting cmdlet 'Get-AzTenantBackfillStatus'.
VERBOSE: Exporting cmdlet 'Get-AzManagementGroupHierarchySetting'.
VERBOSE: Exporting cmdlet 'Get-AzManagementGroupNameAvailability'.
VERBOSE: Exporting cmdlet 'Get-AzManagementGroupSubscription'.
VERBOSE: Exporting cmdlet 'New-AzManagementGroup'.
VERBOSE: Exporting cmdlet 'New-AzManagementGroupHierarchySetting'.
VERBOSE: Exporting cmdlet 'New-AzManagementGroupSubscription'.
VERBOSE: Exporting cmdlet 'Remove-AzManagementGroup'.
VERBOSE: Exporting cmdlet 'Remove-AzManagementGroupHierarchySetting'.
VERBOSE: Exporting cmdlet 'Remove-AzManagementGroupSubscription'.
VERBOSE: Exporting cmdlet 'Start-AzTenantBackfill'.
VERBOSE: Exporting cmdlet 'Update-AzManagementGroup'.
VERBOSE: Exporting cmdlet 'Update-AzManagementGroupHierarchySetting'.
VERBOSE: Exporting cmdlet 'Remove-AzResourceGroup'.
VERBOSE: Exporting cmdlet 'Get-AzDeploymentScript'.
VERBOSE: Exporting cmdlet 'Get-AzDeploymentScriptLog'.
VERBOSE: Exporting cmdlet 'Save-AzDeploymentScriptLog'.
VERBOSE: Exporting cmdlet 'Get-AzManagementGroupDeployment'.
VERBOSE: Exporting cmdlet 'Get-AzManagementGroupDeploymentOperation'.
VERBOSE: Exporting cmdlet 'Get-AzManagementGroupDeploymentWhatIfResult'.
VERBOSE: Exporting cmdlet 'Get-AzDeployment'.
VERBOSE: Exporting cmdlet 'Get-AzDeploymentOperation'.
VERBOSE: Exporting cmdlet 'Get-AzDeploymentWhatIfResult'.
VERBOSE: Exporting cmdlet 'Get-AzTenantDeployment'.
VERBOSE: Exporting cmdlet 'Get-AzTenantDeploymentOperation'.
VERBOSE: Exporting cmdlet 'Get-AzTenantDeploymentWhatIfResult'.
VERBOSE: Exporting cmdlet 'New-AzManagementGroupDeployment'.
VERBOSE: Exporting cmdlet 'New-AzDeployment'.
VERBOSE: Exporting cmdlet 'New-AzTenantDeployment'.
VERBOSE: Exporting cmdlet 'Remove-AzManagementGroupDeployment'.
VERBOSE: Exporting cmdlet 'Remove-AzDeployment'.
VERBOSE: Exporting cmdlet 'Remove-AzTenantDeployment'.
VERBOSE: Exporting cmdlet 'Save-AzManagementGroupDeploymentTemplate'.
VERBOSE: Exporting cmdlet 'Save-AzDeploymentTemplate'.
VERBOSE: Exporting cmdlet 'Save-AzTenantDeploymentTemplate'.
VERBOSE: Exporting cmdlet 'Stop-AzManagementGroupDeployment'.
VERBOSE: Exporting cmdlet 'Stop-AzDeployment'.
VERBOSE: Exporting cmdlet 'Stop-AzTenantDeployment'.
VERBOSE: Exporting cmdlet 'Test-AzManagementGroupDeployment'.
VERBOSE: Exporting cmdlet 'Test-AzDeployment'.
VERBOSE: Exporting cmdlet 'Test-AzTenantDeployment'.
VERBOSE: Exporting cmdlet 'Get-AzProviderFeature'.
VERBOSE: Exporting cmdlet 'Get-AzProviderPreviewFeature'.
VERBOSE: Exporting cmdlet 'Register-AzProviderFeature'.
VERBOSE: Exporting cmdlet 'Register-AzProviderPreviewFeature'.
VERBOSE: Exporting cmdlet 'Unregister-AzProviderFeature'.
VERBOSE: Exporting cmdlet 'Unregister-AzProviderPreviewFeature'.
VERBOSE: Exporting cmdlet 'Get-AzLocation'.
VERBOSE: Exporting cmdlet 'Get-AzResourceLock'.
VERBOSE: Exporting cmdlet 'New-AzResourceLock'.
VERBOSE: Exporting cmdlet 'Remove-AzResourceLock'.
VERBOSE: Exporting cmdlet 'Set-AzResourceLock'.
VERBOSE: Exporting cmdlet 'Get-AzManagedApplication'.
VERBOSE: Exporting cmdlet 'Get-AzManagedApplicationDefinition'.
VERBOSE: Exporting cmdlet 'New-AzManagedApplication'.
VERBOSE: Exporting cmdlet 'New-AzManagedApplicationDefinition'.
VERBOSE: Exporting cmdlet 'Remove-AzManagedApplication'.
VERBOSE: Exporting cmdlet 'Remove-AzManagedApplicationDefinition'.
VERBOSE: Exporting cmdlet 'Set-AzManagedApplication'.
VERBOSE: Exporting cmdlet 'Set-AzManagedApplicationDefinition'.
VERBOSE: Exporting cmdlet 'Get-AzPolicyAlias'.
VERBOSE: Exporting cmdlet 'Get-AzPolicyAssignment'.
VERBOSE: Exporting cmdlet 'Get-AzPolicyDefinition'.
VERBOSE: Exporting cmdlet 'Get-AzPolicyExemption'.
VERBOSE: Exporting cmdlet 'Get-AzPolicySetDefinition'.
VERBOSE: Exporting cmdlet 'New-AzPolicyAssignment'.
VERBOSE: Exporting cmdlet 'New-AzPolicyDefinition'.
VERBOSE: Exporting cmdlet 'New-AzPolicyExemption'.
VERBOSE: Exporting cmdlet 'New-AzPolicySetDefinition'.
VERBOSE: Exporting cmdlet 'Remove-AzPolicyAssignment'.
VERBOSE: Exporting cmdlet 'Remove-AzPolicyDefinition'.
VERBOSE: Exporting cmdlet 'Remove-AzPolicyExemption'.
VERBOSE: Exporting cmdlet 'Remove-AzPolicySetDefinition'.
VERBOSE: Exporting cmdlet 'Set-AzPolicyAssignment'.
VERBOSE: Exporting cmdlet 'Set-AzPolicyDefinition'.
VERBOSE: Exporting cmdlet 'Set-AzPolicyExemption'.
VERBOSE: Exporting cmdlet 'Set-AzPolicySetDefinition'.
VERBOSE: Exporting cmdlet 'Get-AzResourceProvider'.
VERBOSE: Exporting cmdlet 'Register-AzResourceProvider'.
VERBOSE: Exporting cmdlet 'Unregister-AzResourceProvider'.
VERBOSE: Exporting cmdlet 'Get-AzResourceGroupDeployment'.
VERBOSE: Exporting cmdlet 'Get-AzResourceGroupDeploymentOperation'.
VERBOSE: Exporting cmdlet 'Get-AzResourceGroupDeploymentWhatIfResult'.
VERBOSE: Exporting cmdlet 'New-AzResourceGroupDeployment'.
VERBOSE: Exporting cmdlet 'Remove-AzResourceGroupDeployment'.
VERBOSE: Exporting cmdlet 'Save-AzResourceGroupDeploymentTemplate'.
VERBOSE: Exporting cmdlet 'Stop-AzResourceGroupDeployment'.
VERBOSE: Exporting cmdlet 'Test-AzResourceGroupDeployment'.
VERBOSE: Exporting cmdlet 'Export-AzResourceGroup'.
VERBOSE: Exporting cmdlet 'Get-AzResourceGroup'.
VERBOSE: Exporting cmdlet 'New-AzResourceGroup'.
VERBOSE: Exporting cmdlet 'Set-AzResourceGroup'.
VERBOSE: Exporting cmdlet 'Get-AzResource'.
VERBOSE: Exporting cmdlet 'Invoke-AzResourceAction'.
VERBOSE: Exporting cmdlet 'Move-AzResource'.
VERBOSE: Exporting cmdlet 'New-AzResource'.
VERBOSE: Exporting cmdlet 'Remove-AzResource'.
VERBOSE: Exporting cmdlet 'Set-AzResource'.
VERBOSE: Exporting cmdlet 'Export-AzTemplateSpec'.
VERBOSE: Exporting cmdlet 'Get-AzTemplateSpec'.
VERBOSE: Exporting cmdlet 'New-AzTemplateSpec'.
VERBOSE: Exporting cmdlet 'Remove-AzTemplateSpec'.
VERBOSE: Exporting cmdlet 'Set-AzTemplateSpec'.
VERBOSE: Exporting cmdlet 'Remove-AzDeploymentScript'.
VERBOSE: Exporting cmdlet 'Publish-AzBicepModule'.
VERBOSE: Exporting cmdlet 'Get-AzTag'.
VERBOSE: Exporting cmdlet 'New-AzTag'.
VERBOSE: Exporting cmdlet 'Remove-AzTag'.
VERBOSE: Exporting cmdlet 'Update-AzTag'.
VERBOSE: Exporting alias 'Get-AzADServicePrincipalCredential'.
VERBOSE: Exporting alias 'New-AzADServicePrincipalCredential'.
VERBOSE: Exporting alias 'Remove-AzADServicePrincipalCredential'.
VERBOSE: Exporting alias 'Set-AzADApplication'.
VERBOSE: Exporting alias 'Set-AzADServicePrincipal'.
VERBOSE: Exporting alias 'Set-AzADUser'.
VERBOSE: Exporting alias 'Get-AzResourceProviderAction'.
VERBOSE: Exporting alias 'Get-AzSubscriptionDeployment'.
VERBOSE: Exporting alias 'Get-AzSubscriptionDeploymentOperation'.
VERBOSE: Exporting alias 'Get-AzSubscriptionDeploymentWhatIfResult'.
VERBOSE: Exporting alias 'New-AzSubscriptionDeployment'.
VERBOSE: Exporting alias 'Remove-AzSubscriptionDeployment'.
VERBOSE: Exporting alias 'Save-AzSubscriptionDeploymentTemplate'.
VERBOSE: Exporting alias 'Stop-AzSubscriptionDeployment'.
VERBOSE: Exporting alias 'Test-AzSubscriptionDeployment'.
VERBOSE: Importing cmdlet 'Export-AzResourceGroup'.
VERBOSE: Importing cmdlet 'Export-AzTemplateSpec'.
VERBOSE: Importing cmdlet 'Get-AzDenyAssignment'.
VERBOSE: Importing cmdlet 'Get-AzDeployment'.
VERBOSE: Importing cmdlet 'Get-AzDeploymentOperation'.
VERBOSE: Importing cmdlet 'Get-AzDeploymentScript'.
VERBOSE: Importing cmdlet 'Get-AzDeploymentScriptLog'.
VERBOSE: Importing cmdlet 'Get-AzDeploymentWhatIfResult'.
VERBOSE: Importing cmdlet 'Get-AzLocation'.
VERBOSE: Importing cmdlet 'Get-AzManagedApplication'.
VERBOSE: Importing cmdlet 'Get-AzManagedApplicationDefinition'.
VERBOSE: Importing cmdlet 'Get-AzManagementGroup'.
VERBOSE: Importing cmdlet 'Get-AzManagementGroupDeployment'.
VERBOSE: Importing cmdlet 'Get-AzManagementGroupDeploymentOperation'.
VERBOSE: Importing cmdlet 'Get-AzManagementGroupDeploymentWhatIfResult'.
VERBOSE: Importing cmdlet 'Get-AzManagementGroupEntity'.
VERBOSE: Importing cmdlet 'Get-AzManagementGroupHierarchySetting'.
VERBOSE: Importing cmdlet 'Get-AzManagementGroupNameAvailability'.
VERBOSE: Importing cmdlet 'Get-AzManagementGroupSubscription'.
VERBOSE: Importing cmdlet 'Get-AzPolicyAlias'.
VERBOSE: Importing cmdlet 'Get-AzPolicyAssignment'.
VERBOSE: Importing cmdlet 'Get-AzPolicyDefinition'.
VERBOSE: Importing cmdlet 'Get-AzPolicyExemption'.
VERBOSE: Importing cmdlet 'Get-AzPolicySetDefinition'.
VERBOSE: Importing cmdlet 'Get-AzPrivateLinkAssociation'.
VERBOSE: Importing cmdlet 'Get-AzProviderFeature'.
VERBOSE: Importing cmdlet 'Get-AzProviderOperation'.
VERBOSE: Importing cmdlet 'Get-AzProviderPreviewFeature'.
VERBOSE: Importing cmdlet 'Get-AzResource'.
VERBOSE: Importing cmdlet 'Get-AzResourceGroup'.
VERBOSE: Importing cmdlet 'Get-AzResourceGroupDeployment'.
VERBOSE: Importing cmdlet 'Get-AzResourceGroupDeploymentOperation'.
VERBOSE: Importing cmdlet 'Get-AzResourceGroupDeploymentWhatIfResult'.
VERBOSE: Importing cmdlet 'Get-AzResourceLock'.
VERBOSE: Importing cmdlet 'Get-AzResourceManagementPrivateLink'.
VERBOSE: Importing cmdlet 'Get-AzResourceProvider'.
VERBOSE: Importing cmdlet 'Get-AzRoleAssignment'.
VERBOSE: Importing cmdlet 'Get-AzRoleDefinition'.
VERBOSE: Importing cmdlet 'Get-AzTag'.
VERBOSE: Importing cmdlet 'Get-AzTemplateSpec'.
VERBOSE: Importing cmdlet 'Get-AzTenantBackfillStatus'.
VERBOSE: Importing cmdlet 'Get-AzTenantDeployment'.
VERBOSE: Importing cmdlet 'Get-AzTenantDeploymentOperation'.
VERBOSE: Importing cmdlet 'Get-AzTenantDeploymentWhatIfResult'.
VERBOSE: Importing cmdlet 'Invoke-AzResourceAction'.
VERBOSE: Importing cmdlet 'Move-AzResource'.
VERBOSE: Importing cmdlet 'New-AzDeployment'.
VERBOSE: Importing cmdlet 'New-AzManagedApplication'.
VERBOSE: Importing cmdlet 'New-AzManagedApplicationDefinition'.
VERBOSE: Importing cmdlet 'New-AzManagementGroup'.
VERBOSE: Importing cmdlet 'New-AzManagementGroupDeployment'.
VERBOSE: Importing cmdlet 'New-AzManagementGroupHierarchySetting'.
VERBOSE: Importing cmdlet 'New-AzManagementGroupSubscription'.
VERBOSE: Importing cmdlet 'New-AzPolicyAssignment'.
VERBOSE: Importing cmdlet 'New-AzPolicyDefinition'.
VERBOSE: Importing cmdlet 'New-AzPolicyExemption'.
VERBOSE: Importing cmdlet 'New-AzPolicySetDefinition'.
VERBOSE: Importing cmdlet 'New-AzPrivateLinkAssociation'.
VERBOSE: Importing cmdlet 'New-AzResource'.
VERBOSE: Importing cmdlet 'New-AzResourceGroup'.
VERBOSE: Importing cmdlet 'New-AzResourceGroupDeployment'.
VERBOSE: Importing cmdlet 'New-AzResourceLock'.
VERBOSE: Importing cmdlet 'New-AzResourceManagementPrivateLink'.
VERBOSE: Importing cmdlet 'New-AzRoleAssignment'.
VERBOSE: Importing cmdlet 'New-AzRoleDefinition'.
VERBOSE: Importing cmdlet 'New-AzTag'.
VERBOSE: Importing cmdlet 'New-AzTemplateSpec'.
VERBOSE: Importing cmdlet 'New-AzTenantDeployment'.
VERBOSE: Importing cmdlet 'Publish-AzBicepModule'.
VERBOSE: Importing cmdlet 'Register-AzProviderFeature'.
VERBOSE: Importing cmdlet 'Register-AzProviderPreviewFeature'.
VERBOSE: Importing cmdlet 'Register-AzResourceProvider'.
VERBOSE: Importing cmdlet 'Remove-AzDeployment'.
VERBOSE: Importing cmdlet 'Remove-AzDeploymentScript'.
VERBOSE: Importing cmdlet 'Remove-AzManagedApplication'.
VERBOSE: Importing cmdlet 'Remove-AzManagedApplicationDefinition'.
VERBOSE: Importing cmdlet 'Remove-AzManagementGroup'.
VERBOSE: Importing cmdlet 'Remove-AzManagementGroupDeployment'.
VERBOSE: Importing cmdlet 'Remove-AzManagementGroupHierarchySetting'.
VERBOSE: Importing cmdlet 'Remove-AzManagementGroupSubscription'.
VERBOSE: Importing cmdlet 'Remove-AzPolicyAssignment'.
VERBOSE: Importing cmdlet 'Remove-AzPolicyDefinition'.
VERBOSE: Importing cmdlet 'Remove-AzPolicyExemption'.
VERBOSE: Importing cmdlet 'Remove-AzPolicySetDefinition'.
VERBOSE: Importing cmdlet 'Remove-AzPrivateLinkAssociation'.
VERBOSE: Importing cmdlet 'Remove-AzResource'.
VERBOSE: Importing cmdlet 'Remove-AzResourceGroup'.
VERBOSE: Importing cmdlet 'Remove-AzResourceGroupDeployment'.
VERBOSE: Importing cmdlet 'Remove-AzResourceLock'.
VERBOSE: Importing cmdlet 'Remove-AzResourceManagementPrivateLink'.
VERBOSE: Importing cmdlet 'Remove-AzRoleAssignment'.
VERBOSE: Importing cmdlet 'Remove-AzRoleDefinition'.
VERBOSE: Importing cmdlet 'Remove-AzTag'.
VERBOSE: Importing cmdlet 'Remove-AzTemplateSpec'.
VERBOSE: Importing cmdlet 'Remove-AzTenantDeployment'.
VERBOSE: Importing cmdlet 'Save-AzDeploymentScriptLog'.
VERBOSE: Importing cmdlet 'Save-AzDeploymentTemplate'.
VERBOSE: Importing cmdlet 'Save-AzManagementGroupDeploymentTemplate'.
VERBOSE: Importing cmdlet 'Save-AzResourceGroupDeploymentTemplate'.
VERBOSE: Importing cmdlet 'Save-AzTenantDeploymentTemplate'.
VERBOSE: Importing cmdlet 'Set-AzManagedApplication'.
VERBOSE: Importing cmdlet 'Set-AzManagedApplicationDefinition'.
VERBOSE: Importing cmdlet 'Set-AzPolicyAssignment'.
VERBOSE: Importing cmdlet 'Set-AzPolicyDefinition'.
VERBOSE: Importing cmdlet 'Set-AzPolicyExemption'.
VERBOSE: Importing cmdlet 'Set-AzPolicySetDefinition'.
VERBOSE: Importing cmdlet 'Set-AzResource'.
VERBOSE: Importing cmdlet 'Set-AzResourceGroup'.
VERBOSE: Importing cmdlet 'Set-AzResourceLock'.
VERBOSE: Importing cmdlet 'Set-AzRoleAssignment'.
VERBOSE: Importing cmdlet 'Set-AzRoleDefinition'.
VERBOSE: Importing cmdlet 'Set-AzTemplateSpec'.
VERBOSE: Importing cmdlet 'Start-AzTenantBackfill'.
VERBOSE: Importing cmdlet 'Stop-AzDeployment'.
VERBOSE: Importing cmdlet 'Stop-AzManagementGroupDeployment'.
VERBOSE: Importing cmdlet 'Stop-AzResourceGroupDeployment'.
VERBOSE: Importing cmdlet 'Stop-AzTenantDeployment'.
VERBOSE: Importing cmdlet 'Test-AzDeployment'.
VERBOSE: Importing cmdlet 'Test-AzManagementGroupDeployment'.
VERBOSE: Importing cmdlet 'Test-AzResourceGroupDeployment'.
VERBOSE: Importing cmdlet 'Test-AzTenantDeployment'.
VERBOSE: Importing cmdlet 'Unregister-AzProviderFeature'.
VERBOSE: Importing cmdlet 'Unregister-AzProviderPreviewFeature'.
VERBOSE: Importing cmdlet 'Unregister-AzResourceProvider'.
VERBOSE: Importing cmdlet 'Update-AzManagementGroup'.
VERBOSE: Importing cmdlet 'Update-AzManagementGroupHierarchySetting'.
VERBOSE: Importing cmdlet 'Update-AzTag'.
VERBOSE: Importing function 'Add-AzADAppPermission'.
VERBOSE: Importing function 'Add-AzADGroupMember'.
VERBOSE: Importing function 'Get-AzADAppCredential'.
VERBOSE: Importing function 'Get-AzADAppFederatedCredential'.
VERBOSE: Importing function 'Get-AzADApplication'.
VERBOSE: Importing function 'Get-AzADAppPermission'.
VERBOSE: Importing function 'Get-AzADGroup'.
VERBOSE: Importing function 'Get-AzADGroupMember'.
VERBOSE: Importing function 'Get-AzADOrganization'.
VERBOSE: Importing function 'Get-AzADServicePrincipal'.
VERBOSE: Importing function 'Get-AzADSpCredential'.
VERBOSE: Importing function 'Get-AzADUser'.
VERBOSE: Importing function 'Get-AzRoleAssignmentSchedule'.
VERBOSE: Importing function 'Get-AzRoleAssignmentScheduleInstance'.
VERBOSE: Importing function 'Get-AzRoleAssignmentScheduleRequest'.
VERBOSE: Importing function 'Get-AzRoleEligibilitySchedule'.
VERBOSE: Importing function 'Get-AzRoleEligibilityScheduleInstance'.
VERBOSE: Importing function 'Get-AzRoleEligibilityScheduleRequest'.
VERBOSE: Importing function 'Get-AzRoleEligibleChildResource'.
VERBOSE: Importing function 'Get-AzRoleManagementPolicy'.
VERBOSE: Importing function 'Get-AzRoleManagementPolicyAssignment'.
VERBOSE: Importing function 'New-AzADAppCredential'.
VERBOSE: Importing function 'New-AzADAppFederatedCredential'.
VERBOSE: Importing function 'New-AzADApplication'.
VERBOSE: Importing function 'New-AzADGroup'.
VERBOSE: Importing function 'New-AzADServicePrincipal'.
VERBOSE: Importing function 'New-AzADSpCredential'.
VERBOSE: Importing function 'New-AzADUser'.
VERBOSE: Importing function 'New-AzRoleAssignmentScheduleRequest'.
VERBOSE: Importing function 'New-AzRoleEligibilityScheduleRequest'.
VERBOSE: Importing function 'New-AzRoleManagementPolicyAssignment'.
VERBOSE: Importing function 'Remove-AzADAppCredential'.
VERBOSE: Importing function 'Remove-AzADAppFederatedCredential'.
VERBOSE: Importing function 'Remove-AzADApplication'.
VERBOSE: Importing function 'Remove-AzADAppPermission'.
VERBOSE: Importing function 'Remove-AzADGroup'.
VERBOSE: Importing function 'Remove-AzADGroupMember'.
VERBOSE: Importing function 'Remove-AzADServicePrincipal'.
VERBOSE: Importing function 'Remove-AzADSpCredential'.
VERBOSE: Importing function 'Remove-AzADUser'.
VERBOSE: Importing function 'Remove-AzRoleManagementPolicy'.
VERBOSE: Importing function 'Remove-AzRoleManagementPolicyAssignment'.
VERBOSE: Importing function 'Stop-AzRoleAssignmentScheduleRequest'.
VERBOSE: Importing function 'Stop-AzRoleEligibilityScheduleRequest'.
VERBOSE: Importing function 'Update-AzADAppFederatedCredential'.
VERBOSE: Importing function 'Update-AzADApplication'.
VERBOSE: Importing function 'Update-AzADGroup'.
VERBOSE: Importing function 'Update-AzADServicePrincipal'.
VERBOSE: Importing function 'Update-AzADUser'.
VERBOSE: Importing function 'Update-AzRoleManagementPolicy'.
VERBOSE: Importing alias 'Get-AzADServicePrincipalCredential'.
VERBOSE: Importing alias 'Get-AzResourceProviderAction'.
VERBOSE: Importing alias 'Get-AzSubscriptionDeployment'.
VERBOSE: Importing alias 'Get-AzSubscriptionDeploymentOperation'.
VERBOSE: Importing alias 'Get-AzSubscriptionDeploymentWhatIfResult'.
VERBOSE: Importing alias 'New-AzADServicePrincipalCredential'.
VERBOSE: Importing alias 'New-AzSubscriptionDeployment'.
VERBOSE: Importing alias 'Remove-AzADServicePrincipalCredential'.
VERBOSE: Importing alias 'Remove-AzSubscriptionDeployment'.
VERBOSE: Importing alias 'Save-AzSubscriptionDeploymentTemplate'.
VERBOSE: Importing alias 'Set-AzADApplication'.
VERBOSE: Importing alias 'Set-AzADServicePrincipal'.
VERBOSE: Importing alias 'Set-AzADUser'.
VERBOSE: Importing alias 'Stop-AzSubscriptionDeployment'.
VERBOSE: Importing alias 'Test-AzSubscriptionDeployment'.

PS >
Output for resolve-azerror
PS > Resolve-AzError
Resolve-AzError : Method 'get_SerializationSettings' in type 
'Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient' from assembly
'Microsoft.Azure.PowerShell.Clients.ResourceManager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not    
have an implementation.
At line:1 char:1
+ Resolve-AzError
+ ~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Resolve-AzError], TypeLoadException
    + FullyQualifiedErrorId : System.TypeLoadException,Microsoft.Azure.Commands.Profile.Errors.ResolveError

PS >
@SydneyhSmith
Copy link
Collaborator

Thanks @o-l-a-v we looked into this and unfortunately it looks like an issue with the GAC that we can't resolve, as you note the workaround is to use PowerShell 7

@SydneyhSmith SydneyhSmith added Resolution-Duplicate Will close automatically. and removed Needs: Triage Maintainer attention needed! labels Jun 28, 2023
@ghost
Copy link

ghost commented Jun 29, 2023

This issue has been marked as duplicate and has not had any activity in a day. It has been closed for housekeeping purposes.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug A bug to squash. Resolution-Duplicate Will close automatically.
Projects
None yet
Development

No branches or pull requests

3 participants