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

Az module cannot be imported in parallel, locking on AzureRmSurvey.json #19624

Closed
arkintz opened this issue Sep 26, 2022 · 4 comments · Fixed by #19723
Closed

Az module cannot be imported in parallel, locking on AzureRmSurvey.json #19624

arkintz opened this issue Sep 26, 2022 · 4 comments · Fixed by #19723
Assignees
Labels
Accounts Issues in Az.Accounts except authentication related Azure PS Team bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Tracking We will track status and follow internally

Comments

@arkintz
Copy link

arkintz commented Sep 26, 2022

Description

Very similar to 18321 except for it is locking on ~.Azure\AzureRmSurvey.json because it is being used by another process.

Issue script & Debug output

$DebugPreference='Continue'
$jobs = @()
import-module az
$jobs += Start-Job -name "test-1" -ScriptBlock { Import-Module Az }
$jobs += Start-Job -name "test-1" -ScriptBlock { Import-Module Az }
$jobs += Start-Job -name "test-1" -ScriptBlock { Import-Module Az }
$jobs += Start-Job -name "test-1" -ScriptBlock { Import-Module Az }
$jobs += Start-Job -name "test-1" -ScriptBlock { Import-Module Az }
$jobs += Start-Job -name "test-1" -ScriptBlock { Import-Module Az }
$jobs += Start-Job -name "test-1" -ScriptBlock { Import-Module Az }
$jobs += Start-Job -name "test-1" -ScriptBlock { Import-Module Az }
$jobs += Start-Job -name "test-1" -ScriptBlock { Import-Module Az }
$jobs += Start-Job -name "test-1" -ScriptBlock { Import-Module Az }
$jobs += Start-Job -name "test-1" -ScriptBlock { Import-Module Az }
$jobs += Start-Job -name "test-1" -ScriptBlock { Import-Module Az }
$jobs += Start-Job -name "test-1" -ScriptBlock { Import-Module Az }
$jobs += Start-Job -name "test-1" -ScriptBlock { Import-Module Az }
$jobs | Wait-Job
$jobs | Receive-Job

