Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.24k stars 3.84k forks source link

Get-AzLocation returns Internal Server Error #15913

Closed bwarren18 closed 2 years ago

bwarren18 commented 3 years ago

Description

Get-AzLocation returns StatusCode: 500 ReasonPhrase: Internal Server Error

Steps to reproduce

Get-AzLocation

Environment data


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

Module versions


    Directory: C:\Users\benjamin.laufer\OneDrive - Mediterranean Shipping Company\my files\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands                                                                                                                                                                                                    
---------- -------    ----                                ----------------                                                                                                                                                                                                    
Script     2.5.3      Az.Accounts                         {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzContextAutosave...}                                                                                                         
Script     1.1.1      Az.Advisor                          {Get-AzAdvisorRecommendation, Enable-AzAdvisorRecommendation, Disable-AzAdvisorRecommendation, Get-AzAdvisorConfiguration...}                                                                                       
Script     2.4.0      Az.Aks                              {Get-AzAksCluster, New-AzAksCluster, Remove-AzAksCluster, Import-AzAksCredential...}                                                                                                                                
Script     1.1.4      Az.AnalysisServices                 {Resume-AzAnalysisServicesServer, Suspend-AzAnalysisServicesServer, Get-AzAnalysisServicesServer, Remove-AzAnalysisServicesServer...}                                                                               
Script     2.3.0      Az.ApiManagement                    {Add-AzApiManagementApiToGateway, Add-AzApiManagementApiToProduct, Add-AzApiManagementProductToGroup, Add-AzApiManagementRegion...}                                                                                 
Script     1.0.0      Az.AppConfiguration                 {Get-AzAppConfigurationStore, Get-AzAppConfigurationStoreKey, New-AzAppConfigurationStore, New-AzAppConfigurationStoreKey...}                                                                                       
Script     1.2.0      Az.ApplicationInsights              {Get-AzApplicationInsights, New-AzApplicationInsights, Remove-AzApplicationInsights, Update-AzApplicationInsights...}                                                                                               
Script     1.7.1      Az.Automation                       {Get-AzAutomationHybridWorkerGroup, Remove-AzAutomationHybridWorkerGroup, Get-AzAutomationJobOutputRecord, Import-AzAutomationDscNodeConfiguration...}                                                              
Script     3.1.0      Az.Batch                            {Remove-AzBatchAccount, Get-AzBatchAccount, Get-AzBatchAccountKey, New-AzBatchAccount...}                                                                                                                           
Script     2.0.0      Az.Billing                          {Get-AzBillingInvoice, Get-AzBillingPeriod, Get-AzEnrollmentAccount, Get-AzConsumptionBudget...}                                                                                                                    
Script     1.8.0      Az.Cdn                              {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl, New-AzCdnProfile, Remove-AzCdnProfile...}                                                                                                                                
Script     1.9.0      Az.CognitiveServices                {Get-AzCognitiveServicesAccount, Get-AzCognitiveServicesAccountKey, Get-AzCognitiveServicesAccountSku, Get-AzCognitiveServicesAccountType...}                                                                       
Script     4.17.0     Az.Compute                          {Remove-AzAvailabilitySet, Get-AzAvailabilitySet, New-AzAvailabilitySet, Update-AzAvailabilitySet...}                                                                                                               
Script     2.1.0      Az.ContainerInstance                {Add-AzContainerInstanceOutput, Get-AzContainerGroup, Get-AzContainerInstanceCachedImage, Get-AzContainerInstanceCapability...}                                                                                     
Script     2.2.3      Az.ContainerRegistry                {New-AzContainerRegistry, Get-AzContainerRegistry, Update-AzContainerRegistry, Remove-AzContainerRegistry...}                                                                                                       
Script     1.3.1      Az.CosmosDB                         {Get-AzCosmosDBSqlContainer, Get-AzCosmosDBSqlContainerThroughput, Get-AzCosmosDBSqlDatabase, Get-AzCosmosDBSqlDatabaseThroughput...}                                                                               
Script     1.1.0      Az.DataBoxEdge                      {Get-AzDataBoxEdgeJob, Get-AzDataBoxEdgeDevice, Invoke-AzDataBoxEdgeDevice, New-AzDataBoxEdgeDevice...}                                                                                                             
Script     1.1.0      Az.Databricks                       {Get-AzDatabricksVNetPeering, Get-AzDatabricksWorkspace, New-AzDatabricksVNetPeering, New-AzDatabricksWorkspace...}                                                                                                 
Script     1.14.0     Az.DataFactory                      {Set-AzDataFactoryV2, Update-AzDataFactoryV2, Get-AzDataFactoryV2, Remove-AzDataFactoryV2...}                                                                                                                       
Script     1.0.2      Az.DataLakeAnalytics                {Get-AzDataLakeAnalyticsDataSource, New-AzDataLakeAnalyticsCatalogCredential, Remove-AzDataLakeAnalyticsCatalogCredential, Set-AzDataLakeAnalyticsCatalogCredential...}                                             
Script     1.3.0      Az.DataLakeStore                    {Get-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreFirewallRule, Set-AzDataLakeStoreTrustedIdProvider...}                                                        
Script     1.0.0      Az.DataShare                        {New-AzDataShareAccount, Get-AzDataShareAccount, Remove-AzDataShareAccount, New-AzDataShare...}                                                                                                                     
Script     1.1.0      Az.DeploymentManager                {Get-AzDeploymentManagerArtifactSource, New-AzDeploymentManagerArtifactSource, Set-AzDeploymentManagerArtifactSource, Remove-AzDeploymentManagerArtifactSource...}                                                  
Script     3.0.0      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                              {Get-AzDnsRecordSet, New-AzDnsRecordConfig, Remove-AzDnsRecordSet, Set-AzDnsRecordSet...}                                                                                                                           
Script     1.3.0      Az.EventGrid                        {New-AzEventGridTopic, Get-AzEventGridTopic, Set-AzEventGridTopic, New-AzEventGridTopicKey...}                                                                                                                      
Script     1.8.0      Az.EventHub                         {New-AzEventHubNamespace, Get-AzEventHubNamespace, Set-AzEventHubNamespace, Remove-AzEventHubNamespace...}                                                                                                          
Script     1.8.0      Az.FrontDoor                        {New-AzFrontDoor, Get-AzFrontDoor, Set-AzFrontDoor, Remove-AzFrontDoor...}                                                                                                                                          
Script     3.1.0      Az.Functions                        {Get-AzFunctionApp, Get-AzFunctionAppAvailableLocation, Get-AzFunctionAppPlan, Get-AzFunctionAppSetting...}                                                                                                         
Script     4.3.0      Az.HDInsight                        {Get-AzHDInsightJob, New-AzHDInsightSqoopJobDefinition, Wait-AzHDInsightJob, New-AzHDInsightStreamingMapReduceJobDefinition...}                                                                                     
Script     1.3.1      Az.HealthcareApis                   {New-AzHealthcareApisService, Remove-AzHealthcareApisService, Set-AzHealthcareApisService, Get-AzHealthcareApisService}                                                                                             
Script     2.7.3      Az.IotHub                           {Add-AzIotHubKey, Get-AzIotHubEventHubConsumerGroup, Get-AzIotHubConnectionString, Get-AzIotHubJob...}                                                                                                              
Script     3.5.0      Az.KeyVault                         {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCertificateOperation, Get-AzKeyVaultCertificateOperation...}                                                                               
Script     2.0.0      Az.Kusto                            {Add-AzKustoClusterLanguageExtension, Add-AzKustoDatabasePrincipal, Get-AzKustoAttachedDatabaseConfiguration, Get-AzKustoCluster...}                                                                                
Script     1.5.0      Az.LogicApp                         {Get-AzIntegrationAccountAgreement, Get-AzIntegrationAccountAssembly, Get-AzIntegrationAccountBatchConfiguration, Get-AzIntegrationAccountCallbackUrl...}                                                           
Script     1.1.3      Az.MachineLearning                  {Move-AzMlCommitmentAssociation, Get-AzMlCommitmentAssociation, Get-AzMlCommitmentPlanUsageHistory, Remove-AzMlCommitmentPlan...}                                                                                   
Script     1.1.1      Az.Maintenance                      {Get-AzApplyUpdate, Get-AzConfigurationAssignment, Get-AzMaintenanceConfiguration, Get-AzMaintenanceUpdate...}                                                                                                      
Script     2.0.0      Az.ManagedServices                  {Get-AzManagedServicesAssignment, New-AzManagedServicesAssignment, Remove-AzManagedServicesAssignment, Get-AzManagedServicesDefinition...}                                                                          
Script     1.0.2      Az.MarketplaceOrdering              {Get-AzMarketplaceTerms, Set-AzMarketplaceTerms}                                                                                                                                                                    
Script     1.1.1      Az.Media                            {Sync-AzMediaServiceStorageKey, Set-AzMediaServiceKey, Get-AzMediaServiceKey, Get-AzMediaServiceNameAvailability...}                                                                                                
Script     1.1.1      Az.Migrate                          {Get-AzMigrateDiscoveredServer, Get-AzMigrateJob, Get-AzMigrateProject, Get-AzMigrateReplicationEligibilityResult...}                                                                                               
Script     2.7.0      Az.Monitor                          {Get-AzMetricDefinition, Get-AzMetric, Remove-AzLogProfile, Get-AzLogProfile...}                                                                                                                                    
Script     4.11.0     Az.Network                          {Add-AzApplicationGatewayAuthenticationCertificate, Get-AzApplicationGatewayAuthenticationCertificate, New-AzApplicationGatewayAuthenticationCertificate, Remove-AzApplicationGatewayAuthenticationCertificate...}  
Script     1.1.1      Az.NotificationHubs                 {Get-AzNotificationHub, Get-AzNotificationHubAuthorizationRule, Get-AzNotificationHubListKey, Get-AzNotificationHubPNSCredential...}                                                                                
Script     2.3.0      Az.OperationalInsights              {New-AzOperationalInsightsAzureActivityLogDataSource, New-AzOperationalInsightsCustomLogDataSource, Disable-AzOperationalInsightsLinuxCustomLogCollection, Disable-AzOperationalInsightsIISLogCollection...}        
Script     1.4.1      Az.PolicyInsights                   {Get-AzPolicyEvent, Get-AzPolicyState, Get-AzPolicyStateSummary, Get-AzPolicyRemediation...}                                                                                                                        
Script     1.1.2      Az.PowerBIEmbedded                  {Remove-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollectionAccessKey, Get-AzPowerBIWorkspace...}                                                                       
Script     1.0.3      Az.PrivateDns                       {Get-AzPrivateDnsZone, Remove-AzPrivateDnsZone, Set-AzPrivateDnsZone, New-AzPrivateDnsZone...}                                                                                                                      
Script     4.6.0      Az.RecoveryServices                 {Get-AzRecoveryServicesBackupProperty, Get-AzRecoveryServicesVault, Get-AzRecoveryServicesVaultSettingsFile, New-AzRecoveryServicesVault...}                                                                        
Script     1.5.0      Az.RedisCache                       {Remove-AzRedisCachePatchSchedule, New-AzRedisCacheScheduleEntry, Get-AzRedisCachePatchSchedule, New-AzRedisCachePatchSchedule...}                                                                                  
Script     1.0.0      Az.RedisEnterpriseCache             {Export-AzRedisEnterpriseCache, Get-AzRedisEnterpriseCache, Get-AzRedisEnterpriseCacheDatabase, Get-AzRedisEnterpriseCacheKey...}                                                                                   
Script     1.0.3      Az.Relay                            {New-AzRelayNamespace, Get-AzRelayNamespace, Set-AzRelayNamespace, Remove-AzRelayNamespace...}                                                                                                                      
Script     1.0.0      Az.ResourceMover                    {Add-AzResourceMoverMoveResource, Get-AzResourceMoverMoveCollection, Get-AzResourceMoverMoveResource, Get-AzResourceMoverRequiredForResources...}                                                                   
Script     4.3.1      Az.Resources                        {Get-AzProviderOperation, Remove-AzRoleAssignment, Get-AzRoleAssignment, New-AzRoleAssignment...}                                                                                                                   
Script     1.0.0      Az.Security                         {Get-AzSecurityAlert, Set-AzSecurityAlert, Get-AzSecurityAutoProvisioningSetting, Set-AzSecurityAutoProvisioningSetting...}                                                                                         
Script     1.1.0      Az.SecurityInsights                 {Get-AzSentinelAlertRuleAction, New-AzSentinelAlertRuleAction, Remove-AzSentinelAlertRuleAction, Update-AzSentinelAlertRuleAction...}                                                                               
Script     1.5.0      Az.ServiceBus                       {New-AzServiceBusNamespace, Get-AzServiceBusNamespace, Set-AzServiceBusNamespace, Remove-AzServiceBusNamespace...}                                                                                                  
Script     3.0.1      Az.ServiceFabric                    {Add-AzServiceFabricClientCertificate, Add-AzServiceFabricNode, Add-AzServiceFabricNodeType, Get-AzServiceFabricCluster...}                                                                                         
Script     1.3.0      Az.SignalR                          {New-AzSignalR, Get-AzSignalR, Get-AzSignalRKey, New-AzSignalRKey...}                                                                                                                                               
Script     3.5.0      Az.Sql                              {Get-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseTransparentDataEncryptionActivity, Set-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseUpgradeHint...}                                       
Script     1.1.0      Az.SqlVirtualMachine                {New-AzSqlVM, Get-AzSqlVM, Update-AzSqlVM, Remove-AzSqlVM...}                                                                                                                                                       
Script     3.11.0     Az.Storage                          {Get-AzStorageAccount, Get-AzStorageAccountKey, New-AzStorageAccount, New-AzStorageAccountKey...}                                                                                                                   
Script     1.6.0      Az.StorageSync                      {Invoke-AzStorageSyncCompatibilityCheck, New-AzStorageSyncService, Get-AzStorageSyncService, Set-AzStorageSyncService...}                                                                                           
Script     2.0.0      Az.StreamAnalytics                  {Get-AzStreamAnalyticsCluster, Get-AzStreamAnalyticsClusterStreamingJob, Get-AzStreamAnalyticsDefaultFunctionDefinition, Get-AzStreamAnalyticsFunction...}                                                          
Script     1.0.0      Az.Support                          {Get-AzSupportService, Get-AzSupportProblemClassification, Get-AzSupportTicket, Get-AzSupportTicketCommunication...}                                                                                                
Script     1.0.4      Az.TrafficManager                   {Add-AzTrafficManagerCustomHeaderToEndpoint, Remove-AzTrafficManagerCustomHeaderFromEndpoint, Add-AzTrafficManagerCustomHeaderToProfile, Remove-AzTrafficManagerCustomHeaderFromProfile...}                         
Script     2.8.2      Az.Websites                         {Get-AzAppServicePlan, Set-AzAppServicePlan, New-AzAppServicePlan, Remove-AzAppServicePlan...}                                                                                                                      
Binary     2.0.2.137  AzureAD                             {Add-AzureADApplicationOwner, Get-AzureADApplication, Get-AzureADApplicationExtensionProperty, Get-AzureADApplicationOwner...}                                                                                      
Binary     2.0.2.138  AzureADPreview                      {Add-AzureADApplicationOwner, Get-AzureADApplication, Get-AzureADApplicationExtensionProperty, Get-AzureADApplicationOwner...}                                                                                      
Script     1.4.7      PackageManagement                   {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource...}                                                                                                                                              
Script     2.2.5      PowerShellGet                       {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability...}                                                                                                                                               

    Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands                                                                                                                                                                                                    
---------- -------    ----                                ----------------                                                                                                                                                                                                    
Script     1.0.1      Microsoft.PowerShell.Operation.V... {Get-OperationValidation, Invoke-OperationValidation}                                                                                                                                                               
Script     1.0.0.0    Microsoft.SME.CredSspPolicy                                                                                                                                                                                                                             
Script     1.3.1      PackageManagement                   {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource...}                                                                                                                                              
Binary     1.0.0.1    PackageManagement                   {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource...}                                                                                                                                              
Script     4.7.3      Pester                              {Describe, Context, It, Should...}                                                                                                                                                                                  
Script     3.4.0      Pester                              {Describe, Context, It, Should...}                                                                                                                                                                                  
Script     2.1.2      PowerShellGet                       {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability...}                                                                                                                                               
Script     1.0.0.1    PowerShellGet                       {Install-Module, Find-Module, Save-Module, Update-Module...}                                                                                                                                                        
Script     2.0.0      PSReadline                          {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSReadLineOption...}                                                                                                          
Script     2.1.1      PuppetDevelopmentKit                pdk                                                                                                                                                                                                                 
Script     1.0        RemoteDesktopManager.PowerShellM...                                                                                                                                                                                                                     
Script     1.0.12     SpeculationControl                  Get-SpeculationControlSettings                                                                                                                                                                                      

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

ModuleType Version    Name                                ExportedCommands                                                                                                                                                                                                    
---------- -------    ----                                ----------------                                                                                                                                                                                                    
Manifest   1.0.1.0    ActiveDirectory                     {Add-ADCentralAccessPolicyMember, Add-ADComputerServiceAccount, Add-ADDomainControllerPasswordReplicationPolicy, Add-ADFineGrainedPasswordPolicySubject...}                                                         
Manifest   1.0.0.0    AppBackgroundTask                   {Disable-AppBackgroundTaskDiagnosticLog, Enable-AppBackgroundTaskDiagnosticLog, Set-AppBackgroundTaskResourcePolicy, Unregister-AppBackgroundTask...}                                                               
Manifest   2.0.0.0    AppLocker                           {Get-AppLockerFileInformation, Get-AppLockerPolicy, New-AppLockerPolicy, Set-AppLockerPolicy...}                                                                                                                    
Manifest   1.0.0.0    AppvClient                          {Add-AppvClientConnectionGroup, Add-AppvClientPackage, Add-AppvPublishingServer, Disable-Appv...}                                                                                                                   
Manifest   2.0.1.0    Appx                                {Add-AppxPackage, Get-AppxPackage, Get-AppxPackageManifest, Remove-AppxPackage...}                                                                                                                                  
Script     1.0.0.0    AssignedAccess                      {Clear-AssignedAccess, Get-AssignedAccess, Set-AssignedAccess}                                                                                                                                                      
Manifest   1.0        BestPractices                       {Get-BpaModel, Get-BpaResult, Invoke-BpaModel, Set-BpaResult}                                                                                                                                                       
Manifest   1.0.0.0    BitLocker                           {Unlock-BitLocker, Suspend-BitLocker, Resume-BitLocker, Remove-BitLockerKeyProtector...}                                                                                                                            
Manifest   2.0.0.0    BitsTransfer                        {Add-BitsFile, Complete-BitsTransfer, Get-BitsTransfer, Remove-BitsTransfer...}                                                                                                                                     
Manifest   1.0.0.0    BranchCache                         {Add-BCDataCacheExtension, Clear-BCCache, Disable-BC, Disable-BCDowngrading...}                                                                                                                                     
Manifest   1.0.0.0    CimCmdlets                          {Get-CimAssociatedInstance, Get-CimClass, Get-CimInstance, Get-CimSession...}                                                                                                                                       
Manifest   1.0        ConfigCI                            {Get-SystemDriver, New-CIPolicyRule, New-CIPolicy, Get-CIPolicy...}                                                                                                                                                 
Manifest   1.0        ConfigDefender                      {Get-MpPreference, Set-MpPreference, Add-MpPreference, Remove-MpPreference...}                                                                                                                                      
Manifest   1.0        Defender                            {Get-MpPreference, Set-MpPreference, Add-MpPreference, Remove-MpPreference...}                                                                                                                                      
Manifest   1.0.2.0    DeliveryOptimization                {Delete-DeliveryOptimizationCache, Set-DeliveryOptimizationStatus, Get-DeliveryOptimizationLog, Get-DeliveryOptimizationLogAnalysis...}                                                                             
Manifest   1.0.0.0    DirectAccessClientComponents        {Disable-DAManualEntryPointSelection, Enable-DAManualEntryPointSelection, Get-DAClientExperienceConfiguration, Get-DAEntryPointTableItem...}                                                                        
Script     3.0        Dism                                {Add-AppxProvisionedPackage, Add-WindowsDriver, Add-WindowsCapability, Add-WindowsImage...}                                                                                                                         
Manifest   1.0.0.0    DnsClient                           {Resolve-DnsName, Clear-DnsClientCache, Get-DnsClient, Get-DnsClientCache...}                                                                                                                                       
Manifest   1.0.0.0    EventTracingManagement              {Start-EtwTraceSession, New-EtwTraceSession, Get-EtwTraceSession, Update-EtwTraceSession...}                                                                                                                        
Manifest   1.0.0.0    HgsClient                           {Get-HgsAttestationBaselinePolicy, Get-HgsClientConfiguration, Test-HgsClientConfiguration, Set-HgsClientConfiguration...}                                                                                          
Manifest   1.0.0.0    HgsDiagnostics                      {New-HgsTraceTarget, Get-HgsTrace, Get-HgsTraceFileData, Test-HgsTraceTarget}                                                                                                                                       
Binary     1.0.0.0    HostComputeService                  {Get-ComputeProcess, Stop-ComputeProcess}                                                                                                                                                                           
Manifest   1.0.0.1    HostNetworkingService               {Remove-HnsNamespace, Remove-HnsEndpoint, Get-HnsEndpoint, Remove-HnsPolicyList...}                                                                                                                                 
Binary     2.0.0.0    Hyper-V                             {Add-VMAssignableDevice, Add-VMDvdDrive, Add-VMFibreChannelHba, Add-VMGpuPartitionAdapter...}                                                                                                                       
Binary     1.1        Hyper-V                             {Add-VMDvdDrive, Add-VMFibreChannelHba, Add-VMHardDiskDrive, Add-VMMigrationNetwork...}                                                                                                                             
Manifest   2.0.0.0    International                       {Get-WinDefaultInputMethodOverride, Set-WinDefaultInputMethodOverride, Get-WinHomeLocation, Set-WinHomeLocation...}                                                                                                 
Manifest   1.0.0.0    iSCSI                               {Get-IscsiTargetPortal, New-IscsiTargetPortal, Remove-IscsiTargetPortal, Update-IscsiTargetPortal...}                                                                                                               
Manifest   2.0.0.0    IscsiTarget                         {Add-ClusteriSCSITargetServerRole, Add-IscsiVirtualDiskTargetMapping, Checkpoint-IscsiVirtualDisk, Convert-IscsiVirtualDisk...}                                                                                     
Script     1.0.0.0    ISE                                 {New-IseSnippet, Import-IseSnippet, Get-IseSnippet}                                                                                                                                                                 
Manifest   1.0.0.0    Kds                                 {Add-KdsRootKey, Get-KdsRootKey, Test-KdsRootKey, Set-KdsConfiguration...}                                                                                                                                          
Manifest   1.0.1.0    Microsoft.PowerShell.Archive        {Compress-Archive, Expand-Archive}                                                                                                                                                                                  
Manifest   3.0.0.0    Microsoft.PowerShell.Diagnostics    {Get-WinEvent, Get-Counter, Import-Counter, Export-Counter...}                                                                                                                                                      
Manifest   3.0.0.0    Microsoft.PowerShell.Host           {Start-Transcript, Stop-Transcript}                                                                                                                                                                                 
Manifest   1.0.0.0    Microsoft.PowerShell.LocalAccounts  {Add-LocalGroupMember, Disable-LocalUser, Enable-LocalUser, Get-LocalGroup...}                                                                                                                                      
Manifest   3.1.0.0    Microsoft.PowerShell.Management     {Add-Content, Clear-Content, Clear-ItemProperty, Join-Path...}                                                                                                                                                      
Script     1.0        Microsoft.PowerShell.ODataUtils     Export-ODataEndpointProxy                                                                                                                                                                                           
Manifest   3.0.0.0    Microsoft.PowerShell.Security       {Get-Acl, Set-Acl, Get-PfxCertificate, Get-Credential...}                                                                                                                                                           
Manifest   3.1.0.0    Microsoft.PowerShell.Utility        {Format-List, Format-Custom, Format-Table, Format-Wide...}                                                                                                                                                          
Manifest   3.0.0.0    Microsoft.WSMan.Management          {Disable-WSManCredSSP, Enable-WSManCredSSP, Get-WSManCredSSP, Set-WSManQuickConfig...}                                                                                                                              
Manifest   1.0        MMAgent                             {Disable-MMAgent, Enable-MMAgent, Set-MMAgent, Get-MMAgent...}                                                                                                                                                      
Manifest   1.0.0.0    MsDtc                               {New-DtcDiagnosticTransaction, Complete-DtcDiagnosticTransaction, Join-DtcDiagnosticResourceManager, Receive-DtcDiagnosticTransaction...}                                                                           
Binary     1.0.0.0    MSMQ                                {Clear-MsmqOutgoingQueue, Clear-MsmqQueue, Enable-MsmqCertificate, Get-MsmqCertificate...}                                                                                                                          
Manifest   2.0.0.0    NetAdapter                          {Disable-NetAdapter, Disable-NetAdapterBinding, Disable-NetAdapterChecksumOffload, Disable-NetAdapterEncapsulatedPacketTaskOffload...}                                                                              
Manifest   1.0.0.0    NetConnection                       {Get-NetConnectionProfile, Set-NetConnectionProfile}                                                                                                                                                                
Manifest   1.0.0.0    NetDiagnostics                      Get-NetView                                                                                                                                                                                                         
Manifest   1.0.0.0    NetEventPacketCapture               {New-NetEventSession, Remove-NetEventSession, Get-NetEventSession, Set-NetEventSession...}                                                                                                                          
Manifest   2.0.0.0    NetLbfo                             {Add-NetLbfoTeamMember, Add-NetLbfoTeamNic, Get-NetLbfoTeam, Get-NetLbfoTeamMember...}                                                                                                                              
Manifest   1.0        NetLldpAgent                        {Enable-NetLldpAgent, Disable-NetLldpAgent, Get-NetLldpAgent}                                                                                                                                                       
Manifest   1.0.0.0    NetNat                              {Get-NetNat, Get-NetNatExternalAddress, Get-NetNatStaticMapping, Get-NetNatSession...}                                                                                                                              
Manifest   2.0.0.0    NetQos                              {Get-NetQosPolicy, Set-NetQosPolicy, Remove-NetQosPolicy, New-NetQosPolicy}                                                                                                                                         
Manifest   2.0.0.0    NetSecurity                         {Get-DAPolicyChange, New-NetIPsecAuthProposal, New-NetIPsecMainModeCryptoProposal, New-NetIPsecQuickModeCryptoProposal...}                                                                                          
Manifest   1.0.0.0    NetSwitchTeam                       {New-NetSwitchTeam, Remove-NetSwitchTeam, Get-NetSwitchTeam, Rename-NetSwitchTeam...}                                                                                                                               
Manifest   1.0.0.0    NetTCPIP                            {Get-NetIPAddress, Get-NetIPInterface, Get-NetIPv4Protocol, Get-NetIPv6Protocol...}                                                                                                                                 
Manifest   1.0.0.0    NetworkConnectivityStatus           {Get-DAConnectionStatus, Get-NCSIPolicyConfiguration, Reset-NCSIPolicyConfiguration, Set-NCSIPolicyConfiguration}                                                                                                   
Manifest   1.0.0.0    NetworkControllerDiagnostics        {Get-NetworkControllerDeploymentInfo, Get-NetworkControllerManagedDevices, Debug-NetworkController, Debug-NetworkControllerConfigurationState...}                                                                   
Manifest   1.0.0.0    NetworkSwitchManager                {Disable-NetworkSwitchEthernetPort, Enable-NetworkSwitchEthernetPort, Get-NetworkSwitchEthernetPort, Remove-NetworkSwitchEthernetPortIPAddress...}                                                                  
Manifest   1.0.0.0    NetworkTransition                   {Add-NetIPHttpsCertBinding, Disable-NetDnsTransitionConfiguration, Disable-NetIPHttpsProfile, Disable-NetNatTransitionConfiguration...}                                                                             
Manifest   1.0        NFS                                 {Get-NfsMappedIdentity, Get-NfsNetgroup, Install-NfsMappingStore, New-NfsMappedIdentity...}                                                                                                                         
Manifest   1.0.0.0    PcsvDevice                          {Get-PcsvDevice, Start-PcsvDevice, Stop-PcsvDevice, Restart-PcsvDevice...}                                                                                                                                          
Binary     1.0.0.0    PersistentMemory                    {Get-PmemDisk, Get-PmemPhysicalDevice, Get-PmemUnusedRegion, New-PmemDisk...}                                                                                                                                       
Manifest   1.0.0.0    PKI                                 {Add-CertificateEnrollmentPolicyServer, Export-Certificate, Export-PfxCertificate, Get-CertificateAutoEnrollmentPolicy...}                                                                                          
Manifest   1.0.0.0    PnpDevice                           {Get-PnpDevice, Get-PnpDeviceProperty, Enable-PnpDevice, Disable-PnpDevice}                                                                                                                                         
Manifest   1.1        PrintManagement                     {Add-Printer, Add-PrinterDriver, Add-PrinterPort, Get-PrintConfiguration...}                                                                                                                                        
Binary     1.0.12     ProcessMitigations                  {Get-ProcessMitigation, Set-ProcessMitigation, ConvertTo-ProcessMitigationPolicy}                                                                                                                                   
Script     3.0        Provisioning                        {Install-ProvisioningPackage, Export-ProvisioningPackage, Install-TrustedProvisioningCertificate, Export-Trace...}                                                                                                  
Manifest   1.1        PSDesiredStateConfiguration         {Set-DscLocalConfigurationManager, Start-DscConfiguration, Test-DscConfiguration, Publish-DscConfiguration...}                                                                                                      
Script     1.0.0.0    PSDiagnostics                       {Disable-PSTrace, Disable-PSWSManCombinedTrace, Disable-WSManTrace, Enable-PSTrace...}                                                                                                                              
Binary     1.1.0.0    PSScheduledJob                      {New-JobTrigger, Add-JobTrigger, Remove-JobTrigger, Get-JobTrigger...}                                                                                                                                              
Manifest   2.0.0.0    PSWorkflow                          {New-PSWorkflowExecutionOption, New-PSWorkflowSession, nwsn}                                                                                                                                                        
Manifest   1.0.0.0    PSWorkflowUtility                   Invoke-AsWorkflow                                                                                                                                                                                                   
Manifest   2.0.0.0    RemoteDesktop                       {Get-RDCertificate, Set-RDCertificate, New-RDCertificate, New-RDVirtualDesktopDeployment...}                                                                                                                        
Manifest   1.0.0.0    ScheduledTasks                      {Get-ScheduledTask, Set-ScheduledTask, Register-ScheduledTask, Unregister-ScheduledTask...}                                                                                                                         
Manifest   2.0.0.0    SecureBoot                          {Confirm-SecureBootUEFI, Set-SecureBootUEFI, Get-SecureBootUEFI, Format-SecureBootUEFI...}                                                                                                                          
Script     2.0.0.0    ServerManager                       {Get-WindowsFeature, Install-WindowsFeature, Uninstall-WindowsFeature, Enable-ServerManagerStandardUserRemoting...}                                                                                                 
Cim        1.0.0.0    ServerManagerTasks                  {Get-SMCounterSample, Get-SMPerformanceCollector, Start-SMPerformanceCollector, Stop-SMPerformanceCollector...}                                                                                                     
Manifest   2.0.0.0    SmbShare                            {Get-SmbShare, Remove-SmbShare, Set-SmbShare, Block-SmbShareAccess...}                                                                                                                                              
Manifest   2.0.0.0    SmbWitness                          {Get-SmbWitnessClient, Move-SmbWitnessClient, gsmbw, msmbw...}                                                                                                                                                      
Manifest   1.0.0.1    StartLayout                         {Export-StartLayout, Import-StartLayout, Export-StartLayoutEdgeAssets, Get-StartApps}                                                                                                                               
Manifest   2.0.0.0    Storage                             {Add-InitiatorIdToMaskingSet, Add-PartitionAccessPath, Add-PhysicalDisk, Add-StorageFaultDomain...}                                                                                                                 
Manifest   1.0.0.0    StorageBusCache                     {Clear-StorageBusDisk, Disable-StorageBusCache, Disable-StorageBusDisk, Enable-StorageBusCache...}                                                                                                                  
Manifest   2.0.0.0    TLS                                 {New-TlsSessionTicketKey, Enable-TlsSessionTicketKey, Disable-TlsSessionTicketKey, Export-TlsSessionTicketKey...}                                                                                                   
Manifest   1.0.0.0    TroubleshootingPack                 {Get-TroubleshootingPack, Invoke-TroubleshootingPack}                                                                                                                                                               
Manifest   2.0.0.0    TrustedPlatformModule               {Get-Tpm, Initialize-Tpm, Clear-Tpm, Unblock-Tpm...}                                                                                                                                                                
Binary     2.1.639.0  UEV                                 {Clear-UevConfiguration, Clear-UevAppxPackage, Restore-UevBackup, Set-UevTemplateProfile...}                                                                                                                        
Manifest   2.0.0.0    VpnClient                           {Add-VpnConnection, Set-VpnConnection, Remove-VpnConnection, Get-VpnConnection...}                                                                                                                                  
Manifest   1.0.0.0    Wdac                                {Get-OdbcDriver, Set-OdbcDriver, Get-OdbcDsn, Add-OdbcDsn...}                                                                                                                                                       
Manifest   2.0.0.0    Whea                                {Get-WheaMemoryPolicy, Set-WheaMemoryPolicy}                                                                                                                                                                        
Manifest   1.0.0.0    WindowsDeveloperLicense             {Get-WindowsDeveloperLicense, Unregister-WindowsDeveloperLicense, Show-WindowsDeveloperLicenseRegistration}                                                                                                         
Script     1.0        WindowsErrorReporting               {Enable-WindowsErrorReporting, Disable-WindowsErrorReporting, Get-WindowsErrorReporting}                                                                                                                            
Manifest   1.0.0.0    WindowsSearch                       {Get-WindowsSearchSetting, Set-WindowsSearchSetting}                                                                                                                                                                
Manifest   1.0.0.0    WindowsUpdate                       Get-WindowsUpdateLog                                                                                                                                                                                                
Manifest   1.0.0.2    WindowsUpdateProvider               {Get-WUAVersion, Get-WULastInstallationDate, Get-WULastScanSuccessDate, Get-WUIsPendingReboot...}                                                                                                                   

    Directory: C:\Program Files\Microsoft Monitoring Agent\Agent\AzureAutomation\7.3.702.0