Id     Name            PSJobTypeName   State         HasMoreData     Location             Command                  
--     ----            -------------   -----         -----------     --------             -------                  
15     test-1          BackgroundJob   Completed     True            localhost             Import-Module Az        
17     test-1          BackgroundJob   Completed     True            localhost             Import-Module Az        
19     test-1          BackgroundJob   Completed     True            localhost             Import-Module Az        
21     test-1          BackgroundJob   Completed     True            localhost             Import-Module Az        
23     test-1          BackgroundJob   Completed     True            localhost             Import-Module Az        
25     test-1          BackgroundJob   Completed     True            localhost             Import-Module Az        
27     test-1          BackgroundJob   Completed     True            localhost             Import-Module Az        
29     test-1          BackgroundJob   Completed     True            localhost             Import-Module Az        
31     test-1          BackgroundJob   Completed     True            localhost             Import-Module Az        
33     test-1          BackgroundJob   Completed     True            localhost             Import-Module Az        
35     test-1          BackgroundJob   Completed     True            localhost             Import-Module Az        
37     test-1          BackgroundJob   Completed     True            localhost             Import-Module Az        
39     test-1          BackgroundJob   Completed     True            localhost             Import-Module Az        
41     test-1          BackgroundJob   Completed     True            localhost             Import-Module Az        
WARNING: The names of some imported commands from the module 'Microsoft.Azure.PowerShell.Cmdlets.Network' include unapproved verbs that might make them less discoverable. To find the commands
 with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The names of some imported commands from the module 'Az.Network' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the 
Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The names of some imported commands from the module 'Microsoft.Azure.PowerShell.Cmdlets.Network' include unapproved verbs that might make them less discoverable. To find the commands
 with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The names of some imported commands from the module 'Az.Network' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the 
Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The names of some imported commands from the module 'Microsoft.Azure.PowerShell.Cmdlets.Network' include unapproved verbs that might make them less discoverable. To find the commands
 with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The names of some imported commands from the module 'Az.Network' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the 
Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The names of some imported commands from the module 'Microsoft.Azure.PowerShell.Cmdlets.Network' include unapproved verbs that might make them less discoverable. To find the commands
 with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The names of some imported commands from the module 'Az.Network' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the 
Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The names of some imported commands from the module 'Microsoft.Azure.PowerShell.Cmdlets.Network' include unapproved verbs that might make them less discoverable. To find the commands
 with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The names of some imported commands from the module 'Az.Network' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the 
Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The names of some imported commands from the module 'Microsoft.Azure.PowerShell.Cmdlets.Network' include unapproved verbs that might make them less discoverable. To find the commands
 with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The names of some imported commands from the module 'Az.Network' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the 
Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The names of some imported commands from the module 'Microsoft.Azure.PowerShell.Cmdlets.Network' include unapproved verbs that might make them less discoverable. To find the commands
 with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The names of some imported commands from the module 'Az.Network' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the 
Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The names of some imported commands from the module 'Microsoft.Azure.PowerShell.Cmdlets.Network' include unapproved verbs that might make them less discoverable. To find the commands
 with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The names of some imported commands from the module 'Az.Network' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the 
Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The names of some imported commands from the module 'Microsoft.Azure.PowerShell.Cmdlets.Network' include unapproved verbs that might make them less discoverable. To find the commands
 with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The names of some imported commands from the module 'Az.Network' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the 
Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The names of some imported commands from the module 'Microsoft.Azure.PowerShell.Cmdlets.Network' include unapproved verbs that might make them less discoverable. To find the commands
 with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The names of some imported commands from the module 'Az.Network' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the 
Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The names of some imported commands from the module 'Microsoft.Azure.PowerShell.Cmdlets.Network' include unapproved verbs that might make them less discoverable. To find the commands
 with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The names of some imported commands from the module 'Az.Network' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the 
Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The names of some imported commands from the module 'Microsoft.Azure.PowerShell.Cmdlets.Network' include unapproved verbs that might make them less discoverable. To find the commands
 with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The names of some imported commands from the module 'Az.Network' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the 
Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
The process cannot access the file 'C:\Users\OctoAdmin\.Azure\AzureRmSurvey.json' because it is being used by another process.
    + CategoryInfo          : NotSpecified: (:) [Import-Module], IOException
    + FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Commands.ImportModuleCommand
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
WARNING: The intelligent recommendation feature is in preview. Help us improve it by sharing your experience: https://go.microsoft.com/fwlink/?linkid=2202436
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The names of some imported commands from the module 'Microsoft.Azure.PowerShell.Cmdlets.Network' include unapproved verbs that might make them less discoverable. To find the commands
 with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The names of some imported commands from the module 'Az.Network' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the 
Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost
 
WARNING: The command Register-AzModule is part of Azure PowerShell module "Az.Accounts" and it is not installed. Run "Install-Module Az.Accounts" to install it.
The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that 
the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Register-AzModule:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : localhost

Environment data

Name                           Value                                                                                                                                                          
----                           -----                                                                                                                                                          
PSVersion                      5.1.14393.5127                                                                                                                                                 
PSEdition                      Desktop                                                                                                                                                        
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                                        
BuildVersion                   10.0.14393.5127                                                                                                                                                
CLRVersion                     4.0.30319.42000                                                                                                                                                
WSManStackVersion              3.0                                                                                                                                                            
PSRemotingProtocolVersion      2.3                                                                                                                                                            
SerializationVersion           1.1.0.1

Module versions