ModuleType Version    Name                                ExportedCommands                                                                                                                                                                                                    
---------- -------    ----                                ----------------                                                                                                                                                                                                    
Binary     1.0        HybridRegistration                  {Add-HybridRunbookWorker, Remove-HybridRunbookWorker, Set-HybridRunbookWorkerSignatureValidation}                                                                                                                   

    Directory: C:\Program Files\Microsoft Monitoring Agent\Agent\AzureAutomation\7.3.702.0\HybridAgent\Modules

ModuleType Version    Name                                ExportedCommands                                                                                                                                                                                                    
---------- -------    ----                                ----------------                                                                                                                                                                                                    
Binary     1.0        Orchestrator.AssetManagement.Cmd... {Get-AutomationCertificate, Get-AutomationConnection, Get-SoftwareUpdateConfigurationMachines, Initialize-AutomationSoftwareUpdateConfiguration...}                                                                 

    Directory: C:\Program Files (x86)\Microsoft Azure Information Protection\Powershell

ModuleType Version    Name                                ExportedCommands                                                                                                                                                                                                    
---------- -------    ----                                ----------------                                                                                                                                                                                                    
Binary     1.54.59.0  AzureInformationProtection          {Clear-RMSAuthentication, Get-RMSFileStatus, Get-RMSServer, Get-RMSServerAuthentication...}                                                                                                                         

    Directory: C:\Program Files\Microsoft Monitoring Agent\Agent\PowerShell

ModuleType Version    Name                                ExportedCommands                                                                                                                                                                                                    
---------- -------    ----                                ----------------                                                                                                                                                                                                    
Script     3.9        Microsoft.Assessments.AADApplica... {Clear-MicrosoftAssessmentsApplication, Connect-MicrosoftAssessmentsApplication, Export-MicrosoftAssessmentsApplicationSettings, Import-MicrosoftAssessmentsApplicationSettings...}                                 
Binary     1.0.0.0    Microsoft.MonitoringAgent.PowerS... {Checkpoint-WebApplicationMonitoring, Get-WebApplicationMonitoringStatus, Start-WebApplicationMonitoring, Stop-WebApplicationMonitoring}                                                                            
Binary     8.0.1.967  Microsoft.PowerShell.Oms.Assessm... {Start-ADAssessment, Start-ADSecurityAssessment, Start-AzureAssessment, Start-ExchangeAssessment...}                                                                                                                

Debug output

PS C:\Users\benjamin.laufer>  $DebugPreference='Continue'
PS C:\Users\benjamin.laufer> Get-AzLocation |clip
DEBUG: 4:55:48 PM - GetAzureLocationCmdlet begin processing with ParameterSet '__AllParameterSets'.
DEBUG: 4:55:48 PM - using account id 'xxx'...
DEBUG: [Common.Authentication]: Authenticating using Account: 'xxx', environment: 'AzureCloud', tenant: 'xxx'
DEBUG: 4:55:48 PM - [SilentAuthenticator] Calling SharedTokenCacheCredential.GetTokenAsync - TenantId:'xxx', Scopes:'https://management.core.windows.net//.default', AuthorityHost:'https://login.microsoftonline.com/',
UserId:'xxx'
DEBUG: SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] Azure region was not configured or could not be discovered. Not using a regional authority.
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48] Found 1 cache accounts and 0 broker accounts
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48] Returning 1 accounts
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] MSAL MSAL.Desktop with assembly version '4.30.1.0'. CorrelationId(9b5179fb-6f03-4121-9f7b-a39a433fae0e)
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] === AcquireTokenSilent Parameters ===
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] LoginHint provided: False
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] Account provided: True
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] ForceRefresh: False
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ]
=== Request Data ===
Authority Provided? - True
Scopes - https://management.core.windows.net//.default
Extra Query Params Keys (space separated) -
ApiId - AcquireTokenSilent
IsConfidentialClient - False
SendX5C - False
LoginHint ? False
IsBrokerConfigured - False
HomeAccountId - False
CorrelationId - 9b5179fb-6f03-4121-9f7b-a39a433fae0e
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] === Token Acquisition (SilentRequest) started:

 Authority Host: login.microsoftonline.com
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] Azure region was not configured or could not be discovered. Not using a regional authority.
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] Access token is not expired. Returning the found cache entry. [Current time (09/20/2021 20:55:48) - Expiration Time (09/20/2021 21:07:55 +00:00) - Extended Expiration Time
(09/20/2021 21:07:55 +00:00)]
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] Returning access token found in cache. RefreshOn exists ? False
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] Fetched access token from host login.microsoftonline.com.
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] === Token Acquisition finished successfully. An access token was returned with Expiration Time: 09/20/2021 21:07:55 +00:00 and Scopes
https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default
DEBUG: SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:  ExpiresOn: 2021-09-20T21:07:55.0000000+00:00
DEBUG: [Common.Authentication]: Received token with LoginType 'User', Tenant: 'xxx', UserId: 'xxx'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/xxx/locations?api-version=2016-06-01

Headers:
x-ms-client-request-id        : ed576b63-ba88-4fc9-8b43-a5fa8fdc1a76
accept-language               : en-US

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Pragma                        : no-cache
x-ms-ratelimit-remaining-subscription-reads: 11999
x-ms-request-id               : 4e9e2d9d-f2f1-4712-bc1d-4e8e40c4e165
x-ms-correlation-request-id   : 4e9e2d9d-f2f1-4712-bc1d-4e8e40c4e165
x-ms-routing-request-id       : CANADACENTRAL:20210920T205549Z:4e9e2d9d-f2f1-4712-bc1d-4e8e40c4e165
Strict-Transport-Security     : max-age=31536000; includeSubDomains
X-Content-Type-Options        : nosniff
Cache-Control                 : no-cache
Date                          : Mon, 20 Sep 2021 20:55:48 GMT

Body:
{
  "value": [
    {
      "id": "/subscriptions/xxx/locations/eastasia",
      "name": "eastasia",
      "displayName": "East Asia",
      "longitude": "114.188",
      "latitude": "22.267"
    },
    {
      "id": "/subscriptions/xxx/locations/southeastasia",
      "name": "southeastasia",
      "displayName": "Southeast Asia",
      "longitude": "103.833",
      "latitude": "1.283"
    },
    {
      "id": "/subscriptions/xxx/locations/centralus",
      "name": "centralus",
      "displayName": "Central US",
      "longitude": "-93.6208",
      "latitude": "41.5908"
    },
    {
      "id": "/subscriptions/xxx/locations/eastus",
      "name": "eastus",
      "displayName": "East US",
      "longitude": "-79.8164",
      "latitude": "37.3719"
    },
    {
      "id": "/subscriptions/xxx/locations/eastus2",
      "name": "eastus2",
      "displayName": "East US 2",
      "longitude": "-78.3889",
      "latitude": "36.6681"
    },
    {
      "id": "/subscriptions/xxx/locations/westus",
      "name": "westus",
      "displayName": "West US",
      "longitude": "-122.417",
      "latitude": "37.783"
    },
    {
      "id": "/subscriptions/xxx/locations/northcentralus",
      "name": "northcentralus",
      "displayName": "North Central US",
      "longitude": "-87.6278",
      "latitude": "41.8819"
    },
    {
      "id": "/subscriptions/xxx/locations/southcentralus",
      "name": "southcentralus",
      "displayName": "South Central US",
      "longitude": "-98.5",
      "latitude": "29.4167"
    },
    {
      "id": "/subscriptions/xxx/locations/northeurope",
      "name": "northeurope",
      "displayName": "North Europe",
      "longitude": "-6.2597",
      "latitude": "53.3478"
    },
    {
      "id": "/subscriptions/xxx/locations/westeurope",
      "name": "westeurope",
      "displayName": "West Europe",
      "longitude": "4.9",
      "latitude": "52.3667"
    },
    {
      "id": "/subscriptions/xxx/locations/japanwest",
      "name": "japanwest",
      "displayName": "Japan West",
      "longitude": "135.5022",
      "latitude": "34.6939"
    },
    {
      "id": "/subscriptions/xxx/locations/japaneast",
      "name": "japaneast",
      "displayName": "Japan East",
      "longitude": "139.77",
      "latitude": "35.68"
    },
    {
      "id": "/subscriptions/xxx/locations/brazilsouth",
      "name": "brazilsouth",
      "displayName": "Brazil South",
      "longitude": "-46.633",
      "latitude": "-23.55"
    },
    {
      "id": "/subscriptions/xxx/locations/australiaeast",
      "name": "australiaeast",
      "displayName": "Australia East",
      "longitude": "151.2094",
      "latitude": "-33.86"
    },
    {
      "id": "/subscriptions/xxx/locations/australiasoutheast",
      "name": "australiasoutheast",
      "displayName": "Australia Southeast",
      "longitude": "144.9631",
      "latitude": "-37.8136"
    },
    {
      "id": "/subscriptions/xxx/locations/southindia",
      "name": "southindia",
      "displayName": "South India",
      "longitude": "80.1636",
      "latitude": "12.9822"
    },
    {
      "id": "/subscriptions/xxx/locations/centralindia",
      "name": "centralindia",
      "displayName": "Central India",
      "longitude": "73.9197",
      "latitude": "18.5822"
    },
    {
      "id": "/subscriptions/xxx/locations/westindia",
      "name": "westindia",
      "displayName": "West India",
      "longitude": "72.868",
      "latitude": "19.088"
    },
    {
      "id": "/subscriptions/xxx/locations/jioindiawest",
      "name": "jioindiawest",
      "displayName": "Jio India West",
      "longitude": "70.05773",
      "latitude": "22.470701"
    },
    {
      "id": "/subscriptions/xxx/locations/jioindiacentral",
      "name": "jioindiacentral",
      "displayName": "Jio India Central",
      "longitude": "79.08886",
      "latitude": "21.146633"
    },
    {
      "id": "/subscriptions/xxx/locations/canadacentral",
      "name": "canadacentral",
      "displayName": "Canada Central",
      "longitude": "-79.383",
      "latitude": "43.653"
    },
    {
      "id": "/subscriptions/xxx/locations/canadaeast",
      "name": "canadaeast",
      "displayName": "Canada East",
      "longitude": "-71.217",
      "latitude": "46.817"
    },
    {
      "id": "/subscriptions/xxx/locations/uksouth",
      "name": "uksouth",
      "displayName": "UK South",
      "longitude": "-0.799",
      "latitude": "50.941"
    },
    {
      "id": "/subscriptions/xxx/locations/ukwest",
      "name": "ukwest",
      "displayName": "UK West",
      "longitude": "-3.084",
      "latitude": "53.427"
    },
    {
      "id": "/subscriptions/xxx/locations/westcentralus",
      "name": "westcentralus",
      "displayName": "West Central US",
      "longitude": "-110.234",
      "latitude": "40.890"
    },
    {
      "id": "/subscriptions/xxx/locations/westus2",
      "name": "westus2",
      "displayName": "West US 2",
      "longitude": "-119.852",
      "latitude": "47.233"
    },
    {
      "id": "/subscriptions/xxx/locations/koreacentral",
      "name": "koreacentral",
      "displayName": "Korea Central",
      "longitude": "126.9780",
      "latitude": "37.5665"
    },
    {
      "id": "/subscriptions/xxx/locations/koreasouth",
      "name": "koreasouth",
      "displayName": "Korea South",
      "longitude": "129.0756",
      "latitude": "35.1796"
    },
    {
      "id": "/subscriptions/xxx/locations/francecentral",
      "name": "francecentral",
      "displayName": "France Central",
      "longitude": "2.3730",
      "latitude": "46.3772"
    },
    {
      "id": "/subscriptions/xxx/locations/francesouth",
      "name": "francesouth",
      "displayName": "France South",
      "longitude": "2.1972",
      "latitude": "43.8345"
    },
    {
      "id": "/subscriptions/xxx/locations/australiacentral",
      "name": "australiacentral",
      "displayName": "Australia Central",
      "longitude": "149.1244",
      "latitude": "-35.3075"
    },
    {
      "id": "/subscriptions/xxx/locations/australiacentral2",
      "name": "australiacentral2",
      "displayName": "Australia Central 2",
      "longitude": "149.1244",
      "latitude": "-35.3075"
    },
    {
      "id": "/subscriptions/xxx/locations/uaecentral",
      "name": "uaecentral",
      "displayName": "UAE Central",
      "longitude": "54.366669",
      "latitude": "24.466667"
    },
    {
      "id": "/subscriptions/xxx/locations/uaenorth",
      "name": "uaenorth",
      "displayName": "UAE North",
      "longitude": "55.316666",
      "latitude": "25.266666"
    },
    {
      "id": "/subscriptions/xxx/locations/southafricanorth",
      "name": "southafricanorth",
      "displayName": "South Africa North",
      "longitude": "28.218370",
      "latitude": "-25.731340"
    },
    {
      "id": "/subscriptions/xxx/locations/southafricawest",
      "name": "southafricawest",
      "displayName": "South Africa West",
      "longitude": "18.843266",
      "latitude": "-34.075691"
    },
    {
      "id": "/subscriptions/xxx/locations/switzerlandnorth",
      "name": "switzerlandnorth",
      "displayName": "Switzerland North",
      "longitude": "8.564572",
      "latitude": "47.451542"
    },
    {
      "id": "/subscriptions/xxx/locations/switzerlandwest",
      "name": "switzerlandwest",
      "displayName": "Switzerland West",
      "longitude": "6.143158",
      "latitude": "46.204391"
    },
    {
      "id": "/subscriptions/xxx/locations/germanynorth",
      "name": "germanynorth",
      "displayName": "Germany North",
      "longitude": "8.806422",
      "latitude": "53.073635"
    },
    {
      "id": "/subscriptions/xxx/locations/germanywestcentral",
      "name": "germanywestcentral",
      "displayName": "Germany West Central",
      "longitude": "8.682127",
      "latitude": "50.110924"
    },
    {
      "id": "/subscriptions/xxx/locations/norwaywest",
      "name": "norwaywest",
      "displayName": "Norway West",
      "longitude": "5.733107",
      "latitude": "58.969975"
    },
    {
      "id": "/subscriptions/xxx/locations/norwayeast",
      "name": "norwayeast",
      "displayName": "Norway East",
      "longitude": "10.752245",
      "latitude": "59.913868"
    },
    {
      "id": "/subscriptions/xxx/locations/brazilsoutheast",
      "name": "brazilsoutheast",
      "displayName": "Brazil Southeast",
      "longitude": "-43.2075",
      "latitude": "-22.90278"
    },
    {
      "id": "/subscriptions/xxx/locations/westus3",
      "name": "westus3",
      "displayName": "West US 3",
      "longitude": "-112.074036",
      "latitude": "33.448376"
    }
  ]
}

DEBUG: [Common.Authentication]: Authenticating using Account: 'xxx', environment: 'AzureCloud', tenant: 'xxx'
DEBUG: 4:55:49 PM - [SilentAuthenticator] Calling SharedTokenCacheCredential.GetTokenAsync - TenantId:'xxx', Scopes:'https://management.core.windows.net//.default', AuthorityHost:'https://login.microsoftonline.com/',
UserId:'xxx'
DEBUG: SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] Azure region was not configured or could not be discovered. Not using a regional authority.
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49] Found 1 cache accounts and 0 broker accounts
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49] Returning 1 accounts
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] MSAL MSAL.Desktop with assembly version '4.30.1.0'. CorrelationId(e5dfaf25-6d1c-4577-b8be-97069d5dcad1)
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] === AcquireTokenSilent Parameters ===
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] LoginHint provided: False
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] Account provided: True
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] ForceRefresh: False
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ]
=== Request Data ===
Authority Provided? - True
Scopes - https://management.core.windows.net//.default
Extra Query Params Keys (space separated) -
ApiId - AcquireTokenSilent
IsConfidentialClient - False
SendX5C - False
LoginHint ? False
IsBrokerConfigured - False
HomeAccountId - False
CorrelationId - e5dfaf25-6d1c-4577-b8be-97069d5dcad1
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] === Token Acquisition (SilentRequest) started:

 Authority Host: login.microsoftonline.com
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] Azure region was not configured or could not be discovered. Not using a regional authority.
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] Access token is not expired. Returning the found cache entry. [Current time (09/20/2021 20:55:49) - Expiration Time (09/20/2021 21:07:55 +00:00) - Extended Expiration Time
(09/20/2021 21:07:55 +00:00)]
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] Returning access token found in cache. RefreshOn exists ? False
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] Fetched access token from host login.microsoftonline.com.
DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] === Token Acquisition finished successfully. An access token was returned with Expiration Time: 09/20/2021 21:07:55 +00:00 and Scopes
https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default
DEBUG: SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:  ExpiresOn: 2021-09-20T21:07:55.0000000+00:00
DEBUG: [Common.Authentication]: Received token with LoginType 'User', Tenant: 'xxx', UserId: 'xxx'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/xxx/providers?api-version=2021-04-01

Headers:
x-ms-client-request-id        : ed576b63-ba88-4fc9-8b43-a5fa8fdc1a76
accept-language               : en-US

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
InternalServerError

Headers:
Pragma                        : no-cache
x-ms-failure-cause            : gateway
x-ms-ratelimit-remaining-subscription-reads: 11999
x-ms-request-id               : d6b197c5-c159-4bb7-a48b-a8e58136f6bc
x-ms-correlation-request-id   : d6b197c5-c159-4bb7-a48b-a8e58136f6bc
x-ms-routing-request-id       : CANADACENTRAL:20210920T205619Z:d6b197c5-c159-4bb7-a48b-a8e58136f6bc
Strict-Transport-Security     : max-age=31536000; includeSubDomains
X-Content-Type-Options        : nosniff
Connection                    : close
Cache-Control                 : no-cache
Date                          : Mon, 20 Sep 2021 20:56:18 GMT

Body:
{
  "error": {
    "code": "InternalServerError",
    "message": "Encountered internal server error. Diagnostic information: timestamp '20210920T205619Z', subscription id 'xxx', tracking id 'd6b197c5-c159-4bb7-a48b-a8e58136f6bc', request correlation id
'd6b197c5-c159-4bb7-a48b-a8e58136f6bc'."
  }
}

Get-AzLocation : Encountered internal server error. Diagnostic information: timestamp '20210920T205619Z', subscription id 'xxx', tracking id 'd6b197c5-c159-4bb7-a48b-a8e58136f6bc', request correlation id
'd6b197c5-c159-4bb7-a48b-a8e58136f6bc'.
StatusCode: 500
ReasonPhrase: Internal Server Error
OperationID : d6b197c5-c159-4bb7-a48b-a8e58136f6bc
At line:1 char:1
+ Get-AzLocation |clip
+ ~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Get-AzLocation], ResourceManagerCloudException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.GetAzureLocationCmdlet

DEBUG: AzureQoSEvent: Module: Az.Resources:4.3.1; CommandName: Get-AzLocation; PSVersion: 5.1.19041.1237; IsSuccess: False; Duration: 00:00:30.6189486; Exception: Encountered internal server error. Diagnostic information: timestamp '20210920T205619Z', subscription id
'xxx', tracking id 'd6b197c5-c159-4bb7-a48b-a8e58136f6bc', request correlation id 'd6b197c5-c159-4bb7-a48b-a8e58136f6bc'.
StatusCode: 500
ReasonPhrase: Internal Server Error
OperationID : d6b197c5-c159-4bb7-a48b-a8e58136f6bc;
DEBUG: Finish sending metric.
DEBUG: 4:56:20 PM - GetAzureLocationCmdlet end processing.
PS C:\Users\benjamin.laufer>