ModuleType Version    Name                                ExportedCommands                                                                                                                    
---------- -------    ----                                ----------------                                                                                                                    
Script     8.3.0      az                                                                                                                                                                      
Script     2.10.0     Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault...}                                                            
Script     1.1.2      Az.Advisor                          {Disable-AzAdvisorRecommendation, Enable-AzAdvisorRecommendation, Get-AzAdvisorConfiguration, Get-AzAdvisorRecommendation...}       
Script     4.3.0      Az.Aks                              {Disable-AzAksAddOn, Enable-AzAksAddOn, Get-AzAksCluster, Get-AzAksNodePool...}                                                     
Script     1.1.4      Az.AnalysisServices                 {Add-AzAnalysisServicesAccount, Export-AzAnalysisServicesInstanceLog, Get-AzAnalysisServicesServer, New-AzAnalysisServicesFirewal...
Script     3.0.1      Az.ApiManagement                    {Add-AzApiManagementApiToGateway, Add-AzApiManagementApiToProduct, Add-AzApiManagementProductToGroup, Add-AzApiManagementRegion...} 
Script     1.2.0      Az.AppConfiguration                 {Clear-AzAppConfigurationDeletedStore, Get-AzAppConfigurationDeletedStore, Get-AzAppConfigurationStore, Get-AzAppConfigurationSto...
Script     2.1.0      Az.ApplicationInsights              {Get-AzApplicationInsights, Get-AzApplicationInsightsApiKey, Get-AzApplicationInsightsContinuousExport, Get-AzApplicationInsights...
Script     1.0.0      Az.Attestation                      {Add-AzAttestationPolicySigner, Get-AzAttestation, Get-AzAttestationPolicy, Get-AzAttestationPolicySigners...}                      
Script     1.7.4      Az.Automation                       {Export-AzAutomationDscConfiguration, Export-AzAutomationDscNodeReportContent, Export-AzAutomationRunbook, Get-AzAutomationAccoun...
Script     3.2.1      Az.Batch                            {Disable-AzBatchAutoScale, Disable-AzBatchComputeNodeScheduling, Disable-AzBatchJob, Disable-AzBatchJobSchedule...}                 
Script     2.0.0      Az.Billing                          {Get-AzBillingAccount, Get-AzBillingInvoice, Get-AzBillingPeriod, Get-AzBillingProfile...}                                          
Script     2.1.0      Az.Cdn                              {Clear-AzCdnEndpointContent, Clear-AzFrontDoorCdnEndpointContent, Disable-AzCdnCustomDomainCustomHttps, Enable-AzCdnCustomDomainC...
Script     1.1.0      Az.CloudService                     {Get-AzCloudService, Get-AzCloudServiceInstanceView, Get-AzCloudServiceNetworkInterface, Get-AzCloudServiceOSFamily...}             
Script     1.11.0     Az.CognitiveServices                {Add-AzCognitiveServicesAccountNetworkRule, Get-AzCognitiveServicesAccount, Get-AzCognitiveServicesAccountCommitmentPlan, Get-AzC...
Script     4.31.0     Az.Compute                          {Add-AzImageDataDisk, Add-AzVhd, Add-AzVMAdditionalUnattendContent, Add-AzVMDataDisk...}                                            
Script     1.0.0      Az.ConfidentialLedger               {Get-AzConfidentialLedger, New-AzConfidentialLedger, New-AzConfidentialLedgerAADBasedSecurityPrincipalObject, New-AzConfidentialL...
Script     3.1.0      Az.ContainerInstance                {Add-AzContainerInstanceOutput, Get-AzContainerGroup, Get-AzContainerInstanceCachedImage, Get-AzContainerInstanceCapability...}     
Script     3.0.0      Az.ContainerRegistry                {Connect-AzContainerRegistry, Get-AzContainerRegistry, Get-AzContainerRegistryCredential, Get-AzContainerRegistryManifest...}       
Script     1.8.2      Az.CosmosDB                         {Get-AzCosmosDBAccount, Get-AzCosmosDBAccountKey, Get-AzCosmosDBCassandraKeyspace, Get-AzCosmosDBCassandraKeyspaceThroughput...}    
Script     1.1.0      Az.DataBoxEdge                      {Get-AzDataBoxEdgeBandwidthSchedule, Get-AzDataBoxEdgeDevice, Get-AzDataBoxEdgeJob, Get-AzDataBoxEdgeOrder...}                      
Script     1.2.0      Az.Databricks                       {Get-AzDatabricksOutboundNetworkDependenciesEndpoint, Get-AzDatabricksVNetPeering, Get-AzDatabricksWorkspace, New-AzDatabricksVNe...
Script     1.16.8     Az.DataFactory                      {Add-AzDataFactoryV2DataFlowDebugSessionPackage, Add-AzDataFactoryV2TriggerSubscription, Get-AzDataFactory, Get-AzDataFactoryActi...
Script     1.0.2      Az.DataLakeAnalytics                {Add-AzDataLakeAnalyticsDataSource, Add-AzDataLakeAnalyticsFirewallRule, Get-AzDataLakeAnalyticsAccount, Get-AzDataLakeAnalyticsC...
Script     1.3.0      Az.DataLakeStore                    {Add-AzDataLakeStoreFirewallRule, Add-AzDataLakeStoreItemContent, Add-AzDataLakeStoreTrustedIdProvider, Add-AzDataLakeStoreVirtua...
Script     1.0.1      Az.DataShare                        {Get-AzDataShare, Get-AzDataShareAccount, Get-AzDataShareDataSet, Get-AzDataShareDataSetMapping...}                                 
Script     1.1.0      Az.DeploymentManager                {Get-AzDeploymentManagerArtifactSource, Get-AzDeploymentManagerRollout, Get-AzDeploymentManagerService, Get-AzDeploymentManagerSe...
Script     3.1.1      Az.DesktopVirtualization            {Disconnect-AzWvdUserSession, Expand-AzWvdMsixImage, Get-AzWvdApplication, Get-AzWvdApplicationGroup...}                            
Script     1.0.2      Az.DevTestLabs                      {Get-AzDtlAllowedVMSizesPolicy, Get-AzDtlAutoShutdownPolicy, Get-AzDtlAutoStartPolicy, Get-AzDtlVMsPerLabPolicy...}                 
Script     1.1.2      Az.Dns                              {Add-AzDnsRecordConfig, Get-AzDnsRecordSet, Get-AzDnsZone, New-AzDnsRecordConfig...}                                                
Script     1.4.0      Az.EventGrid                        {Get-AzEventGridDomain, Get-AzEventGridDomainKey, Get-AzEventGridDomainTopic, Get-AzEventGridFullUrlForSystemTopicEventSubscripti...
Script     2.2.1      Az.EventHub                         {Add-AzEventHubIPRule, Add-AzEventHubVirtualNetworkRule, Approve-AzEventHubPrivateEndpointConnection, Deny-AzEventHubPrivateEndpo...
Script     1.9.0      Az.FrontDoor                        {Disable-AzFrontDoorCustomDomainHttps, Enable-AzFrontDoorCustomDomainHttps, Get-AzFrontDoor, Get-AzFrontDoorFrontendEndpoint...}    
Script     4.0.4      Az.Functions                        {Get-AzFunctionApp, Get-AzFunctionAppAvailableLocation, Get-AzFunctionAppPlan, Get-AzFunctionAppSetting...}                         
Script     5.0.1      Az.HDInsight                        {Add-AzHDInsightClusterIdentity, Add-AzHDInsightComponentVersion, Add-AzHDInsightConfigValue, Add-AzHDInsightMetastore...}          
Script     2.0.0      Az.HealthcareApis                   {Get-AzHealthcareApisService, Get-AzHealthcareApisWorkspace, Get-AzHealthcareDicomService, Get-AzHealthcareFhirDestination...}      
Script     2.7.4      Az.IotHub                           {Add-AzIotHubCertificate, Add-AzIotHubConfiguration, Add-AzIotHubDeployment, Add-AzIotHubDevice...}                                 
Script     4.7.0      Az.KeyVault                         {Add-AzKeyVaultCertificate, Add-AzKeyVaultCertificateContact, Add-AzKeyVaultKey, Add-AzKeyVaultManagedStorageAccount...}            
Script     2.1.0      Az.Kusto                            {Add-AzKustoClusterLanguageExtension, Add-AzKustoDatabasePrincipal, Get-AzKustoAttachedDatabaseConfiguration, Get-AzKustoCluster...}
Script     1.5.0      Az.LogicApp                         {Get-AzIntegrationAccount, Get-AzIntegrationAccountAgreement, Get-AzIntegrationAccountAssembly, Get-AzIntegrationAccountBatchConf...
Script     1.1.3      Az.MachineLearning                  {Add-AzMlWebServiceRegionalProperty, Export-AzMlWebService, Get-AzMlCommitmentAssociation, Get-AzMlCommitmentPlan...}               
Script     1.2.0      Az.Maintenance                      {Get-AzApplyUpdate, Get-AzConfigurationAssignment, Get-AzMaintenanceConfiguration, Get-AzMaintenancePublicConfiguration...}         
Script     1.0.0      Az.ManagedServiceIdentity           {Get-AzSystemAssignedIdentity, Get-AzUserAssignedIdentity, New-AzUserAssignedIdentity, Remove-AzUserAssignedIdentity...}            
Script     3.0.0      Az.ManagedServices                  {Get-AzManagedServicesAssignment, Get-AzManagedServicesDefinition, Get-AzManagedServicesMarketplaceDefinition, New-AzManagedServi...
Script     1.0.3      Az.MarketplaceOrdering              {Get-AzMarketplaceTerms, Set-AzMarketplaceTerms}                                                                                    
Script     1.1.1      Az.Media                            {Get-AzMediaService, Get-AzMediaServiceKey, Get-AzMediaServiceNameAvailability, New-AzMediaService...}                              
Script     1.1.3      Az.Migrate                          {Get-AzMigrateDiscoveredServer, Get-AzMigrateJob, Get-AzMigrateProject, Get-AzMigrateReplicationEligibilityResult...}               
Script     3.1.0      Az.Monitor                          {Add-AzAutoscaleSetting, Add-AzLogProfile, Add-AzMetricAlertRule, Add-AzMetricAlertRuleV2...}                                       
Script     1.0.0      Az.MySql                            {Get-AzMySqlConfiguration, Get-AzMySqlConnectionString, Get-AzMySqlFirewallRule, Get-AzMySqlFlexibleServer...}                      
Script     4.20.1     Az.Network                          {Add-AzApplicationGatewayAuthenticationCertificate, Add-AzApplicationGatewayBackendAddressPool, Add-AzApplicationGatewayBackendHt...
Script     1.1.1      Az.NotificationHubs                 {Get-AzNotificationHub, Get-AzNotificationHubAuthorizationRule, Get-AzNotificationHubListKey, Get-AzNotificationHubPNSCredential...}
Script     3.2.0      Az.OperationalInsights              {Disable-AzOperationalInsightsIISLogCollection, Disable-AzOperationalInsightsLinuxCustomLogCollection, Disable-AzOperationalInsig...
Script     1.5.1      Az.PolicyInsights                   {Get-AzPolicyEvent, Get-AzPolicyMetadata, Get-AzPolicyRemediation, Get-AzPolicyState...}                                            
Script     1.1.0      Az.PostgreSql                       {Get-AzPostgreSqlConfiguration, Get-AzPostgreSqlConnectionString, Get-AzPostgreSqlFirewallRule, Get-AzPostgreSqlFlexibleServer...}  
Script     1.2.0      Az.PowerBIEmbedded                  {Get-AzPowerBIEmbeddedCapacity, Get-AzPowerBIWorkspace, Get-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollectionAccessK...
Script     1.0.3      Az.PrivateDns                       {Add-AzPrivateDnsRecordConfig, Get-AzPrivateDnsRecordSet, Get-AzPrivateDnsVirtualNetworkLink, Get-AzPrivateDnsZone...}              
Script     5.6.0      Az.RecoveryServices                 {Add-AzRecoveryServicesAsrReplicationProtectedItemDisk, Backup-AzRecoveryServicesBackupItem, Copy-AzRecoveryServicesVault, Disabl...
Script     1.6.0      Az.RedisCache                       {Export-AzRedisCache, Get-AzRedisCache, Get-AzRedisCacheFirewallRule, Get-AzRedisCacheKey...}                                       
Script     1.1.0      Az.RedisEnterpriseCache             {Export-AzRedisEnterpriseCache, Get-AzRedisEnterpriseCache, Get-AzRedisEnterpriseCacheDatabase, Get-AzRedisEnterpriseCacheKey...}   
Script     1.0.3      Az.Relay                            {Get-AzRelayAuthorizationRule, Get-AzRelayHybridConnection, Get-AzRelayKey, Get-AzRelayNamespace...}                                
Script     1.1.0      Az.ResourceMover                    {Add-AzResourceMoverMoveResource, Get-AzResourceMoverMoveCollection, Get-AzResourceMoverMoveResource, Get-AzResourceMoverRequired...
Script     6.2.0      Az.Resources                        {Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzDenyAssignment, Get-AzDeployment...}                                          
Script     1.3.0      Az.Security                         {Add-AzSecurityAdaptiveNetworkHardening, Add-AzSecuritySqlVulnerabilityAssessmentBaseline, Confirm-AzSecurityAutomation, Disable-...
Script     1.1.0      Az.SecurityInsights                 {Get-AzSentinelAlertRule, Get-AzSentinelAlertRuleAction, Get-AzSentinelAlertRuleTemplate, Get-AzSentinelBookmark...}                
Script     1.11.0     Az.ServiceBus                       {Add-AzServiceBusIPRule, Add-AzServiceBusVirtualNetworkRule, Approve-AzServiceBusPrivateEndpointConnection, Complete-AzServiceBus...
Script     3.1.0      Az.ServiceFabric                    {Add-AzServiceFabricClientCertificate, Add-AzServiceFabricManagedClusterClientCertificate, Add-AzServiceFabricManagedNodeTypeVMEx...
Script     1.4.1      Az.SignalR                          {Get-AzSignalR, Get-AzSignalRKey, Get-AzSignalRUsage, New-AzSignalR...}                                                             
Script     3.11.0     Az.Sql                              {Add-AzSqlDatabaseToFailoverGroup, Add-AzSqlElasticJobStep, Add-AzSqlElasticJobTarget, Add-AzSqlInstanceKeyVaultKey...}             
Script     1.1.0      Az.SqlVirtualMachine                {Get-AzAvailabilityGroupListener, Get-AzSqlVM, Get-AzSqlVMGroup, New-AzAvailabilityGroupListener...}                                
Script     1.3.0      Az.StackHCI                         {Add-AzStackHCIVMAttestation, Disable-AzStackHCIAttestation, Disable-AzStackHCIRemoteSupport, Enable-AzStackHCIAttestation...}      
Script     4.9.0      Az.Storage                          {Add-AzRmStorageContainerLegalHold, Add-AzStorageAccountManagementPolicyAction, Add-AzStorageAccountNetworkRule, Close-AzStorageF...
Script     1.7.0      Az.StorageSync                      {Get-AzStorageSyncCloudEndpoint, Get-AzStorageSyncGroup, Get-AzStorageSyncServer, Get-AzStorageSyncServerEndpoint...}               
Script     2.0.0      Az.StreamAnalytics                  {Get-AzStreamAnalyticsCluster, Get-AzStreamAnalyticsClusterStreamingJob, Get-AzStreamAnalyticsDefaultFunctionDefinition, Get-AzSt...
Script     1.0.0      Az.Support                          {Get-AzSupportProblemClassification, Get-AzSupportService, Get-AzSupportTicket, Get-AzSupportTicketCommunication...}                
Script     1.6.0      Az.Synapse                          {Add-AzSynapseDataFlowDebugSessionPackage, Add-AzSynapseTriggerSubscription, Clear-AzSynapseSqlPoolVulnerabilityAssessmentRuleBas...
Script     1.1.0      Az.TrafficManager                   {Add-AzTrafficManagerCustomHeaderToEndpoint, Add-AzTrafficManagerCustomHeaderToProfile, Add-AzTrafficManagerEndpointConfig, Add-A...
Script     2.11.4     Az.Websites                         {Add-AzWebAppAccessRestrictionRule, Add-AzWebAppTrafficRouting, Edit-AzWebAppBackupConfiguration, Enter-AzWebAppContainerPSSessio...

Error output

DEBUG: 11:55:26 AM - ResolveError begin processing with ParameterSet 'AnyErrorParameterSet'.
DEBUG: 11:55:26 AM - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning default value [True].
WARNING: Upcoming breaking changes in the cmdlet 'Resolve-AzError' :
The `Resolve-Error` alias will be removed in a future release.  Please change any scripts that use this alias to use `Resolve-AzError` instead.
Note : Go to https://aka.ms/azps-changewarnings for steps to suppress this breaking change warning, and other information on breaking changes in Azure PowerShell.


   HistoryId: 


Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The term 'Register-AzModule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
                 included, verify that the path is correct and try again.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 

Message        : The process cannot access the file 'C:\Users\OctoAdmin\.Azure\AzureRmSurvey.json' because it is being used by another process.
StackTrace     : 
Exception      : System.Management.Automation.RemoteException
InvocationInfo : {}
Line           : 
Position       : 
HistoryId      : 



   HistoryId: 1


Message        : Cannot find a variable with the name 'SetDefaultValueParameterWarningMessage'.
StackTrace     : 
Exception      : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line           :     if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
                 
Position       : At C:\Program Files\WindowsPowerShell\Modules\Az.Functions\4.0.4\custom\HelperFunctions.ps1:49 char:15
                 + ...   if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) ...
                 +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 1

Message        : Cannot find a variable with the name 'DefaultFunctionsVersion'.
StackTrace     : 
Exception      : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line           :     if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
                 
Position       : At C:\Program Files\WindowsPowerShell\Modules\Az.Functions\4.0.4\custom\HelperFunctions.ps1:49 char:15
                 + ...   if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) ...
                 +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 1

Message        : Cannot find a variable with the name 'RequiredStorageEndpoints'.
StackTrace     : 
Exception      : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line           :     if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
                 
Position       : At C:\Program Files\WindowsPowerShell\Modules\Az.Functions\4.0.4\custom\HelperFunctions.ps1:49 char:15
                 + ...   if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) ...
                 +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 1

Message        : Cannot find a variable with the name 'ReservedFunctionAppSettingNames'.
StackTrace     : 
Exception      : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line           :     if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
                 
Position       : At C:\Program Files\WindowsPowerShell\Modules\Az.Functions\4.0.4\custom\HelperFunctions.ps1:49 char:15
                 + ...   if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) ...
                 +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 1

Message        : Cannot find a variable with the name 'RuntimeToDefaultOSType'.
StackTrace     : 
Exception      : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line           :     if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
                 
Position       : At C:\Program Files\WindowsPowerShell\Modules\Az.Functions\4.0.4\custom\HelperFunctions.ps1:49 char:15
                 + ...   if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) ...
                 +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 1

Message        : Cannot find a variable with the name 'AllowedStorageTypes'.
StackTrace     : 
Exception      : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line           :     if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
                 
Position       : At C:\Program Files\WindowsPowerShell\Modules\Az.Functions\4.0.4\custom\HelperFunctions.ps1:49 char:15
                 + ...   if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) ...
                 +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 1

Message        : Cannot find a variable with the name 'SupportedFunctionsVersion'.
StackTrace     : 
Exception      : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line           :     if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
                 
Position       : At C:\Program Files\WindowsPowerShell\Modules\Az.Functions\4.0.4\custom\HelperFunctions.ps1:49 char:15
                 + ...   if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) ...
                 +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 1

Message        : Cannot find a variable with the name 'FunctionsNoV2Version'.
StackTrace     : 
Exception      : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line           :     if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
                 
Position       : At C:\Program Files\WindowsPowerShell\Modules\Az.Functions\4.0.4\custom\HelperFunctions.ps1:49 char:15
                 + ...   if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) ...
                 +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 1

Message        : Cannot find a variable with the name 'RuntimeToFormattedName'.
StackTrace     : 
Exception      : System.Management.Automation.ItemNotFoundException
InvocationInfo : {Get-Variable}
Line           :     if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue))
                 
Position       : At C:\Program Files\WindowsPowerShell\Modules\Az.Functions\4.0.4\custom\HelperFunctions.ps1:49 char:15
                 + ...   if (-not (Get-Variable $variableName -ErrorAction SilentlyContinue) ...
                 +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 1


The Azure PowerShell team is listening, please let us know how we are doing: https://aka.ms/azpssurvey?Q_CHL=ERROR.

DEBUG: 11:55:26 AM - [ConfigManager] Got [True] from [EnableDataCollection], Module = [], Cmdlet = [].
DEBUG: AzureQoSEvent: Module: Az.Accounts:2.10.0; CommandName: Resolve-AzError; PSVersion: 5.1.14393.5127; IsSuccess: True; Duration: 00:00:00.3235361
DEBUG: Finish sending metric.
DEBUG: 11:55:26 AM - ResolveError end processing.
@arkintz arkintz added bug This issue requires a change to an existing behavior in the product in order to be resolved. needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Sep 26, 2022
@ghost ghost added customer-reported and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Sep 26, 2022
@dingmeng-xue
Copy link
Member

@Nickcandy , please try to reproduce this issue.

@dingmeng-xue dingmeng-xue added Accounts Issues in Az.Accounts except authentication related Tracking We will track status and follow internally labels Sep 27, 2022
@Hoppy7
Copy link

Hoppy7 commented Sep 28, 2022

Also hitting this on the Az module 8.3.0 while running in the context of an ADO pipeline.

##[error]Caught exception waiting for jobs : System.Management.Automation.RemoteException: The process cannot access the file 'C:\Users\cloudtest.Azure\AzureRmSurvey.json' because it is being used by another process.

@VeryEarly
Copy link
Contributor

will be fixed and published on 2022-10-12

@wyunchi-ms
Copy link
Contributor

The PR is merged and feature will be published around Oct 12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accounts Issues in Az.Accounts except authentication related Azure PS Team bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Tracking We will track status and follow internally
Projects
None yet
6 participants