Error output

Resolve-AzError DEBUG: 4:56:37 PM - ResolveError begin processing with ParameterSet 'AnyErrorParameterSet'. DEBUG: 4:56:37 PM - using account id 'xxx'... 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: 19

RequestId : Message : Encountered internal server error. Diagnostic information: timestamp '20210920T205619Z', subscription id 'xxx', tracking id 'd6b197c5-c159-4bb7-a48b-a8e58136f6bc', request correlation id 'd6b197c5-c159-4bb7-a48b-a8e58136f6bc'. StatusCode: 500 ReasonPhrase: Internal Server Error OperationID : d6b197c5-c159-4bb7-a48b-a8e58136f6bc ServerMessage : ServerResponse : RequestMessage : InvocationInfo : {Get-AzLocation} Line : Get-AzLocation |clip Position : At line:1 char:1

RequestId : Message : Encountered internal server error. Diagnostic information: timestamp '20210920T205204Z', subscription id 'xxx', tracking id '11191763-f6ba-40e7-8dc0-295bcb8e4792', request correlation id '11191763-f6ba-40e7-8dc0-295bcb8e4792'. StatusCode: 500 ReasonPhrase: Internal Server Error OperationID : 11191763-f6ba-40e7-8dc0-295bcb8e4792 ServerMessage : ServerResponse : RequestMessage : InvocationInfo : {Get-AzLocation} Line : Get-AzLocation Position : At line:1 char:1

Message : The specified module 'Az.Accounts' was not loaded because no valid module file was found in any module directory. StackTrace : Exception : System.IO.FileNotFoundException InvocationInfo : {Import-Module} Line : Import-Module Az.Accounts -ErrorAction SilentlyContinue -ErrorVariable importError

Position : At C:\Users\benjamin.laufer\OneDrive - Mediterranean Shipping Company\my files\WindowsPowerShell\profile.ps1:4 char:1

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

DEBUG: AzureQoSEvent: Module: Az.Accounts:2.5.3; CommandName: Resolve-AzError; PSVersion: 5.1.19041.1237; IsSuccess: True; Duration: 00:00:00.2941019 DEBUG: Finish sending metric. DEBUG: 4:56:38 PM - ResolveError end processing.

dingmeng-xue commented 3 years ago

HTTP 500 indicates there is server error. Please try it later.

ghost commented 3 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @armleads-azure.

Issue Details
## Description Get-AzLocation returns StatusCode: 500 ReasonPhrase: Internal Server Error ## Steps to reproduce ```powershell Get-AzLocation ``` ## Environment data ``` Name Value ---- ----- PSVersion 5.1.19041.1237 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.19041.1237 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 ``` ## Module versions ```powershell Directory: C:\Users\benjamin.laufer\OneDrive - Mediterranean Shipping Company\my files\WindowsPowerShell\Modules ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Script 2.5.3 Az.Accounts {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzContextAutosave...} Script 1.1.1 Az.Advisor {Get-AzAdvisorRecommendation, Enable-AzAdvisorRecommendation, Disable-AzAdvisorRecommendation, Get-AzAdvisorConfiguration...} Script 2.4.0 Az.Aks {Get-AzAksCluster, New-AzAksCluster, Remove-AzAksCluster, Import-AzAksCredential...} Script 1.1.4 Az.AnalysisServices {Resume-AzAnalysisServicesServer, Suspend-AzAnalysisServicesServer, Get-AzAnalysisServicesServer, Remove-AzAnalysisServicesServer...} Script 2.3.0 Az.ApiManagement {Add-AzApiManagementApiToGateway, Add-AzApiManagementApiToProduct, Add-AzApiManagementProductToGroup, Add-AzApiManagementRegion...} Script 1.0.0 Az.AppConfiguration {Get-AzAppConfigurationStore, Get-AzAppConfigurationStoreKey, New-AzAppConfigurationStore, New-AzAppConfigurationStoreKey...} Script 1.2.0 Az.ApplicationInsights {Get-AzApplicationInsights, New-AzApplicationInsights, Remove-AzApplicationInsights, Update-AzApplicationInsights...} Script 1.7.1 Az.Automation {Get-AzAutomationHybridWorkerGroup, Remove-AzAutomationHybridWorkerGroup, Get-AzAutomationJobOutputRecord, Import-AzAutomationDscNodeConfiguration...} Script 3.1.0 Az.Batch {Remove-AzBatchAccount, Get-AzBatchAccount, Get-AzBatchAccountKey, New-AzBatchAccount...} Script 2.0.0 Az.Billing {Get-AzBillingInvoice, Get-AzBillingPeriod, Get-AzEnrollmentAccount, Get-AzConsumptionBudget...} Script 1.8.0 Az.Cdn {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl, New-AzCdnProfile, Remove-AzCdnProfile...} Script 1.9.0 Az.CognitiveServices {Get-AzCognitiveServicesAccount, Get-AzCognitiveServicesAccountKey, Get-AzCognitiveServicesAccountSku, Get-AzCognitiveServicesAccountType...} Script 4.17.0 Az.Compute {Remove-AzAvailabilitySet, Get-AzAvailabilitySet, New-AzAvailabilitySet, Update-AzAvailabilitySet...} Script 2.1.0 Az.ContainerInstance {Add-AzContainerInstanceOutput, Get-AzContainerGroup, Get-AzContainerInstanceCachedImage, Get-AzContainerInstanceCapability...} Script 2.2.3 Az.ContainerRegistry {New-AzContainerRegistry, Get-AzContainerRegistry, Update-AzContainerRegistry, Remove-AzContainerRegistry...} Script 1.3.1 Az.CosmosDB {Get-AzCosmosDBSqlContainer, Get-AzCosmosDBSqlContainerThroughput, Get-AzCosmosDBSqlDatabase, Get-AzCosmosDBSqlDatabaseThroughput...} Script 1.1.0 Az.DataBoxEdge {Get-AzDataBoxEdgeJob, Get-AzDataBoxEdgeDevice, Invoke-AzDataBoxEdgeDevice, New-AzDataBoxEdgeDevice...} Script 1.1.0 Az.Databricks {Get-AzDatabricksVNetPeering, Get-AzDatabricksWorkspace, New-AzDatabricksVNetPeering, New-AzDatabricksWorkspace...} Script 1.14.0 Az.DataFactory {Set-AzDataFactoryV2, Update-AzDataFactoryV2, Get-AzDataFactoryV2, Remove-AzDataFactoryV2...} Script 1.0.2 Az.DataLakeAnalytics {Get-AzDataLakeAnalyticsDataSource, New-AzDataLakeAnalyticsCatalogCredential, Remove-AzDataLakeAnalyticsCatalogCredential, Set-AzDataLakeAnalyticsCatalogCredential...} Script 1.3.0 Az.DataLakeStore {Get-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreFirewallRule, Set-AzDataLakeStoreTrustedIdProvider...} Script 1.0.0 Az.DataShare {New-AzDataShareAccount, Get-AzDataShareAccount, Remove-AzDataShareAccount, New-AzDataShare...} Script 1.1.0 Az.DeploymentManager {Get-AzDeploymentManagerArtifactSource, New-AzDeploymentManagerArtifactSource, Set-AzDeploymentManagerArtifactSource, Remove-AzDeploymentManagerArtifactSource...} Script 3.0.0 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 {Get-AzDnsRecordSet, New-AzDnsRecordConfig, Remove-AzDnsRecordSet, Set-AzDnsRecordSet...} Script 1.3.0 Az.EventGrid {New-AzEventGridTopic, Get-AzEventGridTopic, Set-AzEventGridTopic, New-AzEventGridTopicKey...} Script 1.8.0 Az.EventHub {New-AzEventHubNamespace, Get-AzEventHubNamespace, Set-AzEventHubNamespace, Remove-AzEventHubNamespace...} Script 1.8.0 Az.FrontDoor {New-AzFrontDoor, Get-AzFrontDoor, Set-AzFrontDoor, Remove-AzFrontDoor...} Script 3.1.0 Az.Functions {Get-AzFunctionApp, Get-AzFunctionAppAvailableLocation, Get-AzFunctionAppPlan, Get-AzFunctionAppSetting...} Script 4.3.0 Az.HDInsight {Get-AzHDInsightJob, New-AzHDInsightSqoopJobDefinition, Wait-AzHDInsightJob, New-AzHDInsightStreamingMapReduceJobDefinition...} Script 1.3.1 Az.HealthcareApis {New-AzHealthcareApisService, Remove-AzHealthcareApisService, Set-AzHealthcareApisService, Get-AzHealthcareApisService} Script 2.7.3 Az.IotHub {Add-AzIotHubKey, Get-AzIotHubEventHubConsumerGroup, Get-AzIotHubConnectionString, Get-AzIotHubJob...} Script 3.5.0 Az.KeyVault {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCertificateOperation, Get-AzKeyVaultCertificateOperation...} Script 2.0.0 Az.Kusto {Add-AzKustoClusterLanguageExtension, Add-AzKustoDatabasePrincipal, Get-AzKustoAttachedDatabaseConfiguration, Get-AzKustoCluster...} Script 1.5.0 Az.LogicApp {Get-AzIntegrationAccountAgreement, Get-AzIntegrationAccountAssembly, Get-AzIntegrationAccountBatchConfiguration, Get-AzIntegrationAccountCallbackUrl...} Script 1.1.3 Az.MachineLearning {Move-AzMlCommitmentAssociation, Get-AzMlCommitmentAssociation, Get-AzMlCommitmentPlanUsageHistory, Remove-AzMlCommitmentPlan...} Script 1.1.1 Az.Maintenance {Get-AzApplyUpdate, Get-AzConfigurationAssignment, Get-AzMaintenanceConfiguration, Get-AzMaintenanceUpdate...} Script 2.0.0 Az.ManagedServices {Get-AzManagedServicesAssignment, New-AzManagedServicesAssignment, Remove-AzManagedServicesAssignment, Get-AzManagedServicesDefinition...} Script 1.0.2 Az.MarketplaceOrdering {Get-AzMarketplaceTerms, Set-AzMarketplaceTerms} Script 1.1.1 Az.Media {Sync-AzMediaServiceStorageKey, Set-AzMediaServiceKey, Get-AzMediaServiceKey, Get-AzMediaServiceNameAvailability...} Script 1.1.1 Az.Migrate {Get-AzMigrateDiscoveredServer, Get-AzMigrateJob, Get-AzMigrateProject, Get-AzMigrateReplicationEligibilityResult...} Script 2.7.0 Az.Monitor {Get-AzMetricDefinition, Get-AzMetric, Remove-AzLogProfile, Get-AzLogProfile...} Script 4.11.0 Az.Network {Add-AzApplicationGatewayAuthenticationCertificate, Get-AzApplicationGatewayAuthenticationCertificate, New-AzApplicationGatewayAuthenticationCertificate, Remove-AzApplicationGatewayAuthenticationCertificate...} Script 1.1.1 Az.NotificationHubs {Get-AzNotificationHub, Get-AzNotificationHubAuthorizationRule, Get-AzNotificationHubListKey, Get-AzNotificationHubPNSCredential...} Script 2.3.0 Az.OperationalInsights {New-AzOperationalInsightsAzureActivityLogDataSource, New-AzOperationalInsightsCustomLogDataSource, Disable-AzOperationalInsightsLinuxCustomLogCollection, Disable-AzOperationalInsightsIISLogCollection...} Script 1.4.1 Az.PolicyInsights {Get-AzPolicyEvent, Get-AzPolicyState, Get-AzPolicyStateSummary, Get-AzPolicyRemediation...} Script 1.1.2 Az.PowerBIEmbedded {Remove-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollectionAccessKey, Get-AzPowerBIWorkspace...} Script 1.0.3 Az.PrivateDns {Get-AzPrivateDnsZone, Remove-AzPrivateDnsZone, Set-AzPrivateDnsZone, New-AzPrivateDnsZone...} Script 4.6.0 Az.RecoveryServices {Get-AzRecoveryServicesBackupProperty, Get-AzRecoveryServicesVault, Get-AzRecoveryServicesVaultSettingsFile, New-AzRecoveryServicesVault...} Script 1.5.0 Az.RedisCache {Remove-AzRedisCachePatchSchedule, New-AzRedisCacheScheduleEntry, Get-AzRedisCachePatchSchedule, New-AzRedisCachePatchSchedule...} Script 1.0.0 Az.RedisEnterpriseCache {Export-AzRedisEnterpriseCache, Get-AzRedisEnterpriseCache, Get-AzRedisEnterpriseCacheDatabase, Get-AzRedisEnterpriseCacheKey...} Script 1.0.3 Az.Relay {New-AzRelayNamespace, Get-AzRelayNamespace, Set-AzRelayNamespace, Remove-AzRelayNamespace...} Script 1.0.0 Az.ResourceMover {Add-AzResourceMoverMoveResource, Get-AzResourceMoverMoveCollection, Get-AzResourceMoverMoveResource, Get-AzResourceMoverRequiredForResources...} Script 4.3.1 Az.Resources {Get-AzProviderOperation, Remove-AzRoleAssignment, Get-AzRoleAssignment, New-AzRoleAssignment...} Script 1.0.0 Az.Security {Get-AzSecurityAlert, Set-AzSecurityAlert, Get-AzSecurityAutoProvisioningSetting, Set-AzSecurityAutoProvisioningSetting...} Script 1.1.0 Az.SecurityInsights {Get-AzSentinelAlertRuleAction, New-AzSentinelAlertRuleAction, Remove-AzSentinelAlertRuleAction, Update-AzSentinelAlertRuleAction...} Script 1.5.0 Az.ServiceBus {New-AzServiceBusNamespace, Get-AzServiceBusNamespace, Set-AzServiceBusNamespace, Remove-AzServiceBusNamespace...} Script 3.0.1 Az.ServiceFabric {Add-AzServiceFabricClientCertificate, Add-AzServiceFabricNode, Add-AzServiceFabricNodeType, Get-AzServiceFabricCluster...} Script 1.3.0 Az.SignalR {New-AzSignalR, Get-AzSignalR, Get-AzSignalRKey, New-AzSignalRKey...} Script 3.5.0 Az.Sql {Get-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseTransparentDataEncryptionActivity, Set-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseUpgradeHint...} Script 1.1.0 Az.SqlVirtualMachine {New-AzSqlVM, Get-AzSqlVM, Update-AzSqlVM, Remove-AzSqlVM...} Script 3.11.0 Az.Storage {Get-AzStorageAccount, Get-AzStorageAccountKey, New-AzStorageAccount, New-AzStorageAccountKey...} Script 1.6.0 Az.StorageSync {Invoke-AzStorageSyncCompatibilityCheck, New-AzStorageSyncService, Get-AzStorageSyncService, Set-AzStorageSyncService...} Script 2.0.0 Az.StreamAnalytics {Get-AzStreamAnalyticsCluster, Get-AzStreamAnalyticsClusterStreamingJob, Get-AzStreamAnalyticsDefaultFunctionDefinition, Get-AzStreamAnalyticsFunction...} Script 1.0.0 Az.Support {Get-AzSupportService, Get-AzSupportProblemClassification, Get-AzSupportTicket, Get-AzSupportTicketCommunication...} Script 1.0.4 Az.TrafficManager {Add-AzTrafficManagerCustomHeaderToEndpoint, Remove-AzTrafficManagerCustomHeaderFromEndpoint, Add-AzTrafficManagerCustomHeaderToProfile, Remove-AzTrafficManagerCustomHeaderFromProfile...} Script 2.8.2 Az.Websites {Get-AzAppServicePlan, Set-AzAppServicePlan, New-AzAppServicePlan, Remove-AzAppServicePlan...} Binary 2.0.2.137 AzureAD {Add-AzureADApplicationOwner, Get-AzureADApplication, Get-AzureADApplicationExtensionProperty, Get-AzureADApplicationOwner...} Binary 2.0.2.138 AzureADPreview {Add-AzureADApplicationOwner, Get-AzureADApplication, Get-AzureADApplicationExtensionProperty, Get-AzureADApplicationOwner...} Script 1.4.7 PackageManagement {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource...} Script 2.2.5 PowerShellGet {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability...} Directory: C:\Program Files\WindowsPowerShell\Modules ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Script 1.0.1 Microsoft.PowerShell.Operation.V... {Get-OperationValidation, Invoke-OperationValidation} Script 1.0.0.0 Microsoft.SME.CredSspPolicy Script 1.3.1 PackageManagement {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource...} Binary 1.0.0.1 PackageManagement {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource...} Script 4.7.3 Pester {Describe, Context, It, Should...} Script 3.4.0 Pester {Describe, Context, It, Should...} Script 2.1.2 PowerShellGet {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability...} Script 1.0.0.1 PowerShellGet {Install-Module, Find-Module, Save-Module, Update-Module...} Script 2.0.0 PSReadline {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSReadLineOption...} Script 2.1.1 PuppetDevelopmentKit pdk Script 1.0 RemoteDesktopManager.PowerShellM... Script 1.0.12 SpeculationControl Get-SpeculationControlSettings Directory: C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Manifest 1.0.1.0 ActiveDirectory {Add-ADCentralAccessPolicyMember, Add-ADComputerServiceAccount, Add-ADDomainControllerPasswordReplicationPolicy, Add-ADFineGrainedPasswordPolicySubject...} Manifest 1.0.0.0 AppBackgroundTask {Disable-AppBackgroundTaskDiagnosticLog, Enable-AppBackgroundTaskDiagnosticLog, Set-AppBackgroundTaskResourcePolicy, Unregister-AppBackgroundTask...} Manifest 2.0.0.0 AppLocker {Get-AppLockerFileInformation, Get-AppLockerPolicy, New-AppLockerPolicy, Set-AppLockerPolicy...} Manifest 1.0.0.0 AppvClient {Add-AppvClientConnectionGroup, Add-AppvClientPackage, Add-AppvPublishingServer, Disable-Appv...} Manifest 2.0.1.0 Appx {Add-AppxPackage, Get-AppxPackage, Get-AppxPackageManifest, Remove-AppxPackage...} Script 1.0.0.0 AssignedAccess {Clear-AssignedAccess, Get-AssignedAccess, Set-AssignedAccess} Manifest 1.0 BestPractices {Get-BpaModel, Get-BpaResult, Invoke-BpaModel, Set-BpaResult} Manifest 1.0.0.0 BitLocker {Unlock-BitLocker, Suspend-BitLocker, Resume-BitLocker, Remove-BitLockerKeyProtector...} Manifest 2.0.0.0 BitsTransfer {Add-BitsFile, Complete-BitsTransfer, Get-BitsTransfer, Remove-BitsTransfer...} Manifest 1.0.0.0 BranchCache {Add-BCDataCacheExtension, Clear-BCCache, Disable-BC, Disable-BCDowngrading...} Manifest 1.0.0.0 CimCmdlets {Get-CimAssociatedInstance, Get-CimClass, Get-CimInstance, Get-CimSession...} Manifest 1.0 ConfigCI {Get-SystemDriver, New-CIPolicyRule, New-CIPolicy, Get-CIPolicy...} Manifest 1.0 ConfigDefender {Get-MpPreference, Set-MpPreference, Add-MpPreference, Remove-MpPreference...} Manifest 1.0 Defender {Get-MpPreference, Set-MpPreference, Add-MpPreference, Remove-MpPreference...} Manifest 1.0.2.0 DeliveryOptimization {Delete-DeliveryOptimizationCache, Set-DeliveryOptimizationStatus, Get-DeliveryOptimizationLog, Get-DeliveryOptimizationLogAnalysis...} Manifest 1.0.0.0 DirectAccessClientComponents {Disable-DAManualEntryPointSelection, Enable-DAManualEntryPointSelection, Get-DAClientExperienceConfiguration, Get-DAEntryPointTableItem...} Script 3.0 Dism {Add-AppxProvisionedPackage, Add-WindowsDriver, Add-WindowsCapability, Add-WindowsImage...} Manifest 1.0.0.0 DnsClient {Resolve-DnsName, Clear-DnsClientCache, Get-DnsClient, Get-DnsClientCache...} Manifest 1.0.0.0 EventTracingManagement {Start-EtwTraceSession, New-EtwTraceSession, Get-EtwTraceSession, Update-EtwTraceSession...} Manifest 1.0.0.0 HgsClient {Get-HgsAttestationBaselinePolicy, Get-HgsClientConfiguration, Test-HgsClientConfiguration, Set-HgsClientConfiguration...} Manifest 1.0.0.0 HgsDiagnostics {New-HgsTraceTarget, Get-HgsTrace, Get-HgsTraceFileData, Test-HgsTraceTarget} Binary 1.0.0.0 HostComputeService {Get-ComputeProcess, Stop-ComputeProcess} Manifest 1.0.0.1 HostNetworkingService {Remove-HnsNamespace, Remove-HnsEndpoint, Get-HnsEndpoint, Remove-HnsPolicyList...} Binary 2.0.0.0 Hyper-V {Add-VMAssignableDevice, Add-VMDvdDrive, Add-VMFibreChannelHba, Add-VMGpuPartitionAdapter...} Binary 1.1 Hyper-V {Add-VMDvdDrive, Add-VMFibreChannelHba, Add-VMHardDiskDrive, Add-VMMigrationNetwork...} Manifest 2.0.0.0 International {Get-WinDefaultInputMethodOverride, Set-WinDefaultInputMethodOverride, Get-WinHomeLocation, Set-WinHomeLocation...} Manifest 1.0.0.0 iSCSI {Get-IscsiTargetPortal, New-IscsiTargetPortal, Remove-IscsiTargetPortal, Update-IscsiTargetPortal...} Manifest 2.0.0.0 IscsiTarget {Add-ClusteriSCSITargetServerRole, Add-IscsiVirtualDiskTargetMapping, Checkpoint-IscsiVirtualDisk, Convert-IscsiVirtualDisk...} Script 1.0.0.0 ISE {New-IseSnippet, Import-IseSnippet, Get-IseSnippet} Manifest 1.0.0.0 Kds {Add-KdsRootKey, Get-KdsRootKey, Test-KdsRootKey, Set-KdsConfiguration...} Manifest 1.0.1.0 Microsoft.PowerShell.Archive {Compress-Archive, Expand-Archive} Manifest 3.0.0.0 Microsoft.PowerShell.Diagnostics {Get-WinEvent, Get-Counter, Import-Counter, Export-Counter...} Manifest 3.0.0.0 Microsoft.PowerShell.Host {Start-Transcript, Stop-Transcript} Manifest 1.0.0.0 Microsoft.PowerShell.LocalAccounts {Add-LocalGroupMember, Disable-LocalUser, Enable-LocalUser, Get-LocalGroup...} Manifest 3.1.0.0 Microsoft.PowerShell.Management {Add-Content, Clear-Content, Clear-ItemProperty, Join-Path...} Script 1.0 Microsoft.PowerShell.ODataUtils Export-ODataEndpointProxy Manifest 3.0.0.0 Microsoft.PowerShell.Security {Get-Acl, Set-Acl, Get-PfxCertificate, Get-Credential...} Manifest 3.1.0.0 Microsoft.PowerShell.Utility {Format-List, Format-Custom, Format-Table, Format-Wide...} Manifest 3.0.0.0 Microsoft.WSMan.Management {Disable-WSManCredSSP, Enable-WSManCredSSP, Get-WSManCredSSP, Set-WSManQuickConfig...} Manifest 1.0 MMAgent {Disable-MMAgent, Enable-MMAgent, Set-MMAgent, Get-MMAgent...} Manifest 1.0.0.0 MsDtc {New-DtcDiagnosticTransaction, Complete-DtcDiagnosticTransaction, Join-DtcDiagnosticResourceManager, Receive-DtcDiagnosticTransaction...} Binary 1.0.0.0 MSMQ {Clear-MsmqOutgoingQueue, Clear-MsmqQueue, Enable-MsmqCertificate, Get-MsmqCertificate...} Manifest 2.0.0.0 NetAdapter {Disable-NetAdapter, Disable-NetAdapterBinding, Disable-NetAdapterChecksumOffload, Disable-NetAdapterEncapsulatedPacketTaskOffload...} Manifest 1.0.0.0 NetConnection {Get-NetConnectionProfile, Set-NetConnectionProfile} Manifest 1.0.0.0 NetDiagnostics Get-NetView Manifest 1.0.0.0 NetEventPacketCapture {New-NetEventSession, Remove-NetEventSession, Get-NetEventSession, Set-NetEventSession...} Manifest 2.0.0.0 NetLbfo {Add-NetLbfoTeamMember, Add-NetLbfoTeamNic, Get-NetLbfoTeam, Get-NetLbfoTeamMember...} Manifest 1.0 NetLldpAgent {Enable-NetLldpAgent, Disable-NetLldpAgent, Get-NetLldpAgent} Manifest 1.0.0.0 NetNat {Get-NetNat, Get-NetNatExternalAddress, Get-NetNatStaticMapping, Get-NetNatSession...} Manifest 2.0.0.0 NetQos {Get-NetQosPolicy, Set-NetQosPolicy, Remove-NetQosPolicy, New-NetQosPolicy} Manifest 2.0.0.0 NetSecurity {Get-DAPolicyChange, New-NetIPsecAuthProposal, New-NetIPsecMainModeCryptoProposal, New-NetIPsecQuickModeCryptoProposal...} Manifest 1.0.0.0 NetSwitchTeam {New-NetSwitchTeam, Remove-NetSwitchTeam, Get-NetSwitchTeam, Rename-NetSwitchTeam...} Manifest 1.0.0.0 NetTCPIP {Get-NetIPAddress, Get-NetIPInterface, Get-NetIPv4Protocol, Get-NetIPv6Protocol...} Manifest 1.0.0.0 NetworkConnectivityStatus {Get-DAConnectionStatus, Get-NCSIPolicyConfiguration, Reset-NCSIPolicyConfiguration, Set-NCSIPolicyConfiguration} Manifest 1.0.0.0 NetworkControllerDiagnostics {Get-NetworkControllerDeploymentInfo, Get-NetworkControllerManagedDevices, Debug-NetworkController, Debug-NetworkControllerConfigurationState...} Manifest 1.0.0.0 NetworkSwitchManager {Disable-NetworkSwitchEthernetPort, Enable-NetworkSwitchEthernetPort, Get-NetworkSwitchEthernetPort, Remove-NetworkSwitchEthernetPortIPAddress...} Manifest 1.0.0.0 NetworkTransition {Add-NetIPHttpsCertBinding, Disable-NetDnsTransitionConfiguration, Disable-NetIPHttpsProfile, Disable-NetNatTransitionConfiguration...} Manifest 1.0 NFS {Get-NfsMappedIdentity, Get-NfsNetgroup, Install-NfsMappingStore, New-NfsMappedIdentity...} Manifest 1.0.0.0 PcsvDevice {Get-PcsvDevice, Start-PcsvDevice, Stop-PcsvDevice, Restart-PcsvDevice...} Binary 1.0.0.0 PersistentMemory {Get-PmemDisk, Get-PmemPhysicalDevice, Get-PmemUnusedRegion, New-PmemDisk...} Manifest 1.0.0.0 PKI {Add-CertificateEnrollmentPolicyServer, Export-Certificate, Export-PfxCertificate, Get-CertificateAutoEnrollmentPolicy...} Manifest 1.0.0.0 PnpDevice {Get-PnpDevice, Get-PnpDeviceProperty, Enable-PnpDevice, Disable-PnpDevice} Manifest 1.1 PrintManagement {Add-Printer, Add-PrinterDriver, Add-PrinterPort, Get-PrintConfiguration...} Binary 1.0.12 ProcessMitigations {Get-ProcessMitigation, Set-ProcessMitigation, ConvertTo-ProcessMitigationPolicy} Script 3.0 Provisioning {Install-ProvisioningPackage, Export-ProvisioningPackage, Install-TrustedProvisioningCertificate, Export-Trace...} Manifest 1.1 PSDesiredStateConfiguration {Set-DscLocalConfigurationManager, Start-DscConfiguration, Test-DscConfiguration, Publish-DscConfiguration...} Script 1.0.0.0 PSDiagnostics {Disable-PSTrace, Disable-PSWSManCombinedTrace, Disable-WSManTrace, Enable-PSTrace...} Binary 1.1.0.0 PSScheduledJob {New-JobTrigger, Add-JobTrigger, Remove-JobTrigger, Get-JobTrigger...} Manifest 2.0.0.0 PSWorkflow {New-PSWorkflowExecutionOption, New-PSWorkflowSession, nwsn} Manifest 1.0.0.0 PSWorkflowUtility Invoke-AsWorkflow Manifest 2.0.0.0 RemoteDesktop {Get-RDCertificate, Set-RDCertificate, New-RDCertificate, New-RDVirtualDesktopDeployment...} Manifest 1.0.0.0 ScheduledTasks {Get-ScheduledTask, Set-ScheduledTask, Register-ScheduledTask, Unregister-ScheduledTask...} Manifest 2.0.0.0 SecureBoot {Confirm-SecureBootUEFI, Set-SecureBootUEFI, Get-SecureBootUEFI, Format-SecureBootUEFI...} Script 2.0.0.0 ServerManager {Get-WindowsFeature, Install-WindowsFeature, Uninstall-WindowsFeature, Enable-ServerManagerStandardUserRemoting...} Cim 1.0.0.0 ServerManagerTasks {Get-SMCounterSample, Get-SMPerformanceCollector, Start-SMPerformanceCollector, Stop-SMPerformanceCollector...} Manifest 2.0.0.0 SmbShare {Get-SmbShare, Remove-SmbShare, Set-SmbShare, Block-SmbShareAccess...} Manifest 2.0.0.0 SmbWitness {Get-SmbWitnessClient, Move-SmbWitnessClient, gsmbw, msmbw...} Manifest 1.0.0.1 StartLayout {Export-StartLayout, Import-StartLayout, Export-StartLayoutEdgeAssets, Get-StartApps} Manifest 2.0.0.0 Storage {Add-InitiatorIdToMaskingSet, Add-PartitionAccessPath, Add-PhysicalDisk, Add-StorageFaultDomain...} Manifest 1.0.0.0 StorageBusCache {Clear-StorageBusDisk, Disable-StorageBusCache, Disable-StorageBusDisk, Enable-StorageBusCache...} Manifest 2.0.0.0 TLS {New-TlsSessionTicketKey, Enable-TlsSessionTicketKey, Disable-TlsSessionTicketKey, Export-TlsSessionTicketKey...} Manifest 1.0.0.0 TroubleshootingPack {Get-TroubleshootingPack, Invoke-TroubleshootingPack} Manifest 2.0.0.0 TrustedPlatformModule {Get-Tpm, Initialize-Tpm, Clear-Tpm, Unblock-Tpm...} Binary 2.1.639.0 UEV {Clear-UevConfiguration, Clear-UevAppxPackage, Restore-UevBackup, Set-UevTemplateProfile...} Manifest 2.0.0.0 VpnClient {Add-VpnConnection, Set-VpnConnection, Remove-VpnConnection, Get-VpnConnection...} Manifest 1.0.0.0 Wdac {Get-OdbcDriver, Set-OdbcDriver, Get-OdbcDsn, Add-OdbcDsn...} Manifest 2.0.0.0 Whea {Get-WheaMemoryPolicy, Set-WheaMemoryPolicy} Manifest 1.0.0.0 WindowsDeveloperLicense {Get-WindowsDeveloperLicense, Unregister-WindowsDeveloperLicense, Show-WindowsDeveloperLicenseRegistration} Script 1.0 WindowsErrorReporting {Enable-WindowsErrorReporting, Disable-WindowsErrorReporting, Get-WindowsErrorReporting} Manifest 1.0.0.0 WindowsSearch {Get-WindowsSearchSetting, Set-WindowsSearchSetting} Manifest 1.0.0.0 WindowsUpdate Get-WindowsUpdateLog Manifest 1.0.0.2 WindowsUpdateProvider {Get-WUAVersion, Get-WULastInstallationDate, Get-WULastScanSuccessDate, Get-WUIsPendingReboot...} Directory: C:\Program Files\Microsoft Monitoring Agent\Agent\AzureAutomation\7.3.702.0 ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Binary 1.0 HybridRegistration {Add-HybridRunbookWorker, Remove-HybridRunbookWorker, Set-HybridRunbookWorkerSignatureValidation} Directory: C:\Program Files\Microsoft Monitoring Agent\Agent\AzureAutomation\7.3.702.0\HybridAgent\Modules ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Binary 1.0 Orchestrator.AssetManagement.Cmd... {Get-AutomationCertificate, Get-AutomationConnection, Get-SoftwareUpdateConfigurationMachines, Initialize-AutomationSoftwareUpdateConfiguration...} Directory: C:\Program Files (x86)\Microsoft Azure Information Protection\Powershell ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Binary 1.54.59.0 AzureInformationProtection {Clear-RMSAuthentication, Get-RMSFileStatus, Get-RMSServer, Get-RMSServerAuthentication...} Directory: C:\Program Files\Microsoft Monitoring Agent\Agent\PowerShell ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Script 3.9 Microsoft.Assessments.AADApplica... {Clear-MicrosoftAssessmentsApplication, Connect-MicrosoftAssessmentsApplication, Export-MicrosoftAssessmentsApplicationSettings, Import-MicrosoftAssessmentsApplicationSettings...} Binary 1.0.0.0 Microsoft.MonitoringAgent.PowerS... {Checkpoint-WebApplicationMonitoring, Get-WebApplicationMonitoringStatus, Start-WebApplicationMonitoring, Stop-WebApplicationMonitoring} Binary 8.0.1.967 Microsoft.PowerShell.Oms.Assessm... {Start-ADAssessment, Start-ADSecurityAssessment, Start-AzureAssessment, Start-ExchangeAssessment...} ``` ## Debug output ``` PS C:\Users\benjamin.laufer> $DebugPreference='Continue' PS C:\Users\benjamin.laufer> Get-AzLocation |clip DEBUG: 4:55:48 PM - GetAzureLocationCmdlet begin processing with ParameterSet '__AllParameterSets'. DEBUG: 4:55:48 PM - using account id 'xxx'... DEBUG: [Common.Authentication]: Authenticating using Account: 'xxx', environment: 'AzureCloud', tenant: 'xxx' DEBUG: 4:55:48 PM - [SilentAuthenticator] Calling SharedTokenCacheCredential.GetTokenAsync - TenantId:'xxx', Scopes:'https://management.core.windows.net//.default', AuthorityHost:'https://login.microsoftonline.com/', UserId:'xxx' DEBUG: SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId: DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] Azure region was not configured or could not be discovered. Not using a regional authority. DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48] Found 1 cache accounts and 0 broker accounts DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48] Returning 1 accounts DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] MSAL MSAL.Desktop with assembly version '4.30.1.0'. CorrelationId(9b5179fb-6f03-4121-9f7b-a39a433fae0e) DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] === AcquireTokenSilent Parameters === DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] LoginHint provided: False DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] Account provided: True DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] ForceRefresh: False DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] === Request Data === Authority Provided? - True Scopes - https://management.core.windows.net//.default Extra Query Params Keys (space separated) - ApiId - AcquireTokenSilent IsConfidentialClient - False SendX5C - False LoginHint ? False IsBrokerConfigured - False HomeAccountId - False CorrelationId - 9b5179fb-6f03-4121-9f7b-a39a433fae0e DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] === Token Acquisition (SilentRequest) started: Authority Host: login.microsoftonline.com DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] Azure region was not configured or could not be discovered. Not using a regional authority. DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] Access token is not expired. Returning the found cache entry. [Current time (09/20/2021 20:55:48) - Expiration Time (09/20/2021 21:07:55 +00:00) - Extended Expiration Time (09/20/2021 21:07:55 +00:00)] DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] Returning access token found in cache. RefreshOn exists ? False DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] Fetched access token from host login.microsoftonline.com. DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:48 - ] === Token Acquisition finished successfully. An access token was returned with Expiration Time: 09/20/2021 21:07:55 +00:00 and Scopes https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default DEBUG: SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId: ExpiresOn: 2021-09-20T21:07:55.0000000+00:00 DEBUG: [Common.Authentication]: Received token with LoginType 'User', Tenant: 'xxx', UserId: 'xxx' DEBUG: ============================ HTTP REQUEST ============================ HTTP Method: GET Absolute Uri: https://management.azure.com/subscriptions/xxx/locations?api-version=2016-06-01 Headers: x-ms-client-request-id : ed576b63-ba88-4fc9-8b43-a5fa8fdc1a76 accept-language : en-US Body: DEBUG: ============================ HTTP RESPONSE ============================ Status Code: OK Headers: Pragma : no-cache x-ms-ratelimit-remaining-subscription-reads: 11999 x-ms-request-id : 4e9e2d9d-f2f1-4712-bc1d-4e8e40c4e165 x-ms-correlation-request-id : 4e9e2d9d-f2f1-4712-bc1d-4e8e40c4e165 x-ms-routing-request-id : CANADACENTRAL:20210920T205549Z:4e9e2d9d-f2f1-4712-bc1d-4e8e40c4e165 Strict-Transport-Security : max-age=31536000; includeSubDomains X-Content-Type-Options : nosniff Cache-Control : no-cache Date : Mon, 20 Sep 2021 20:55:48 GMT Body: { "value": [ { "id": "/subscriptions/xxx/locations/eastasia", "name": "eastasia", "displayName": "East Asia", "longitude": "114.188", "latitude": "22.267" }, { "id": "/subscriptions/xxx/locations/southeastasia", "name": "southeastasia", "displayName": "Southeast Asia", "longitude": "103.833", "latitude": "1.283" }, { "id": "/subscriptions/xxx/locations/centralus", "name": "centralus", "displayName": "Central US", "longitude": "-93.6208", "latitude": "41.5908" }, { "id": "/subscriptions/xxx/locations/eastus", "name": "eastus", "displayName": "East US", "longitude": "-79.8164", "latitude": "37.3719" }, { "id": "/subscriptions/xxx/locations/eastus2", "name": "eastus2", "displayName": "East US 2", "longitude": "-78.3889", "latitude": "36.6681" }, { "id": "/subscriptions/xxx/locations/westus", "name": "westus", "displayName": "West US", "longitude": "-122.417", "latitude": "37.783" }, { "id": "/subscriptions/xxx/locations/northcentralus", "name": "northcentralus", "displayName": "North Central US", "longitude": "-87.6278", "latitude": "41.8819" }, { "id": "/subscriptions/xxx/locations/southcentralus", "name": "southcentralus", "displayName": "South Central US", "longitude": "-98.5", "latitude": "29.4167" }, { "id": "/subscriptions/xxx/locations/northeurope", "name": "northeurope", "displayName": "North Europe", "longitude": "-6.2597", "latitude": "53.3478" }, { "id": "/subscriptions/xxx/locations/westeurope", "name": "westeurope", "displayName": "West Europe", "longitude": "4.9", "latitude": "52.3667" }, { "id": "/subscriptions/xxx/locations/japanwest", "name": "japanwest", "displayName": "Japan West", "longitude": "135.5022", "latitude": "34.6939" }, { "id": "/subscriptions/xxx/locations/japaneast", "name": "japaneast", "displayName": "Japan East", "longitude": "139.77", "latitude": "35.68" }, { "id": "/subscriptions/xxx/locations/brazilsouth", "name": "brazilsouth", "displayName": "Brazil South", "longitude": "-46.633", "latitude": "-23.55" }, { "id": "/subscriptions/xxx/locations/australiaeast", "name": "australiaeast", "displayName": "Australia East", "longitude": "151.2094", "latitude": "-33.86" }, { "id": "/subscriptions/xxx/locations/australiasoutheast", "name": "australiasoutheast", "displayName": "Australia Southeast", "longitude": "144.9631", "latitude": "-37.8136" }, { "id": "/subscriptions/xxx/locations/southindia", "name": "southindia", "displayName": "South India", "longitude": "80.1636", "latitude": "12.9822" }, { "id": "/subscriptions/xxx/locations/centralindia", "name": "centralindia", "displayName": "Central India", "longitude": "73.9197", "latitude": "18.5822" }, { "id": "/subscriptions/xxx/locations/westindia", "name": "westindia", "displayName": "West India", "longitude": "72.868", "latitude": "19.088" }, { "id": "/subscriptions/xxx/locations/jioindiawest", "name": "jioindiawest", "displayName": "Jio India West", "longitude": "70.05773", "latitude": "22.470701" }, { "id": "/subscriptions/xxx/locations/jioindiacentral", "name": "jioindiacentral", "displayName": "Jio India Central", "longitude": "79.08886", "latitude": "21.146633" }, { "id": "/subscriptions/xxx/locations/canadacentral", "name": "canadacentral", "displayName": "Canada Central", "longitude": "-79.383", "latitude": "43.653" }, { "id": "/subscriptions/xxx/locations/canadaeast", "name": "canadaeast", "displayName": "Canada East", "longitude": "-71.217", "latitude": "46.817" }, { "id": "/subscriptions/xxx/locations/uksouth", "name": "uksouth", "displayName": "UK South", "longitude": "-0.799", "latitude": "50.941" }, { "id": "/subscriptions/xxx/locations/ukwest", "name": "ukwest", "displayName": "UK West", "longitude": "-3.084", "latitude": "53.427" }, { "id": "/subscriptions/xxx/locations/westcentralus", "name": "westcentralus", "displayName": "West Central US", "longitude": "-110.234", "latitude": "40.890" }, { "id": "/subscriptions/xxx/locations/westus2", "name": "westus2", "displayName": "West US 2", "longitude": "-119.852", "latitude": "47.233" }, { "id": "/subscriptions/xxx/locations/koreacentral", "name": "koreacentral", "displayName": "Korea Central", "longitude": "126.9780", "latitude": "37.5665" }, { "id": "/subscriptions/xxx/locations/koreasouth", "name": "koreasouth", "displayName": "Korea South", "longitude": "129.0756", "latitude": "35.1796" }, { "id": "/subscriptions/xxx/locations/francecentral", "name": "francecentral", "displayName": "France Central", "longitude": "2.3730", "latitude": "46.3772" }, { "id": "/subscriptions/xxx/locations/francesouth", "name": "francesouth", "displayName": "France South", "longitude": "2.1972", "latitude": "43.8345" }, { "id": "/subscriptions/xxx/locations/australiacentral", "name": "australiacentral", "displayName": "Australia Central", "longitude": "149.1244", "latitude": "-35.3075" }, { "id": "/subscriptions/xxx/locations/australiacentral2", "name": "australiacentral2", "displayName": "Australia Central 2", "longitude": "149.1244", "latitude": "-35.3075" }, { "id": "/subscriptions/xxx/locations/uaecentral", "name": "uaecentral", "displayName": "UAE Central", "longitude": "54.366669", "latitude": "24.466667" }, { "id": "/subscriptions/xxx/locations/uaenorth", "name": "uaenorth", "displayName": "UAE North", "longitude": "55.316666", "latitude": "25.266666" }, { "id": "/subscriptions/xxx/locations/southafricanorth", "name": "southafricanorth", "displayName": "South Africa North", "longitude": "28.218370", "latitude": "-25.731340" }, { "id": "/subscriptions/xxx/locations/southafricawest", "name": "southafricawest", "displayName": "South Africa West", "longitude": "18.843266", "latitude": "-34.075691" }, { "id": "/subscriptions/xxx/locations/switzerlandnorth", "name": "switzerlandnorth", "displayName": "Switzerland North", "longitude": "8.564572", "latitude": "47.451542" }, { "id": "/subscriptions/xxx/locations/switzerlandwest", "name": "switzerlandwest", "displayName": "Switzerland West", "longitude": "6.143158", "latitude": "46.204391" }, { "id": "/subscriptions/xxx/locations/germanynorth", "name": "germanynorth", "displayName": "Germany North", "longitude": "8.806422", "latitude": "53.073635" }, { "id": "/subscriptions/xxx/locations/germanywestcentral", "name": "germanywestcentral", "displayName": "Germany West Central", "longitude": "8.682127", "latitude": "50.110924" }, { "id": "/subscriptions/xxx/locations/norwaywest", "name": "norwaywest", "displayName": "Norway West", "longitude": "5.733107", "latitude": "58.969975" }, { "id": "/subscriptions/xxx/locations/norwayeast", "name": "norwayeast", "displayName": "Norway East", "longitude": "10.752245", "latitude": "59.913868" }, { "id": "/subscriptions/xxx/locations/brazilsoutheast", "name": "brazilsoutheast", "displayName": "Brazil Southeast", "longitude": "-43.2075", "latitude": "-22.90278" }, { "id": "/subscriptions/xxx/locations/westus3", "name": "westus3", "displayName": "West US 3", "longitude": "-112.074036", "latitude": "33.448376" } ] } DEBUG: [Common.Authentication]: Authenticating using Account: 'xxx', environment: 'AzureCloud', tenant: 'xxx' DEBUG: 4:55:49 PM - [SilentAuthenticator] Calling SharedTokenCacheCredential.GetTokenAsync - TenantId:'xxx', Scopes:'https://management.core.windows.net//.default', AuthorityHost:'https://login.microsoftonline.com/', UserId:'xxx' DEBUG: SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId: DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] Azure region was not configured or could not be discovered. Not using a regional authority. DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49] Found 1 cache accounts and 0 broker accounts DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49] Returning 1 accounts DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] MSAL MSAL.Desktop with assembly version '4.30.1.0'. CorrelationId(e5dfaf25-6d1c-4577-b8be-97069d5dcad1) DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] === AcquireTokenSilent Parameters === DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] LoginHint provided: False DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] Account provided: True DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] ForceRefresh: False DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] === Request Data === Authority Provided? - True Scopes - https://management.core.windows.net//.default Extra Query Params Keys (space separated) - ApiId - AcquireTokenSilent IsConfidentialClient - False SendX5C - False LoginHint ? False IsBrokerConfigured - False HomeAccountId - False CorrelationId - e5dfaf25-6d1c-4577-b8be-97069d5dcad1 DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] === Token Acquisition (SilentRequest) started: Authority Host: login.microsoftonline.com DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] Azure region was not configured or could not be discovered. Not using a regional authority. DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] Access token is not expired. Returning the found cache entry. [Current time (09/20/2021 20:55:49) - Expiration Time (09/20/2021 21:07:55 +00:00) - Extended Expiration Time (09/20/2021 21:07:55 +00:00)] DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] Returning access token found in cache. RefreshOn exists ? False DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] Fetched access token from host login.microsoftonline.com. DEBUG: (False) MSAL 4.30.1.0 MSAL.Desktop Windows 10 Enterprise [09/20/2021 20:55:49 - ] === Token Acquisition finished successfully. An access token was returned with Expiration Time: 09/20/2021 21:07:55 +00:00 and Scopes https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default DEBUG: SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId: ExpiresOn: 2021-09-20T21:07:55.0000000+00:00 DEBUG: [Common.Authentication]: Received token with LoginType 'User', Tenant: 'xxx', UserId: 'xxx' DEBUG: ============================ HTTP REQUEST ============================ HTTP Method: GET Absolute Uri: https://management.azure.com/subscriptions/xxx/providers?api-version=2021-04-01 Headers: x-ms-client-request-id : ed576b63-ba88-4fc9-8b43-a5fa8fdc1a76 accept-language : en-US Body: DEBUG: ============================ HTTP RESPONSE ============================ Status Code: InternalServerError Headers: Pragma : no-cache x-ms-failure-cause : gateway x-ms-ratelimit-remaining-subscription-reads: 11999 x-ms-request-id : d6b197c5-c159-4bb7-a48b-a8e58136f6bc x-ms-correlation-request-id : d6b197c5-c159-4bb7-a48b-a8e58136f6bc x-ms-routing-request-id : CANADACENTRAL:20210920T205619Z:d6b197c5-c159-4bb7-a48b-a8e58136f6bc Strict-Transport-Security : max-age=31536000; includeSubDomains X-Content-Type-Options : nosniff Connection : close Cache-Control : no-cache Date : Mon, 20 Sep 2021 20:56:18 GMT Body: { "error": { "code": "InternalServerError", "message": "Encountered internal server error. Diagnostic information: timestamp '20210920T205619Z', subscription id 'xxx', tracking id 'd6b197c5-c159-4bb7-a48b-a8e58136f6bc', request correlation id 'd6b197c5-c159-4bb7-a48b-a8e58136f6bc'." } } Get-AzLocation : Encountered internal server error. Diagnostic information: timestamp '20210920T205619Z', subscription id 'xxx', tracking id 'd6b197c5-c159-4bb7-a48b-a8e58136f6bc', request correlation id 'd6b197c5-c159-4bb7-a48b-a8e58136f6bc'. StatusCode: 500 ReasonPhrase: Internal Server Error OperationID : d6b197c5-c159-4bb7-a48b-a8e58136f6bc At line:1 char:1 + Get-AzLocation |clip + ~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Get-AzLocation], ResourceManagerCloudException + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.GetAzureLocationCmdlet DEBUG: AzureQoSEvent: Module: Az.Resources:4.3.1; CommandName: Get-AzLocation; PSVersion: 5.1.19041.1237; IsSuccess: False; Duration: 00:00:30.6189486; Exception: Encountered internal server error. Diagnostic information: timestamp '20210920T205619Z', subscription id 'xxx', tracking id 'd6b197c5-c159-4bb7-a48b-a8e58136f6bc', request correlation id 'd6b197c5-c159-4bb7-a48b-a8e58136f6bc'. StatusCode: 500 ReasonPhrase: Internal Server Error OperationID : d6b197c5-c159-4bb7-a48b-a8e58136f6bc; DEBUG: Finish sending metric. DEBUG: 4:56:20 PM - GetAzureLocationCmdlet end processing. PS C:\Users\benjamin.laufer> ``` ## Error output Resolve-AzError DEBUG: 4:56:37 PM - ResolveError begin processing with ParameterSet 'AnyErrorParameterSet'. DEBUG: 4:56:37 PM - using account id 'xxx'... 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: 19 RequestId : Message : Encountered internal server error. Diagnostic information: timestamp '20210920T205619Z', subscription id 'xxx', tracking id 'd6b197c5-c159-4bb7-a48b-a8e58136f6bc', request correlation id 'd6b197c5-c159-4bb7-a48b-a8e58136f6bc'. StatusCode: 500 ReasonPhrase: Internal Server Error OperationID : d6b197c5-c159-4bb7-a48b-a8e58136f6bc ServerMessage : ServerResponse : RequestMessage : InvocationInfo : {Get-AzLocation} Line : Get-AzLocation |clip Position : At line:1 char:1 + Get-AzLocation |clip + ~~~~~~~~~~~~~~ StackTrace : at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.HandleException(ExceptionDispatchInfo capturedException) at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.ExecuteCmdlet() at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord() HistoryId : 19 HistoryId: 9 RequestId : Message : Encountered internal server error. Diagnostic information: timestamp '20210920T205204Z', subscription id 'xxx', tracking id '11191763-f6ba-40e7-8dc0-295bcb8e4792', request correlation id '11191763-f6ba-40e7-8dc0-295bcb8e4792'. StatusCode: 500 ReasonPhrase: Internal Server Error OperationID : 11191763-f6ba-40e7-8dc0-295bcb8e4792 ServerMessage : ServerResponse : RequestMessage : InvocationInfo : {Get-AzLocation} Line : Get-AzLocation Position : At line:1 char:1 + Get-AzLocation + ~~~~~~~~~~~~~~ StackTrace : at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.HandleException(ExceptionDispatchInfo capturedException) at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.ExecuteCmdlet() at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord() HistoryId : 9 HistoryId: 1 Message : The specified module 'Az.Accounts' was not loaded because no valid module file was found in any module directory. StackTrace : Exception : System.IO.FileNotFoundException InvocationInfo : {Import-Module} Line : Import-Module Az.Accounts -ErrorAction SilentlyContinue -ErrorVariable importError Position : At C:\Users\benjamin.laufer\OneDrive - Mediterranean Shipping Company\my files\WindowsPowerShell\profile.ps1:4 char:1 + Import-Module Az.Accounts -ErrorAction SilentlyContinue -ErrorVariabl ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HistoryId : 1 The Azure PowerShell team is listening, please let us know how we are doing: https://aka.ms/azpssurvey?Q_CHL=ERROR. DEBUG: AzureQoSEvent: Module: Az.Accounts:2.5.3; CommandName: Resolve-AzError; PSVersion: 5.1.19041.1237; IsSuccess: True; Duration: 00:00:00.2941019 DEBUG: Finish sending metric. DEBUG: 4:56:38 PM - ResolveError end processing. ``` ```
Author: bwarren18
Assignees: -
Labels: `Service Attention`, `question`, `ARM - Core`, `customer-reported`, `needs-triage`
Milestone: -
bwarren18 commented 3 years ago

HTTP 500 indicates there is server error. Please try it later.

It happens every time for the past day, using the Az 6.3.0 module works fine.

dingmeng-xue commented 3 years ago

ARM team, /subscriptions/{}/providers?api-version=2021-04-01 doesn't work. API version 2020-10-01 works.

navba-MSFT commented 2 years ago

@bwarren18 Apologies for the late reply. Could you please let me know if you are still facing this issue ? This issue is open for quite sometime. Please let me know if you need any assistance on this. Awaiting your reply.

bwarren18 commented 2 years ago

@navba-MSFT we are not having this issue with Az 7.3.0 (Az.Resources 5.4.0). Thank you.