Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.22k stars 3.82k forks source link

Request query contains more than one $expand #11251

Open noopman opened 4 years ago

noopman commented 4 years ago

Description

I execute one statement. It works. I execute the next one. That works too. Now I execute the first one - it now does not work.

Steps to reproduce

Get-AzManagementGroup -GroupName '8f1e1564-6469-4e97-9d3b-06db1003b1d2' -Expand -Recurse # Works
Get-AzManagementGroup -GroupName '8f1e1564-6469-4e97-9d3b-06db1003b1d2' -Expand -Recurse # Works again
Get-AzBlueprint -ManagementGroupId '8f1e1564-6469-4e97-9d3b-06db1003b1d2' -Name 'PlayGroundRules' # Works All the time
Get-AzManagementGroup -GroupName '8f1e1564-6469-4e97-9d3b-06db1003b1d2' -Expand -Recurse # No longer works because of the line above

Environment data

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

Module versions

Directory: C:\Magnus\Documents\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     1.7.2      Az.Accounts                         {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzContextAutosave...}
Script     1.0.3      Az.Aks                              {Get-AzAks, New-AzAks, Remove-AzAks, Import-AzAksCredential...}
Script     1.3.4      Az.ApiManagement                    {Add-AzApiManagementApiToProduct, Add-AzApiManagementProductToGroup, Add-AzApiManagementRegion, Add-AzApiManagementUserToGroup...} 
Script     1.0.3      Az.ApplicationInsights              {Get-AzApplicationInsights, New-AzApplicationInsights, Remove-AzApplicationInsights, Set-AzApplicationInsightsPricingPlan...}     
Script     2.0.2      Az.Batch                            {Remove-AzBatchAccount, Get-AzBatchAccount, Get-AzBatchAccountKey, New-AzBatchAccount...}
Script     0.2.10     Az.Blueprint                        {Get-AzBlueprint, Get-AzBlueprintAssignment, New-AzBlueprintAssignment, Remove-AzBlueprintAssignment...}
Script     1.1.1      Az.ContainerRegistry                {New-AzContainerRegistry, Get-AzContainerRegistry, Update-AzContainerRegistry, Remove-AzContainerRegistry...}
Script     1.1.0      Az.DataBoxEdge                      {Get-AzDataBoxEdgeJob, Get-AzDataBoxEdgeDevice, Invoke-AzDataBoxEdgeDevice, New-AzDataBoxEdgeDevice...}
Script     1.6.1      Az.DataFactory                      {Set-AzDataFactoryV2, Update-AzDataFactoryV2, Get-AzDataFactoryV2, Remove-AzDataFactoryV2...}
Script     1.0.2      Az.DataLakeAnalytics                {Get-AzDataLakeAnalyticsDataSource, New-AzDataLakeAnalyticsCatalogCredential, Remove-AzDataLakeAnalyticsCatalogCredential, Set-...
Script     1.2.6      Az.DataLakeStore                    {Get-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreFirewallRule, Set-AzDataL... 
Script     1.1.0      Az.DeploymentManager                {Get-AzDeploymentManagerArtifactSource, New-AzDeploymentManagerArtifactSource, Set-AzDeploymentManagerArtifactSource, Remove-Az...
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.2.3      Az.EventGrid                        {New-AzEventGridTopic, Get-AzEventGridTopic, Set-AzEventGridTopic, New-AzEventGridTopicKey...}
Script     1.4.3      Az.EventHub                         {New-AzEventHubNamespace, Get-AzEventHubNamespace, Set-AzEventHubNamespace, Remove-AzEventHubNamespace...}
Script     1.4.0      Az.FrontDoor                        {New-AzFrontDoor, Get-AzFrontDoor, Set-AzFrontDoor, Remove-AzFrontDoor...}
Script     3.0.3      Az.HDInsight                        {Get-AzHDInsightJob, New-AzHDInsightSqoopJobDefinition, Wait-AzHDInsightJob, New-AzHDInsightStreamingMapReduceJobDefinition...}   
Script     1.0.1      Az.HealthcareApis                   {New-AzHealthcareApisService, Remove-AzHealthcareApisService, Set-AzHealthcareApisService, Get-AzHealthcareApisService}
Script     2.1.0      Az.IotHub                           {Add-AzIotHubKey, Get-AzIotHubEventHubConsumerGroup, Get-AzIotHubConnectionString, Get-AzIotHubJob...}
Script     1.5.1      Az.KeyVault                         {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCertificateOperation, Get-AzKeyVaultCertificateOperati... 
Script     1.3.2      Az.LogicApp                         {Get-AzIntegrationAccountAgreement, Get-AzIntegrationAccountAssembly, Get-AzIntegrationAccountBatchConfiguration, Get-AzIntegra...
Script     1.1.3      Az.MachineLearning                  {Move-AzMlCommitmentAssociation, Get-AzMlCommitmentAssociation, Get-AzMlCommitmentPlanUsageHistory, Remove-AzMlCommitmentPlan...}  
Script     1.0.2      Az.ManagedServices                  {Get-AzManagedServicesAssignment, New-AzManagedServicesAssignment, Remove-AzManagedServicesAssignment, Get-AzManagedServicesDef...
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.NotificationHubs                 {Get-AzNotificationHub, Get-AzNotificationHubAuthorizationRule, Get-AzNotificationHubListKey, Get-AzNotificationHubPNSCredentia...
Script     1.2.0      Az.PolicyInsights                   {Get-AzPolicyEvent, Get-AzPolicyState, Get-AzPolicyStateSummary, Get-AzPolicyRemediation...}
Script     1.1.1      Az.PowerBIEmbedded                  {Remove-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollectionAccessKey, Get-AzPowerB...
Script     1.0.2      Az.PrivateDns                       {Get-AzPrivateDnsZone, Remove-AzPrivateDnsZone, Set-AzPrivateDnsZone, New-AzPrivateDnsZone...}
Script     1.2.1      Az.RedisCache                       {Remove-AzRedisCachePatchSchedule, New-AzRedisCacheScheduleEntry, Get-AzRedisCachePatchSchedule, New-AzRedisCachePatchSchedule...}
Script     1.0.3      Az.Relay                            {New-AzRelayNamespace, Get-AzRelayNamespace, Set-AzRelayNamespace, Remove-AzRelayNamespace...}
Script     1.4.1      Az.ServiceBus                       {New-AzServiceBusNamespace, Get-AzServiceBusNamespace, Set-AzServiceBusNamespace, Remove-AzServiceBusNamespace...}
Script     2.0.1      Az.ServiceFabric                    {Add-AzServiceFabricClientCertificate, Add-AzServiceFabricClusterCertificate, Add-AzServiceFabricNode, Add-AzServiceFabricNodeT... 
Script     1.1.1      Az.SignalR                          {New-AzSignalR, Get-AzSignalR, Get-AzSignalRKey, New-AzSignalRKey...}
Script     2.3.0      Az.Sql                              {Get-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseTransparentDataEncryptionActivity, Set-AzSqlDatabaseTransparentDa...
Script     1.1.0      Az.SqlVirtualMachine                {New-AzSqlVM, Get-AzSqlVM, Update-AzSqlVM, Remove-AzSqlVM...}
Script     1.12.0     Az.Storage                          {Get-AzStorageAccount, Get-AzStorageAccountKey, New-AzStorageAccount, New-AzStorageAccountKey...}
Script     1.2.3      Az.StorageSync                      {Invoke-AzStorageSyncCompatibilityCheck, New-AzStorageSyncService, Get-AzStorageSyncService, Remove-AzStorageSyncService...}      
Script     1.0.1      Az.StreamAnalytics                  {Get-AzStreamAnalyticsFunction, Get-AzStreamAnalyticsDefaultFunctionDefinition, New-AzStreamAnalyticsFunction, Remove-AzStreamA...
Script     1.0.3      Az.TrafficManager                   {Add-AzTrafficManagerCustomHeaderToEndpoint, Remove-AzTrafficManagerCustomHeaderFromEndpoint, Add-AzTrafficManagerCustomHeaderT...
Script     1.6.0      Az.Websites                         {Get-AzAppServicePlan, Set-AzAppServicePlan, New-AzAppServicePlan, Remove-AzAppServicePlan...}
Binary     2.0.2.76   AzureAD                             {Add-AzureADApplicationOwner, Get-AzureADApplication, Get-AzureADApplicationExtensionProperty, Get-AzureADApplicationOwner...}    
Script     0.7.3      posh-git                            {Invoke-NullCoalescing, Add-PoshGitToProfile, Get-PromptPath, Write-GitStatus...}
Script     0.7.1      posh-git                            {Invoke-NullCoalescing, Add-PoshGitToProfile, Write-GitStatus, Write-Prompt...}

    Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     1.7.2      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     1.0.3      Az.Aks                              {Get-AzAks, New-AzAks, Remove-AzAks, Import-AzAksCredential...}
Script     1.1.2      Az.AnalysisServices                 {Resume-AzAnalysisServicesServer, Suspend-AzAnalysisServicesServer, Get-AzAnalysisServicesServer, Remove-AzAnalysisServicesServ...
Script     1.3.4      Az.ApiManagement                    {Add-AzApiManagementApiToProduct, Add-AzApiManagementProductToGroup, Add-AzApiManagementRegion, Add-AzApiManagementUserToGroup...} 
Script     1.0.3      Az.ApplicationInsights              {Get-AzApplicationInsights, New-AzApplicationInsights, Remove-AzApplicationInsights, Set-AzApplicationInsightsPricingPlan...}     
Script     1.3.6      Az.Automation                       {Get-AzAutomationHybridWorkerGroup, Remove-AzAutomationHybridWorkerGroup, Get-AzAutomationJobOutputRecord, Import-AzAutomationD...
Script     2.0.2      Az.Batch                            {Remove-AzBatchAccount, Get-AzBatchAccount, Get-AzBatchAccountKey, New-AzBatchAccount...}
Script     1.0.2      Az.Billing                          {Get-AzBillingInvoice, Get-AzBillingPeriod, Get-AzEnrollmentAccount, Get-AzConsumptionBudget...}
Script     1.4.2      Az.Cdn                              {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl, New-AzCdnProfile, Remove-AzCdnProfile...}
Script     1.2.3      Az.CognitiveServices                {Get-AzCognitiveServicesAccount, Get-AzCognitiveServicesAccountKey, Get-AzCognitiveServicesAccountSku, Get-AzCognitiveServicesA...
Script     3.5.0      Az.Compute                          {Remove-AzAvailabilitySet, Get-AzAvailabilitySet, New-AzAvailabilitySet, Update-AzAvailabilitySet...}
Script     1.0.3      Az.ContainerInstance                {New-AzContainerGroup, Get-AzContainerGroup, Remove-AzContainerGroup, Get-AzContainerInstanceLog}
Script     1.1.1      Az.ContainerRegistry                {New-AzContainerRegistry, Get-AzContainerRegistry, Update-AzContainerRegistry, Remove-AzContainerRegistry...}
Script     1.1.0      Az.DataBoxEdge                      {Get-AzDataBoxEdgeJob, Get-AzDataBoxEdgeDevice, Invoke-AzDataBoxEdgeDevice, New-AzDataBoxEdgeDevice...}
Script     1.6.1      Az.DataFactory                      {Set-AzDataFactoryV2, Update-AzDataFactoryV2, Get-AzDataFactoryV2, Remove-AzDataFactoryV2...}
Script     1.0.2      Az.DataLakeAnalytics                {Get-AzDataLakeAnalyticsDataSource, New-AzDataLakeAnalyticsCatalogCredential, Remove-AzDataLakeAnalyticsCatalogCredential, Set-...
Script     1.2.6      Az.DataLakeStore                    {Get-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreFirewallRule, Set-AzDataL... 
Script     1.1.0      Az.DeploymentManager                {Get-AzDeploymentManagerArtifactSource, New-AzDeploymentManagerArtifactSource, Set-AzDeploymentManagerArtifactSource, Remove-Az...
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.2.3      Az.EventGrid                        {New-AzEventGridTopic, Get-AzEventGridTopic, Set-AzEventGridTopic, New-AzEventGridTopicKey...}
Script     1.4.3      Az.EventHub                         {New-AzEventHubNamespace, Get-AzEventHubNamespace, Set-AzEventHubNamespace, Remove-AzEventHubNamespace...}
Script     1.4.0      Az.FrontDoor                        {New-AzFrontDoor, Get-AzFrontDoor, Set-AzFrontDoor, Remove-AzFrontDoor...}
Script     3.0.3      Az.HDInsight                        {Get-AzHDInsightJob, New-AzHDInsightSqoopJobDefinition, Wait-AzHDInsightJob, New-AzHDInsightStreamingMapReduceJobDefinition...}   
Script     1.0.1      Az.HealthcareApis                   {New-AzHealthcareApisService, Remove-AzHealthcareApisService, Set-AzHealthcareApisService, Get-AzHealthcareApisService}
Script     2.1.0      Az.IotHub                           {Add-AzIotHubKey, Get-AzIotHubEventHubConsumerGroup, Get-AzIotHubConnectionString, Get-AzIotHubJob...}
Script     1.5.1      Az.KeyVault                         {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCertificateOperation, Get-AzKeyVaultCertificateOperati...
Script     1.3.2      Az.LogicApp                         {Get-AzIntegrationAccountAgreement, Get-AzIntegrationAccountAssembly, Get-AzIntegrationAccountBatchConfiguration, Get-AzIntegra...
Script     1.1.3      Az.MachineLearning                  {Move-AzMlCommitmentAssociation, Get-AzMlCommitmentAssociation, Get-AzMlCommitmentPlanUsageHistory, Remove-AzMlCommitmentPlan...} 
Script     1.0.2      Az.ManagedServices                  {Get-AzManagedServicesAssignment, New-AzManagedServicesAssignment, Remove-AzManagedServicesAssignment, Get-AzManagedServicesDef...
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.6.0      Az.Monitor                          {Get-AzMetricDefinition, Get-AzMetric, Remove-AzLogProfile, Get-AzLogProfile...}
Script     2.3.1      Az.Network                          {Add-AzApplicationGatewayAuthenticationCertificate, Get-AzApplicationGatewayAuthenticationCertificate, New-AzApplicationGateway...
Script     1.1.1      Az.NotificationHubs                 {Get-AzNotificationHub, Get-AzNotificationHubAuthorizationRule, Get-AzNotificationHubListKey, Get-AzNotificationHubPNSCredentia...
Script     1.3.4      Az.OperationalInsights              {New-AzOperationalInsightsAzureActivityLogDataSource, New-AzOperationalInsightsCustomLogDataSource, Disable-AzOperationalInsigh...
Script     1.2.0      Az.PolicyInsights                   {Get-AzPolicyEvent, Get-AzPolicyState, Get-AzPolicyStateSummary, Get-AzPolicyRemediation...}
Script     1.1.1      Az.PowerBIEmbedded                  {Remove-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollectionAccessKey, Get-AzPowerB... 
Script     1.0.2      Az.PrivateDns                       {Get-AzPrivateDnsZone, Remove-AzPrivateDnsZone, Set-AzPrivateDnsZone, New-AzPrivateDnsZone...}
Script     2.7.0      Az.RecoveryServices                 {Get-AzRecoveryServicesBackupProperty, Get-AzRecoveryServicesVault, Get-AzRecoveryServicesVaultSettingsFile, New-AzRecoveryServ...
Script     1.2.1      Az.RedisCache                       {Remove-AzRedisCachePatchSchedule, New-AzRedisCacheScheduleEntry, Get-AzRedisCachePatchSchedule, New-AzRedisCachePatchSchedule...}
Script     1.0.3      Az.Relay                            {New-AzRelayNamespace, Get-AzRelayNamespace, Set-AzRelayNamespace, Remove-AzRelayNamespace...}
Script     1.11.0     Az.Resources                        {Get-AzProviderOperation, Remove-AzRoleAssignment, Get-AzRoleAssignment, New-AzRoleAssignment...}
Script     1.4.1      Az.ServiceBus                       {New-AzServiceBusNamespace, Get-AzServiceBusNamespace, Set-AzServiceBusNamespace, Remove-AzServiceBusNamespace...}
Script     2.0.1      Az.ServiceFabric                    {Add-AzServiceFabricClientCertificate, Add-AzServiceFabricClusterCertificate, Add-AzServiceFabricNode, Add-AzServiceFabricNodeT...
Script     1.1.1      Az.SignalR                          {New-AzSignalR, Get-AzSignalR, Get-AzSignalRKey, New-AzSignalRKey...}
Script     2.3.0      Az.Sql                              {Get-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseTransparentDataEncryptionActivity, Set-AzSqlDatabaseTransparentDa... 
Script     1.1.0      Az.SqlVirtualMachine                {New-AzSqlVM, Get-AzSqlVM, Update-AzSqlVM, Remove-AzSqlVM...}
Script     1.12.0     Az.Storage                          {Get-AzStorageAccount, Get-AzStorageAccountKey, New-AzStorageAccount, New-AzStorageAccountKey...}
Script     1.2.3      Az.StorageSync                      {Invoke-AzStorageSyncCompatibilityCheck, New-AzStorageSyncService, Get-AzStorageSyncService, Remove-AzStorageSyncService...}      
Script     1.0.1      Az.StreamAnalytics                  {Get-AzStreamAnalyticsFunction, Get-AzStreamAnalyticsDefaultFunctionDefinition, New-AzStreamAnalyticsFunction, Remove-AzStreamA...
Script     1.0.3      Az.TrafficManager                   {Add-AzTrafficManagerCustomHeaderToEndpoint, Remove-AzTrafficManagerCustomHeaderFromEndpoint, Add-AzTrafficManagerCustomHeaderT...
Script     1.6.0      Az.Websites                         {Get-AzAppServicePlan, Set-AzAppServicePlan, New-AzAppServicePlan, Remove-AzAppServicePlan...}
Script     5.1.2      Azure                               {Get-AzureAutomationCertificate, Get-AzureAutomationConnection, New-AzureAutomationConnection, Remove-AzureAutomationConnection...
Script     1.0.1      Microsoft.PowerShell.Operation.V... {Get-OperationValidation, Invoke-OperationValidation}
Binary     1.0.0.1    PackageManagement                   {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource...}
Script     3.4.0      Pester                              {Describe, Context, It, Should...}
Script     1.3.6      PowerShellCookbook                  {Move-LockedFile, Invoke-ScriptBlock, Search-WmiNamespace, Enable-RemoteCredSSP...}
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...}

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

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Manifest   1.0.0.0    AppBackgroundTask                   {Disable-AppBackgroundTaskDiagnosticLog, Enable-AppBackgroundTaskDiagnosticLog, Set-AppBackgroundTaskResourcePolicy, Unregister...
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.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, Get-DeliveryOptimizationStatus, Set-DeliveryOptimizationStatus, Get-DeliveryOptimizationPerf... 
Manifest   1.0.0.0    DirectAccessClientComponents        {Disable-DAManualEntryPointSelection, Enable-DAManualEntryPointSelection, Get-DAClientExperienceConfiguration, Get-DAEntryPoint...
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   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...}
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-DtcDiagnosticTrans...
Manifest   2.0.0.0    NetAdapter                          {Disable-NetAdapter, Disable-NetAdapterBinding, Disable-NetAdapterChecksumOffload, Disable-NetAdapterEncapsulatedPacketTaskOffl... 
Manifest   1.0.0.0    NetConnection                       {Get-NetConnectionProfile, Set-NetConnectionProfile}
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.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    NetworkSwitchManager                {Disable-NetworkSwitchEthernetPort, Enable-NetworkSwitchEthernetPort, Get-NetworkSwitchEthernetPort, Remove-NetworkSwitchEthern...
Manifest   1.0.0.0    NetworkTransition                   {Add-NetIPHttpsCertBinding, Disable-NetDnsTransitionConfiguration, Disable-NetIPHttpsProfile, Disable-NetNatTransitionConfigura...
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.11     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   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...}
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.0    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:\Users\MagnusMårtensson\.vscode\extensions\ms-vscode.powershell-2020.1.0\modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     1.1.3      Plaster                             {Invoke-Plaster, New-PlasterManifest, Get-PlasterTemplate, Test-PlasterManifest}
Script     1.13.3     PowerShellEditorServices            {Start-EditorServicesHost, Get-PowerShellEditorServicesVersion, Compress-LogDir}
Script     0.2.0      PowerShellEditorServices.VSCode     {New-VSCodeHtmlContentView, Show-VSCodeHtmlContentView, Close-VSCodeHtmlContentView, Set-VSCodeHtmlContentView...}
Script     1.18.3     PSScriptAnalyzer                    {Get-ScriptAnalyzerRule, Invoke-ScriptAnalyzer, Invoke-Formatter}

Debug output

Statement 1:

C:\code> Get-AzManagementGroup -GroupName '8f1e1564-6469-4e97-9d3b-06db1003b1d2' -Expand -Recurse # Works
DEBUG: 15:46:15 - GetAzureRmManagementGroup begin processing with ParameterSet 'GetOperation'.
DEBUG: 15:46:15 - using account id 'xmma@{redacted3}.com'...
DEBUG: [Common.Authentication]: Authenticating using Account: 'xmma@{redacted3}.com', environment: 'AzureCloud', tenant: 'c95a25de-f20a-4216-bc84-99694442c1b5'
DEBUG: [Common.Authentication]: Authenticating using configuration values: Domain: 'c95a25de-f20a-4216-bc84-99694442c1b5', Endpoint: 'https://login.microsoftonline.com/', ClientId: '1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirect: 'urn:ietf:wg:oauth:2.0:oob', ResourceClientUri: 'https://management.core.windows.net/', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using context with Authority 'https://login.microsoftonline.com/c95a25de-f20a-4216-bc84-99694442c1b5/', CorrelationId: '00000000-0000-0000-0000-000000000000', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using AdalConfiguration with Domain: 'c95a25de-f20a-4216-bc84-99694442c1b5', AdEndpoint: 'https://login.microsoftonline.com/', ClientId: '1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirectUri: urn:ietf:wg:oauth:2.0:oob
DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.4342111Z: ade786c9-2ce6-403f-94ce-a59c52f3f413 - LoggerBase.cs: ADAL PCL.Desktop with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...

DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.4342111Z: ade786c9-2ce6-403f-94ce-a59c52f3f413 - LoggerBase.cs: ADAL PCL.Desktop with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...

DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.4342111Z: ade786c9-2ce6-403f-94ce-a59c52f3f413 - LoggerBase.cs: === Token Acquisition started:
        CacheType: null
        Authentication Target: User
        , Authority Host: login.microsoftonline.com

DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.4352349Z: ade786c9-2ce6-403f-94ce-a59c52f3f413 - LoggerBase.cs: === Token Acquisition started:
        Authority: https://login.microsoftonline.com/c95a25de-f20a-4216-bc84-99694442c1b5/
        Resource: https://management.core.windows.net/
        ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
        CacheType: null
        Authentication Target: User

DEBUG: [ADAL]: Verbose: 2020-03-05T14:46:15.4352349Z: ade786c9-2ce6-403f-94ce-a59c52f3f413 - LoggerBase.cs: Loading from cache.

DEBUG: [ADAL]: Verbose: 2020-03-05T14:46:15.4352349Z: ade786c9-2ce6-403f-94ce-a59c52f3f413 - LoggerBase.cs: Loading from cache.

DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.4391976Z: 00000000-0000-0000-0000-000000000000 - LoggerBase.cs: Deserialized 14 items to token cache.

DEBUG: [ADAL]: Verbose: 2020-03-05T14:46:15.4391976Z: ade786c9-2ce6-403f-94ce-a59c52f3f413 - LoggerBase.cs: Looking up cache for a token...

DEBUG: [ADAL]: Verbose: 2020-03-05T14:46:15.4391976Z: ade786c9-2ce6-403f-94ce-a59c52f3f413 - LoggerBase.cs: Looking up cache for a token...

DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.4391976Z: ade786c9-2ce6-403f-94ce-a59c52f3f413 - LoggerBase.cs: An item matching the requested resource was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.4391976Z: ade786c9-2ce6-403f-94ce-a59c52f3f413 - LoggerBase.cs: An item matching the requested resource was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.4391976Z: ade786c9-2ce6-403f-94ce-a59c52f3f413 - LoggerBase.cs: 58,6188633733333 minutes left until token in cache expires

DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.4391976Z: ade786c9-2ce6-403f-94ce-a59c52f3f413 - LoggerBase.cs: 58,6188633733333 minutes left until token in cache expires

DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.4391976Z: ade786c9-2ce6-403f-94ce-a59c52f3f413 - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.4391976Z: ade786c9-2ce6-403f-94ce-a59c52f3f413 - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.4391976Z: ade786c9-2ce6-403f-94ce-a59c52f3f413 - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 2020-03-05 15:44:52 +00:00

DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.4402211Z: ade786c9-2ce6-403f-94ce-a59c52f3f413 - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 2020-03-05 15:44:52 +00:00Access Token Hash: CostrenB93jY/gFIpIZoVdVSXM/6RS1y3u6qbjKmeXk=
         User id: efff4d58-2dfb-4c1d-97bb-9ed79c56dd34

DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '03/05/2020 15:44:52 +00:00', MultipleResource? 'True', Tenant: 'c95a25de-f20a-4216-bc84-99694442c1b5', UserId: 'xmma@{redacted3}.com'
DEBUG: [Common.Authentication]: User info for token DisplayId: 'xmma@{redacted3}.com', Name: Magnus Mårtensson, IdProvider: 'https://sts.windows.net/203bd293-7b05-4e4a-bb30-74b187e2dd1d/', Uid: 'efff4d58-2dfb-4c1d-97bb-9ed79c56dd34'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '03/05/2020 15:44:52 +00:00' Comparing to '03/05/2020 14:46:15 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:58:37.1307789'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/a916c005-3c79-427f-9bdd-55de8d19b986/providers/Microsoft.Management?api-version=2016-09-01

Headers:
x-ms-client-request-id        : 78fd6efc-9878-48fc-8cd3-9dfd87e56ea4
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               : 05cd1b14-fe3e-42b0-b4e3-630edc92c848
x-ms-correlation-request-id   : 05cd1b14-fe3e-42b0-b4e3-630edc92c848
x-ms-routing-request-id       : NORTHEUROPE:20200305T144615Z:05cd1b14-fe3e-42b0-b4e3-630edc92c848
Strict-Transport-Security     : max-age=31536000; includeSubDomains
X-Content-Type-Options        : nosniff
Cache-Control                 : no-cache
Date                          : Thu, 05 Mar 2020 14:46:15 GMT

Body:
{
  "id": "/subscriptions/a916c005-3c79-427f-9bdd-55de8d19b986/providers/Microsoft.Management",
  "namespace": "Microsoft.Management",
  "authorization": {
    "applicationId": "f2c304cf-8e7e-4c3f-8164-16299ad9d272",
    "roleDefinitionId": "c1cf3708-588a-4647-be7f-f400bbe214cf"
  },
  "resourceTypes": [
    {
      "resourceType": "resources",
      "locations": [],
      "apiVersions": [
        "2017-11-01-preview",
        "2017-08-31-preview",
        "2017-06-30-preview",
        "2017-05-31-preview"
      ]
    },
    {
      "resourceType": "managementGroups",
      "locations": [],
      "apiVersions": [
        "2020-02-01",
        "2019-11-01",
        "2018-03-01-preview",
        "2018-03-01-beta",
        "2018-01-01-preview",
        "2017-11-01-preview",
        "2017-08-31-preview",
        "2017-06-30-preview",
        "2017-05-31-preview"
      ]
    },
    {
      "resourceType": "getEntities",
      "locations": [],
      "apiVersions": [
        "2020-02-01",
        "2019-11-01",
        "2018-03-01-preview",
        "2018-03-01-beta",
        "2018-01-01-preview"
      ]
    },
    {
      "resourceType": "checkNameAvailability",
      "locations": [],
      "apiVersions": [
        "2020-02-01",
        "2019-11-01",
        "2018-03-01-preview",
        "2018-03-01-beta",
        "2018-01-01-preview"
      ]
    },
    {
      "resourceType": "operationResults",
      "locations": [],
      "apiVersions": [
        "2020-02-01",
        "2019-11-01",
        "2018-03-01-preview",
        "2018-03-01-beta",
        "2018-01-01-preview"
      ]
    },
    {
      "resourceType": "operations",
      "locations": [],
      "apiVersions": [
        "2020-02-01",
        "2019-11-01",
        "2018-03-01-preview",
        "2018-03-01-beta",
        "2018-01-01-preview",
        "2017-11-01-preview",
        "2017-08-31-preview",
        "2017-06-30-preview",
        "2017-05-31-preview"
      ]
    },
    {
      "resourceType": "tenantBackfillStatus",
      "locations": [],
      "apiVersions": [
        "2020-02-01",
        "2019-11-01",
        "2018-03-01-preview",
        "2018-03-01-beta"
      ]
    },
    {
      "resourceType": "startTenantBackfill",
      "locations": [],
      "apiVersions": [
        "2020-02-01",
        "2019-11-01",
        "2018-03-01-preview",
        "2018-03-01-beta"
      ]
    }
  ],
  "registrationState": "Registered"
}

DEBUG: [Common.Authentication]: Authenticating using Account: 'xmma@{redacted3}.com', environment: 'AzureCloud', tenant: 'c95a25de-f20a-4216-bc84-99694442c1b5'
DEBUG: [Common.Authentication]: Authenticating using configuration values: Domain: 'c95a25de-f20a-4216-bc84-99694442c1b5', Endpoint: 'https://login.microsoftonline.com/', ClientId: '1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirect: 'urn:ietf:wg:oauth:2.0:oob', ResourceClientUri: 'https://management.core.windows.net/', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using context with Authority 'https://login.microsoftonline.com/c95a25de-f20a-4216-bc84-99694442c1b5/', CorrelationId: '00000000-0000-0000-0000-000000000000', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using AdalConfiguration with Domain: 'c95a25de-f20a-4216-bc84-99694442c1b5', AdEndpoint: 'https://login.microsoftonline.com/', ClientId: '1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirectUri: urn:ietf:wg:oauth:2.0:oob
DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.6468731Z: 81272c94-869a-4a3c-92b4-0d97235dfc52 - LoggerBase.cs: ADAL PCL.Desktop with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...

DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.6468731Z: 81272c94-869a-4a3c-92b4-0d97235dfc52 - LoggerBase.cs: ADAL PCL.Desktop with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...

DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.6468731Z: 81272c94-869a-4a3c-92b4-0d97235dfc52 - LoggerBase.cs: === Token Acquisition started:
        CacheType: null
        Authentication Target: User
        , Authority Host: login.microsoftonline.com

DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.6468731Z: 81272c94-869a-4a3c-92b4-0d97235dfc52 - LoggerBase.cs: === Token Acquisition started:
        Authority: https://login.microsoftonline.com/c95a25de-f20a-4216-bc84-99694442c1b5/
        Resource: https://management.core.windows.net/
        ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
        CacheType: null
        Authentication Target: User

DEBUG: [ADAL]: Verbose: 2020-03-05T14:46:15.6468731Z: 81272c94-869a-4a3c-92b4-0d97235dfc52 - LoggerBase.cs: Loading from cache.

DEBUG: [ADAL]: Verbose: 2020-03-05T14:46:15.6478536Z: 81272c94-869a-4a3c-92b4-0d97235dfc52 - LoggerBase.cs: Loading from cache.

DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.6488486Z: 00000000-0000-0000-0000-000000000000 - LoggerBase.cs: Deserialized 14 items to token cache.

DEBUG: [ADAL]: Verbose: 2020-03-05T14:46:15.6498469Z: 81272c94-869a-4a3c-92b4-0d97235dfc52 - LoggerBase.cs: Looking up cache for a token...

DEBUG: [ADAL]: Verbose: 2020-03-05T14:46:15.6498469Z: 81272c94-869a-4a3c-92b4-0d97235dfc52 - LoggerBase.cs: Looking up cache for a token...

DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.6498469Z: 81272c94-869a-4a3c-92b4-0d97235dfc52 - LoggerBase.cs: An item matching the requested resource was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.6498469Z: 81272c94-869a-4a3c-92b4-0d97235dfc52 - LoggerBase.cs: An item matching the requested resource was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.6498469Z: 81272c94-869a-4a3c-92b4-0d97235dfc52 - LoggerBase.cs: 58,6153525516667 minutes left until token in cache expires

DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.6498469Z: 81272c94-869a-4a3c-92b4-0d97235dfc52 - LoggerBase.cs: 58,6153525516667 minutes left until token in cache expires

DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.6498469Z: 81272c94-869a-4a3c-92b4-0d97235dfc52 - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.6498469Z: 81272c94-869a-4a3c-92b4-0d97235dfc52 - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.6498469Z: 81272c94-869a-4a3c-92b4-0d97235dfc52 - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 2020-03-05 15:44:52 +00:00

DEBUG: [ADAL]: Information: 2020-03-05T14:46:15.6498469Z: 81272c94-869a-4a3c-92b4-0d97235dfc52 - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 2020-03-05 15:44:52 +00:00Access Token Hash: CostrenB93jY/gFIpIZoVdVSXM/6RS1y3u6qbjKmeXk=
         User id: efff4d58-2dfb-4c1d-97bb-9ed79c56dd34

DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '03/05/2020 15:44:52 +00:00', MultipleResource? 'True', Tenant: 'c95a25de-f20a-4216-bc84-99694442c1b5', UserId: 'xmma@{redacted3}.com'
DEBUG: [Common.Authentication]: User info for token DisplayId: 'xmma@{redacted3}.com', Name: Magnus Mårtensson, IdProvider: 'https://sts.windows.net/203bd293-7b05-4e4a-bb30-74b187e2dd1d/', Uid: 'efff4d58-2dfb-4c1d-97bb-9ed79c56dd34'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '03/05/2020 15:44:52 +00:00' Comparing to '03/05/2020 14:46:15 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:58:36.9191875'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/providers/Microsoft.Management/managementGroups/8f1e1564-6469-4e97-9d3b-06db1003b1d2?api-version=2018-03-01-preview&$expand=children&$recurse=true

Headers:
x-ms-client-request-id        : 7d1cb87f-e746-4c74-b35d-69becbec3e10
Cache-Control                 : no-cache
accept-language               : en-US

Body:

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

Status Code:
OK

Headers:
Pragma                        : no-cache
Vary                          : Accept-Encoding
x-ms-ratelimit-remaining-tenant-reads: 11999
x-ms-request-id               : northeurope:6745680a-f7a5-4abd-8932-a082ae5753bd
x-ba-restapi                  : 1.0.3.1551
client-request-id             : 6745680a-f7a5-4abd-8932-a082ae5753bd
request-id                    : 6745680a-f7a5-4abd-8932-a082ae5753bd
x-ms-correlation-request-id   : 6745680a-f7a5-4abd-8932-a082ae5753bd
x-ms-routing-request-id       : NORTHEUROPE:20200305T144615Z:6745680a-f7a5-4abd-8932-a082ae5753bd
Strict-Transport-Security     : max-age=31536000; includeSubDomains
X-Content-Type-Options        : nosniff
Cache-Control                 : no-cache
Date                          : Thu, 05 Mar 2020 14:46:15 GMT

Body:
{
  "id": "/providers/Microsoft.Management/managementGroups/8f1e1564-6469-4e97-9d3b-06db1003b1d2",
  "type": "/providers/Microsoft.Management/managementGroups",
  "name": "8f1e1564-6469-4e97-9d3b-06db1003b1d2",
  "properties": {
    "tenantId": "c95a25de-f20a-4216-bc84-99694442c1b5",
    "displayName": "{redacted} Operation Playgrounds",
    "details": {
      "version": 0,
      "updatedTime": "0001-01-01T00:00:00",
      "updatedBy": null,
      "parent": {
        "id": "/providers/Microsoft.Management/managementGroups/c95a25de-f20a-4216-bc84-99694442c1b5",
        "name": "c95a25de-f20a-4216-bc84-99694442c1b5",
        "displayName": "Tenant Root Group"
      }
    },
    "children": [
      {
        "id": "/providers/Microsoft.Management/managementGroups/eff911a3-8ecf-49b2-a342-f83713c9bb7c",
        "type": "/providers/Microsoft.Management/managementGroups",
        "name": "eff911a3-8ecf-49b2-a342-f83713c9bb7c",
        "displayName": "{redacted}-playground",
        "children": [
          {
            "id": "/subscriptions/a916c005-3c79-427f-9bdd-55de8d19b986",
            "type": "/subscriptions",
            "name": "a916c005-3c79-427f-9bdd-55de8d19b986",
            "displayName": "{redacted}-playground"
          }
        ]
      },
      {
        "id": "/providers/Microsoft.Management/managementGroups/9e0602d9-32fb-405e-8f53-0f717099caa0",
        "type": "/providers/Microsoft.Management/managementGroups",
        "name": "9e0602d9-32fb-405e-8f53-0f717099caa0",
        "displayName": "{redacted2}-playground",
        "children": [
          {
            "id": "/subscriptions/e8363012-a308-4a3f-a483-1788faa22012",
            "type": "/subscriptions",
            "name": "e8363012-a308-4a3f-a483-1788faa22012",
            "displayName": "{redacted2}-playground"
          },
          {
            "id": "/subscriptions/7b2b6552-bb99-47a1-b428-c3fd41805a0c",
            "type": "/subscriptions",
            "name": "7b2b6552-bb99-47a1-b428-c3fd41805a0c",
            "displayName": "{redacted2}-environment-factory"
          }
        ]
      }
    ]
  }
}

Id                : /providers/Microsoft.Management/managementGroups/8f1e1564-6469-4e97-9d3b-06db1003b1d2
Type              : /providers/Microsoft.Management/managementGroups
Name              : 8f1e1564-6469-4e97-9d3b-06db1003b1d2
TenantId          : c95a25de-f20a-4216-bc84-99694442c1b5
DisplayName       : {redacted} Operation Playgrounds
UpdatedTime       : 0001-01-01 00:00:00
UpdatedBy         : 
ParentId          : /providers/Microsoft.Management/managementGroups/c95a25de-f20a-4216-bc84-99694442c1b5
ParentName        : c95a25de-f20a-4216-bc84-99694442c1b5
ParentDisplayName : Tenant Root Group
Children          : {{redacted}-playground, {redacted2}-playground}

DEBUG: AzureQoSEvent: CommandName - Get-AzManagementGroup; IsSuccess - True; Duration - 00:00:00.9425017;
DEBUG: Finish sending metric.
DEBUG: 15:46:16 - GetAzureRmManagementGroup end processing.

statement 2

DEBUG: 15:50:01 - GetAzureRmManagementGroup begin processing with ParameterSet 'GetOperation'.
DEBUG: 15:50:01 - using account id 'xmma@{redacted3}.com'...
DEBUG: [Common.Authentication]: Authenticating using Account: 'xmma@{redacted3}.com', environment: 'AzureCloud', tenant: 'c95a25de-f20a-4216-bc84-99694442c1b5'
DEBUG: [Common.Authentication]: Authenticating using configuration values: Domain: 'c95a25de-f20a-4216-bc84-99694442c1b5', Endpoint: 'https://login.microsoftonline.com/', ClientId: '1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirect: 'urn:ietf:wg:oauth:2.0:oob', ResourceClientUri: 'https://management.core.windows.net/', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using context with Authority 'https://login.microsoftonline.com/c95a25de-f20a-4216-bc84-99694442c1b5/', CorrelationId: '00000000-0000-0000-0000-000000000000', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using AdalConfiguration with Domain: 'c95a25de-f20a-4216-bc84-99694442c1b5', AdEndpoint: 'https://login.microsoftonline.com/', ClientId: '1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirectUri: urn:ietf:wg:oauth:2.0:oob
DEBUG: [ADAL]: Information: 2020-03-05T14:50:01.8441329Z: a38d13b5-9ff9-42cf-8a6e-b87b2cd70308 - LoggerBase.cs: ADAL PCL.Desktop with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...

DEBUG: [ADAL]: Information: 2020-03-05T14:50:01.8441329Z: a38d13b5-9ff9-42cf-8a6e-b87b2cd70308 - LoggerBase.cs: ADAL PCL.Desktop with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...

DEBUG: [ADAL]: Information: 2020-03-05T14:50:01.8441329Z: a38d13b5-9ff9-42cf-8a6e-b87b2cd70308 - LoggerBase.cs: === Token Acquisition started:
        CacheType: null
        Authentication Target: User
        , Authority Host: login.microsoftonline.com

DEBUG: [ADAL]: Information: 2020-03-05T14:50:01.8441329Z: a38d13b5-9ff9-42cf-8a6e-b87b2cd70308 - LoggerBase.cs: === Token Acquisition started:
        Authority: https://login.microsoftonline.com/c95a25de-f20a-4216-bc84-99694442c1b5/
        Resource: https://management.core.windows.net/
        ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
        CacheType: null
        Authentication Target: User

DEBUG: [ADAL]: Verbose: 2020-03-05T14:50:01.8441329Z: a38d13b5-9ff9-42cf-8a6e-b87b2cd70308 - LoggerBase.cs: Loading from cache.

DEBUG: [ADAL]: Verbose: 2020-03-05T14:50:01.8441329Z: a38d13b5-9ff9-42cf-8a6e-b87b2cd70308 - LoggerBase.cs: Loading from cache.

DEBUG: [ADAL]: Information: 2020-03-05T14:50:01.8451301Z: 00000000-0000-0000-0000-000000000000 - LoggerBase.cs: Deserialized 14 items to token cache.

DEBUG: [ADAL]: Verbose: 2020-03-05T14:50:01.8451301Z: a38d13b5-9ff9-42cf-8a6e-b87b2cd70308 - LoggerBase.cs: Looking up cache for a token...

DEBUG: [ADAL]: Verbose: 2020-03-05T14:50:01.8451301Z: a38d13b5-9ff9-42cf-8a6e-b87b2cd70308 - LoggerBase.cs: Looking up cache for a token...

DEBUG: [ADAL]: Information: 2020-03-05T14:50:01.8451301Z: a38d13b5-9ff9-42cf-8a6e-b87b2cd70308 - LoggerBase.cs: An item matching the requested resource was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:50:01.8451301Z: a38d13b5-9ff9-42cf-8a6e-b87b2cd70308 - LoggerBase.cs: An item matching the requested resource was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:50:01.8461269Z: a38d13b5-9ff9-42cf-8a6e-b87b2cd70308 - LoggerBase.cs: 54,8454145516667 minutes left until token in cache expires

DEBUG: [ADAL]: Information: 2020-03-05T14:50:01.8461269Z: a38d13b5-9ff9-42cf-8a6e-b87b2cd70308 - LoggerBase.cs: 54,8454145516667 minutes left until token in cache expires

DEBUG: [ADAL]: Information: 2020-03-05T14:50:01.8461269Z: a38d13b5-9ff9-42cf-8a6e-b87b2cd70308 - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:50:01.8461269Z: a38d13b5-9ff9-42cf-8a6e-b87b2cd70308 - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:50:01.8461269Z: a38d13b5-9ff9-42cf-8a6e-b87b2cd70308 - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 2020-03-05 15:44:52 +00:00

DEBUG: [ADAL]: Information: 2020-03-05T14:50:01.8461269Z: a38d13b5-9ff9-42cf-8a6e-b87b2cd70308 - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 2020-03-05 15:44:52 +00:00Access Token Hash: CostrenB93jY/gFIpIZoVdVSXM/6RS1y3u6qbjKmeXk=
         User id: efff4d58-2dfb-4c1d-97bb-9ed79c56dd34

DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '03/05/2020 15:44:52 +00:00', MultipleResource? 'True', Tenant: 'c95a25de-f20a-4216-bc84-99694442c1b5', UserId: 'xmma@{redacted3}.com'
DEBUG: [Common.Authentication]: User info for token DisplayId: 'xmma@{redacted3}.com', Name: Magnus Mårtensson, IdProvider: 'https://sts.windows.net/203bd293-7b05-4e4a-bb30-74b187e2dd1d/', Uid: 'efff4d58-2dfb-4c1d-97bb-9ed79c56dd34'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '03/05/2020 15:44:52 +00:00' Comparing to '03/05/2020 14:50:01 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:54:50.7248731'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/a916c005-3c79-427f-9bdd-55de8d19b986/providers/Microsoft.Management?api-version=2016-09-01

Headers:
x-ms-client-request-id        : 3d4644da-f202-49c7-af77-fde52ce0e6c7
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               : 17ae9feb-c783-43d0-be9f-891ea45f4d94
x-ms-correlation-request-id   : 17ae9feb-c783-43d0-be9f-891ea45f4d94
x-ms-routing-request-id       : WESTEUROPE:20200305T145002Z:17ae9feb-c783-43d0-be9f-891ea45f4d94
Strict-Transport-Security     : max-age=31536000; includeSubDomains
X-Content-Type-Options        : nosniff
Cache-Control                 : no-cache
Date                          : Thu, 05 Mar 2020 14:50:01 GMT

Body:
{
  "id": "/subscriptions/a916c005-3c79-427f-9bdd-55de8d19b986/providers/Microsoft.Management",
  "namespace": "Microsoft.Management",
  "authorization": {
    "applicationId": "f2c304cf-8e7e-4c3f-8164-16299ad9d272",
    "roleDefinitionId": "c1cf3708-588a-4647-be7f-f400bbe214cf"
  },
  "resourceTypes": [
    {
      "resourceType": "resources",
      "locations": [],
      "apiVersions": [
        "2017-11-01-preview",
        "2017-08-31-preview",
        "2017-06-30-preview",
        "2017-05-31-preview"
      ]
    },
    {
      "resourceType": "managementGroups",
      "locations": [],
      "apiVersions": [
        "2020-02-01",
        "2019-11-01",
        "2018-03-01-preview",
        "2018-03-01-beta",
        "2018-01-01-preview",
        "2017-11-01-preview",
        "2017-08-31-preview",
        "2017-06-30-preview",
        "2017-05-31-preview"
      ]
    },
    {
      "resourceType": "getEntities",
      "locations": [],
      "apiVersions": [
        "2020-02-01",
        "2019-11-01",
        "2018-03-01-preview",
        "2018-03-01-beta",
        "2018-01-01-preview"
      ]
    },
    {
      "resourceType": "checkNameAvailability",
      "locations": [],
      "apiVersions": [
        "2020-02-01",
        "2019-11-01",
        "2018-03-01-preview",
        "2018-03-01-beta",
        "2018-01-01-preview"
      ]
    },
    {
      "resourceType": "operationResults",
      "locations": [],
      "apiVersions": [
        "2020-02-01",
        "2019-11-01",
        "2018-03-01-preview",
        "2018-03-01-beta",
        "2018-01-01-preview"
      ]
    },
    {
      "resourceType": "operations",
      "locations": [],
      "apiVersions": [
        "2020-02-01",
        "2019-11-01",
        "2018-03-01-preview",
        "2018-03-01-beta",
        "2018-01-01-preview",
        "2017-11-01-preview",
        "2017-08-31-preview",
        "2017-06-30-preview",
        "2017-05-31-preview"
      ]
    },
    {
      "resourceType": "tenantBackfillStatus",
      "locations": [],
      "apiVersions": [
        "2020-02-01",
        "2019-11-01",
        "2018-03-01-preview",
        "2018-03-01-beta"
      ]
    },
    {
      "resourceType": "startTenantBackfill",
      "locations": [],
      "apiVersions": [
        "2020-02-01",
        "2019-11-01",
        "2018-03-01-preview",
        "2018-03-01-beta"
      ]
    }
  ],
  "registrationState": "Registered"
}

DEBUG: [Common.Authentication]: Authenticating using Account: 'xmma@{redacted3}.com', environment: 'AzureCloud', tenant: 'c95a25de-f20a-4216-bc84-99694442c1b5'
DEBUG: [Common.Authentication]: Authenticating using configuration values: Domain: 'c95a25de-f20a-4216-bc84-99694442c1b5', Endpoint: 'https://login.microsoftonline.com/', ClientId: '1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirect: 'urn:ietf:wg:oauth:2.0:oob', ResourceClientUri: 'https://management.core.windows.net/', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using context with Authority 'https://login.microsoftonline.com/c95a25de-f20a-4216-bc84-99694442c1b5/', CorrelationId: '00000000-0000-0000-0000-000000000000', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using AdalConfiguration with Domain: 'c95a25de-f20a-4216-bc84-99694442c1b5', AdEndpoint: 'https://login.microsoftonline.com/', ClientId: '1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirectUri: urn:ietf:wg:oauth:2.0:oob
DEBUG: [ADAL]: Information: 2020-03-05T14:50:02.1859401Z: 6b7e2d8a-da00-4bec-97b6-64a71f27d759 - LoggerBase.cs: ADAL PCL.Desktop with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...

DEBUG: [ADAL]: Information: 2020-03-05T14:50:02.1859401Z: 6b7e2d8a-da00-4bec-97b6-64a71f27d759 - LoggerBase.cs: ADAL PCL.Desktop with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...

DEBUG: [ADAL]: Information: 2020-03-05T14:50:02.1859401Z: 6b7e2d8a-da00-4bec-97b6-64a71f27d759 - LoggerBase.cs: === Token Acquisition started:
        CacheType: null
        Authentication Target: User
        , Authority Host: login.microsoftonline.com

DEBUG: [ADAL]: Information: 2020-03-05T14:50:02.1859401Z: 6b7e2d8a-da00-4bec-97b6-64a71f27d759 - LoggerBase.cs: === Token Acquisition started:
        Authority: https://login.microsoftonline.com/c95a25de-f20a-4216-bc84-99694442c1b5/
        Resource: https://management.core.windows.net/
        ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
        CacheType: null
        Authentication Target: User

DEBUG: [ADAL]: Verbose: 2020-03-05T14:50:02.1859401Z: 6b7e2d8a-da00-4bec-97b6-64a71f27d759 - LoggerBase.cs: Loading from cache.

DEBUG: [ADAL]: Verbose: 2020-03-05T14:50:02.1859401Z: 6b7e2d8a-da00-4bec-97b6-64a71f27d759 - LoggerBase.cs: Loading from cache.

DEBUG: [ADAL]: Information: 2020-03-05T14:50:02.1888929Z: 00000000-0000-0000-0000-000000000000 - LoggerBase.cs: Deserialized 14 items to token cache.

DEBUG: [ADAL]: Verbose: 2020-03-05T14:50:02.1888929Z: 6b7e2d8a-da00-4bec-97b6-64a71f27d759 - LoggerBase.cs: Looking up cache for a token...

DEBUG: [ADAL]: Verbose: 2020-03-05T14:50:02.1888929Z: 6b7e2d8a-da00-4bec-97b6-64a71f27d759 - LoggerBase.cs: Looking up cache for a token...

DEBUG: [ADAL]: Information: 2020-03-05T14:50:02.1888929Z: 6b7e2d8a-da00-4bec-97b6-64a71f27d759 - LoggerBase.cs: An item matching the requested resource was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:50:02.1888929Z: 6b7e2d8a-da00-4bec-97b6-64a71f27d759 - LoggerBase.cs: An item matching the requested resource was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:50:02.1888929Z: 6b7e2d8a-da00-4bec-97b6-64a71f27d759 - LoggerBase.cs: 54,839701785 minutes left until token in cache expires

DEBUG: [ADAL]: Information: 2020-03-05T14:50:02.1888929Z: 6b7e2d8a-da00-4bec-97b6-64a71f27d759 - LoggerBase.cs: 54,839701785 minutes left until token in cache expires

DEBUG: [ADAL]: Information: 2020-03-05T14:50:02.1888929Z: 6b7e2d8a-da00-4bec-97b6-64a71f27d759 - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:50:02.1888929Z: 6b7e2d8a-da00-4bec-97b6-64a71f27d759 - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:50:02.1888929Z: 6b7e2d8a-da00-4bec-97b6-64a71f27d759 - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 2020-03-05 15:44:52 +00:00

DEBUG: [ADAL]: Information: 2020-03-05T14:50:02.1888929Z: 6b7e2d8a-da00-4bec-97b6-64a71f27d759 - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 2020-03-05 15:44:52 +00:00Access Token Hash: CostrenB93jY/gFIpIZoVdVSXM/6RS1y3u6qbjKmeXk=
         User id: efff4d58-2dfb-4c1d-97bb-9ed79c56dd34

DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '03/05/2020 15:44:52 +00:00', MultipleResource? 'True', Tenant: 'c95a25de-f20a-4216-bc84-99694442c1b5', UserId: 'xmma@{redacted3}.com'
DEBUG: [Common.Authentication]: User info for token DisplayId: 'xmma@{redacted3}.com', Name: Magnus Mårtensson, IdProvider: 'https://sts.windows.net/203bd293-7b05-4e4a-bb30-74b187e2dd1d/', Uid: 'efff4d58-2dfb-4c1d-97bb-9ed79c56dd34'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '03/05/2020 15:44:52 +00:00' Comparing to '03/05/2020 14:50:02 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:54:50.3811101'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/providers/Microsoft.Management/managementGroups/8f1e1564-6469-4e97-9d3b-06db1003b1d2?api-version=2018-03-01-preview&$expand=children&$recurse=true

Headers:
x-ms-client-request-id        : c07420f8-ef71-47f1-abee-534a80ce591f
Cache-Control                 : no-cache
accept-language               : en-US

Body:

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

Status Code:
OK

Headers:
Pragma                        : no-cache
Vary                          : Accept-Encoding
x-ms-ratelimit-remaining-tenant-reads: 11999
x-ms-request-id               : westeurope:be875881-9d06-4646-b594-450fe67f2b92
x-ba-restapi                  : 1.0.3.1551
client-request-id             : be875881-9d06-4646-b594-450fe67f2b92
request-id                    : be875881-9d06-4646-b594-450fe67f2b92
x-ms-correlation-request-id   : be875881-9d06-4646-b594-450fe67f2b92
x-ms-routing-request-id       : WESTEUROPE:20200305T145002Z:be875881-9d06-4646-b594-450fe67f2b92
Strict-Transport-Security     : max-age=31536000; includeSubDomains
X-Content-Type-Options        : nosniff
Cache-Control                 : no-cache
Date                          : Thu, 05 Mar 2020 14:50:02 GMT

Body:
{
  "id": "/providers/Microsoft.Management/managementGroups/8f1e1564-6469-4e97-9d3b-06db1003b1d2",
  "type": "/providers/Microsoft.Management/managementGroups",
  "name": "8f1e1564-6469-4e97-9d3b-06db1003b1d2",
  "properties": {
    "tenantId": "c95a25de-f20a-4216-bc84-99694442c1b5",
    "displayName": "{redacted} Operation Playgrounds",
    "details": {
      "version": 0,
      "updatedTime": "0001-01-01T00:00:00",
      "updatedBy": null,
      "parent": {
        "id": "/providers/Microsoft.Management/managementGroups/c95a25de-f20a-4216-bc84-99694442c1b5",
        "name": "c95a25de-f20a-4216-bc84-99694442c1b5",
        "displayName": "Tenant Root Group"
      }
    },
    "children": [
      {
        "id": "/providers/Microsoft.Management/managementGroups/eff911a3-8ecf-49b2-a342-f83713c9bb7c",
        "type": "/providers/Microsoft.Management/managementGroups",
        "name": "eff911a3-8ecf-49b2-a342-f83713c9bb7c",
        "displayName": "{redacted}-playground",
        "children": [
          {
            "id": "/subscriptions/a916c005-3c79-427f-9bdd-55de8d19b986",
            "type": "/subscriptions",
            "name": "a916c005-3c79-427f-9bdd-55de8d19b986",
            "displayName": "{redacted}-playground"
          }
        ]
      },
      {
        "id": "/providers/Microsoft.Management/managementGroups/9e0602d9-32fb-405e-8f53-0f717099caa0",
        "type": "/providers/Microsoft.Management/managementGroups",
        "name": "9e0602d9-32fb-405e-8f53-0f717099caa0",
        "displayName": "{redacted2}-playground",
        "children": [
          {
            "id": "/subscriptions/e8363012-a308-4a3f-a483-1788faa22012",
            "type": "/subscriptions",
            "name": "e8363012-a308-4a3f-a483-1788faa22012",
            "displayName": "{redacted2}-playground"
          },
          {
            "id": "/subscriptions/7b2b6552-bb99-47a1-b428-c3fd41805a0c",
            "type": "/subscriptions",
            "name": "7b2b6552-bb99-47a1-b428-c3fd41805a0c",
            "displayName": "{redacted2}-environment-factory"
          }
        ]
      }
    ]
  }
}

Id                : /providers/Microsoft.Management/managementGroups/8f1e1564-6469-4e97-9d3b-06db1003b1d2
Type              : /providers/Microsoft.Management/managementGroups
Name              : 8f1e1564-6469-4e97-9d3b-06db1003b1d2
TenantId          : c95a25de-f20a-4216-bc84-99694442c1b5
DisplayName       : {redacted} Operation Playgrounds
UpdatedTime       : 0001-01-01 00:00:00
UpdatedBy         :
ParentId          : /providers/Microsoft.Management/managementGroups/c95a25de-f20a-4216-bc84-99694442c1b5
ParentName        : c95a25de-f20a-4216-bc84-99694442c1b5
ParentDisplayName : Tenant Root Group
Children          : {{redacted}-playground, {redacted2}-playground}

DEBUG: AzureQoSEvent: CommandName - Get-AzManagementGroup; IsSuccess - True; Duration - 00:00:01.2725897;
DEBUG: Finish sending metric.
DEBUG: 15:50:03 - GetAzureRmManagementGroup end processing.

Statement 3

DEBUG: 15:50:18 - GetAzureRmBlueprint begin processing with ParameterSet 'ByManagementGroupAndName'.
DEBUG: 15:50:18 - using account id 'xmma@{redacted3}.com'...
DEBUG: [Common.Authentication]: Authenticating using Account: 'xmma@{redacted3}.com', environment: 'AzureCloud', tenant: 'c95a25de-f20a-4216-bc84-99694442c1b5'
DEBUG: [Common.Authentication]: Authenticating using configuration values: Domain: 'c95a25de-f20a-4216-bc84-99694442c1b5', Endpoint: 'https://login.microsoftonline.com/', ClientId: '1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirect: 'urn:ietf:wg:oauth:2.0:oob', ResourceClientUri: 'https://management.core.windows.net/', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using context with Authority 'https://login.microsoftonline.com/c95a25de-f20a-4216-bc84-99694442c1b5/', CorrelationId: '00000000-0000-0000-0000-000000000000', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using AdalConfiguration with Domain: 'c95a25de-f20a-4216-bc84-99694442c1b5', AdEndpoint: 'https://login.microsoftonline.com/', ClientId: '1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirectUri: urn:ietf:wg:oauth:2.0:oob
DEBUG: [ADAL]: Information: 2020-03-05T14:50:18.9362907Z: 806193bc-0df4-4dd5-888a-edbc5ef84fcd - LoggerBase.cs: ADAL PCL.Desktop with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...

DEBUG: [ADAL]: Information: 2020-03-05T14:50:18.9362907Z: 806193bc-0df4-4dd5-888a-edbc5ef84fcd - LoggerBase.cs: ADAL PCL.Desktop with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...

DEBUG: [ADAL]: Information: 2020-03-05T14:50:18.9362907Z: 806193bc-0df4-4dd5-888a-edbc5ef84fcd - LoggerBase.cs: === Token Acquisition started:
        CacheType: null
        Authentication Target: User
        , Authority Host: login.microsoftonline.com

DEBUG: [ADAL]: Information: 2020-03-05T14:50:18.9362907Z: 806193bc-0df4-4dd5-888a-edbc5ef84fcd - LoggerBase.cs: === Token Acquisition started:
        Authority: https://login.microsoftonline.com/c95a25de-f20a-4216-bc84-99694442c1b5/
        Resource: https://management.core.windows.net/
        ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
        CacheType: null
        Authentication Target: User

DEBUG: [ADAL]: Verbose: 2020-03-05T14:50:18.9362907Z: 806193bc-0df4-4dd5-888a-edbc5ef84fcd - LoggerBase.cs: Loading from cache.

DEBUG: [ADAL]: Verbose: 2020-03-05T14:50:18.9362907Z: 806193bc-0df4-4dd5-888a-edbc5ef84fcd - LoggerBase.cs: Loading from cache.

DEBUG: [ADAL]: Information: 2020-03-05T14:50:18.9382855Z: 00000000-0000-0000-0000-000000000000 - LoggerBase.cs: Deserialized 14 items to token cache.

DEBUG: [ADAL]: Verbose: 2020-03-05T14:50:18.9382855Z: 806193bc-0df4-4dd5-888a-edbc5ef84fcd - LoggerBase.cs: Looking up cache for a token...

DEBUG: [ADAL]: Verbose: 2020-03-05T14:50:18.9382855Z: 806193bc-0df4-4dd5-888a-edbc5ef84fcd - LoggerBase.cs: Looking up cache for a token...

DEBUG: [ADAL]: Information: 2020-03-05T14:50:18.9382855Z: 806193bc-0df4-4dd5-888a-edbc5ef84fcd - LoggerBase.cs: An item matching the requested resource was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:50:18.9382855Z: 806193bc-0df4-4dd5-888a-edbc5ef84fcd - LoggerBase.cs: An item matching the requested resource was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:50:18.9382855Z: 806193bc-0df4-4dd5-888a-edbc5ef84fcd - LoggerBase.cs: 54,5605452416667 minutes left until token in cache expires

DEBUG: [ADAL]: Information: 2020-03-05T14:50:18.9382855Z: 806193bc-0df4-4dd5-888a-edbc5ef84fcd - LoggerBase.cs: 54,5605452416667 minutes left until token in cache expires

DEBUG: [ADAL]: Information: 2020-03-05T14:50:18.9382855Z: 806193bc-0df4-4dd5-888a-edbc5ef84fcd - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:50:18.9382855Z: 806193bc-0df4-4dd5-888a-edbc5ef84fcd - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:50:18.9392813Z: 806193bc-0df4-4dd5-888a-edbc5ef84fcd - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 2020-03-05 15:44:52 +00:00

DEBUG: [ADAL]: Information: 2020-03-05T14:50:18.9392813Z: 806193bc-0df4-4dd5-888a-edbc5ef84fcd - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 2020-03-05 15:44:52 +00:00Access Token Hash: CostrenB93jY/gFIpIZoVdVSXM/6RS1y3u6qbjKmeXk=
         User id: efff4d58-2dfb-4c1d-97bb-9ed79c56dd34

DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '03/05/2020 15:44:52 +00:00', MultipleResource? 'True', Tenant: 'c95a25de-f20a-4216-bc84-99694442c1b5', UserId: 'xmma@{redacted3}.com'
DEBUG: [Common.Authentication]: User info for token DisplayId: 'xmma@{redacted3}.com', Name: Magnus Mårtensson, IdProvider: 'https://sts.windows.net/203bd293-7b05-4e4a-bb30-74b187e2dd1d/', Uid: 'efff4d58-2dfb-4c1d-97bb-9ed79c56dd34'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '03/05/2020 15:44:52 +00:00' Comparing to '03/05/2020 14:50:18 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:54:33.6187159'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com//providers/Microsoft.Management/managementGroups/8f1e1564-6469-4e97-9d3b-06db1003b1d2/providers/Microsoft.Blueprint/blueprints/PlayGroundRules?api-version=2018-11-01-preview

Headers:
x-ms-client-request-id        : 8ad5e0ab-f22b-4a14-b574-241d82d0fd5d
accept-language               : en-US

Body:

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

Status Code:
OK

Headers:
Pragma                        : no-cache
x-ms-request-id               : ca821af6-17d1-4a00-b84a-2ffc1986594e
x-ms-ratelimit-remaining-tenant-reads: 11999
x-ms-correlation-request-id   : 18c10902-b974-40c5-ab32-084eb9dfea52
x-ms-routing-request-id       : WESTEUROPE:20200305T145019Z:18c10902-b974-40c5-ab32-084eb9dfea52
Strict-Transport-Security     : max-age=31536000; includeSubDomains
X-Content-Type-Options        : nosniff
Cache-Control                 : no-cache
Date                          : Thu, 05 Mar 2020 14:50:18 GMT
Server                        : Microsoft-HTTPAPI/2.0

Body:
{
  "properties": {
    "parameters": {},
    "resourceGroups": {
      "ResourceGroup": {
        "name": "rg-DenyAllInBound-AllowInternetOutBound",
        "location": "westeurope",
        "metadata": {
          "displayName": "Resource Group for DenyAllInBound-AllowInternetOutBound NSG"
        },
        "dependsOn": []
      }
    },
    "targetScope": "subscription",
    "status": {
      "timeCreated": "2019-12-12T14:06:51+01:00",
      "lastModified": "2020-02-25T13:55:24.0864053+01:00"
    },
    "versions": {
      "1.0.0.0": {
        "datePublished": "2019-12-12T14:10:26+01:00"
      },
      "2.0.0.0": {
        "datePublished": "2019-12-19T15:38:29+01:00"
      },
      "2.0.1.0": {
        "datePublished": "2020-01-06T13:36:17+01:00"
      },
      "202001081544": {
        "datePublished": "2020-01-08T16:44:49+01:00"
      },
      "202001090802": {
        "datePublished": "2020-01-09T09:02:04+01:00"
      },
      "202001090829": {
        "datePublished": "2020-01-09T09:29:34+01:00"
      },
      "202001090834": {
        "datePublished": "2020-01-09T09:34:44+01:00"
      },
      "202001091243": {
        "datePublished": "2020-01-09T13:43:57+01:00"
      },
      "202001091244": {
        "datePublished": "2020-01-09T13:44:20+01:00"
      },
      "202001091254": {
        "datePublished": "2020-01-09T13:54:40+01:00"
      },
      "202001201554": {
        "datePublished": "2020-01-20T16:54:51+01:00"
      },
      "202001211003": {
        "datePublished": "2020-01-21T11:03:17+01:00"
      },
      "202001211215": {
        "datePublished": "2020-01-21T13:15:45+01:00"
      },
      "202001231102": {
        "datePublished": "2020-01-23T12:02:23+01:00"
      },
      "202001231143": {
        "datePublished": "2020-01-23T12:43:28+01:00"
      },
      "202001231154": {
        "datePublished": "2020-01-23T12:54:59+01:00"
      },
      "202001240827": {
        "datePublished": "2020-01-24T09:27:29+01:00"
      },
      "202001241044": {
        "datePublished": "2020-01-24T11:44:04+01:00"
      },
      "202001241054": {
        "datePublished": "2020-01-24T11:54:17+01:00"
      },
      "202001281350": {
        "datePublished": "2020-01-28T14:50:56+01:00"
      },
      "202001291052": {
        "datePublished": "2020-01-29T11:52:06+01:00"
      },
      "202001310759": {
        "datePublished": "2020-01-31T08:59:45+01:00"
      },
      "202001310820": {
        "datePublished": "2020-01-31T09:20:51+01:00"
      },
      "202002241542": {
        "datePublished": "2020-02-24T15:42:17+01:00"
      },
      "202002251244": {
        "datePublished": "2020-02-25T12:44:45+01:00"
      },
      "202002251355": {
        "datePublished": "2020-02-25T13:55:31+01:00"
      }
    },
    "description": "Rules to play by. Play nice! Rules that apply to a Playground subscription."
  },
  "id": "/providers/Microsoft.Management/managementGroups/8f1e1564-6469-4e97-9d3b-06db1003b1d2/providers/Microsoft.Blueprint/blueprints/PlaygroundRules",
  "type": "Microsoft.Blueprint/blueprints",
  "name": "PlaygroundRules"
}

Name              : PlaygroundRules
Id                : /providers/Microsoft.Management/managementGroups/8f1e1564-6469-4e97-9d3b-06db1003b1d2/providers/Microsoft.Blueprint/blueprints/PlaygroundRules
ManagementGroupId : 8f1e1564-6469-4e97-9d3b-06db1003b1d2
Versions          : {1.0.0.0, 2.0.0.0, 2.0.1.0, 202001081544...}
Description       : Rules to play by. Play nice! Rules that apply to a Playground subscription.
TimeCreated       : 2019-12-12 13:06:51
TargetScope       : Subscription
Parameters        : 
ResourceGroups    : ResourceGroup

DEBUG: AzureQoSEvent: CommandName - Get-AzBlueprint; IsSuccess - True; Duration - 00:00:00.5402018;
DEBUG: Finish sending metric.
DEBUG: 15:50:19 - GetAzureRmBlueprint end processing.

statement 4

DEBUG: 15:50:35 - GetAzureRmManagementGroup begin processing with ParameterSet 'GetOperation'.
DEBUG: 15:50:35 - using account id 'xmma@{redacted3}.com'...
DEBUG: [Common.Authentication]: Authenticating using Account: 'xmma@{redacted3}.com', environment: 'AzureCloud', tenant: 'c95a25de-f20a-4216-bc84-99694442c1b5'
DEBUG: [Common.Authentication]: Authenticating using configuration values: Domain: 'c95a25de-f20a-4216-bc84-99694442c1b5', Endpoint: 'https://login.microsoftonline.com/', ClientId: '1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirect: 'urn:ietf:wg:oauth:2.0:oob', ResourceClientUri: 'https://management.core.windows.net/', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using context with Authority 'https://login.microsoftonline.com/c95a25de-f20a-4216-bc84-99694442c1b5/', CorrelationId: '00000000-0000-0000-0000-000000000000', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using AdalConfiguration with Domain: 'c95a25de-f20a-4216-bc84-99694442c1b5', AdEndpoint: 'https://login.microsoftonline.com/', ClientId: '1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirectUri: urn:ietf:wg:oauth:2.0:oob
DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.3532436Z: 845bfe5e-df2e-49c7-9787-de9304c2cb39 - LoggerBase.cs: ADAL PCL.Desktop with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...

DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.3532436Z: 845bfe5e-df2e-49c7-9787-de9304c2cb39 - LoggerBase.cs: ADAL PCL.Desktop with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...

DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.3532436Z: 845bfe5e-df2e-49c7-9787-de9304c2cb39 - LoggerBase.cs: === Token Acquisition started:
        CacheType: null
        Authentication Target: User
        , Authority Host: login.microsoftonline.com

DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.3542397Z: 845bfe5e-df2e-49c7-9787-de9304c2cb39 - LoggerBase.cs: === Token Acquisition started:
        Authority: https://login.microsoftonline.com/c95a25de-f20a-4216-bc84-99694442c1b5/
        Resource: https://management.core.windows.net/
        ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
        CacheType: null
        Authentication Target: User

DEBUG: [ADAL]: Verbose: 2020-03-05T14:50:35.3542397Z: 845bfe5e-df2e-49c7-9787-de9304c2cb39 - LoggerBase.cs: Loading from cache.

DEBUG: [ADAL]: Verbose: 2020-03-05T14:50:35.3542397Z: 845bfe5e-df2e-49c7-9787-de9304c2cb39 - LoggerBase.cs: Loading from cache.

DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.3562342Z: 00000000-0000-0000-0000-000000000000 - LoggerBase.cs: Deserialized 14 items to token cache.

DEBUG: [ADAL]: Verbose: 2020-03-05T14:50:35.3562342Z: 845bfe5e-df2e-49c7-9787-de9304c2cb39 - LoggerBase.cs: Looking up cache for a token...

DEBUG: [ADAL]: Verbose: 2020-03-05T14:50:35.3562342Z: 845bfe5e-df2e-49c7-9787-de9304c2cb39 - LoggerBase.cs: Looking up cache for a token...

DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.3562342Z: 845bfe5e-df2e-49c7-9787-de9304c2cb39 - LoggerBase.cs: An item matching the requested resource was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.3562342Z: 845bfe5e-df2e-49c7-9787-de9304c2cb39 - LoggerBase.cs: An item matching the requested resource was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.3562342Z: 845bfe5e-df2e-49c7-9787-de9304c2cb39 - LoggerBase.cs: 54,2869127633333 minutes left until token in cache expires

DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.3562342Z: 845bfe5e-df2e-49c7-9787-de9304c2cb39 - LoggerBase.cs: 54,2869127633333 minutes left until token in cache expires

DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.3562342Z: 845bfe5e-df2e-49c7-9787-de9304c2cb39 - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.3562342Z: 845bfe5e-df2e-49c7-9787-de9304c2cb39 - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.3562342Z: 845bfe5e-df2e-49c7-9787-de9304c2cb39 - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 2020-03-05 15:44:52 +00:00

DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.3572357Z: 845bfe5e-df2e-49c7-9787-de9304c2cb39 - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 2020-03-05 15:44:52 +00:00Access Token Hash: CostrenB93jY/gFIpIZoVdVSXM/6RS1y3u6qbjKmeXk=
         User id: efff4d58-2dfb-4c1d-97bb-9ed79c56dd34

DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '03/05/2020 15:44:52 +00:00', MultipleResource? 'True', Tenant: 'c95a25de-f20a-4216-bc84-99694442c1b5', UserId: 'xmma@{redacted3}.com'
DEBUG: [Common.Authentication]: User info for token DisplayId: 'xmma@{redacted3}.com', Name: Magnus Mårtensson, IdProvider: 'https://sts.windows.net/203bd293-7b05-4e4a-bb30-74b187e2dd1d/', Uid: 'efff4d58-2dfb-4c1d-97bb-9ed79c56dd34'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '03/05/2020 15:44:52 +00:00' Comparing to '03/05/2020 14:50:35 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:54:17.2137643'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/a916c005-3c79-427f-9bdd-55de8d19b986/providers/Microsoft.Management?api-version=2016-09-01

Headers:
x-ms-client-request-id        : ec2a03fa-6810-433b-ba1a-ead9132c1448
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               : 5b11ba03-363a-408f-9869-cbba2029a588
x-ms-correlation-request-id   : 5b11ba03-363a-408f-9869-cbba2029a588
x-ms-routing-request-id       : WESTEUROPE:20200305T145035Z:5b11ba03-363a-408f-9869-cbba2029a588
Strict-Transport-Security     : max-age=31536000; includeSubDomains
X-Content-Type-Options        : nosniff
Cache-Control                 : no-cache
Date                          : Thu, 05 Mar 2020 14:50:34 GMT

Body:
{
  "id": "/subscriptions/a916c005-3c79-427f-9bdd-55de8d19b986/providers/Microsoft.Management",
  "namespace": "Microsoft.Management",
  "authorization": {
    "applicationId": "f2c304cf-8e7e-4c3f-8164-16299ad9d272",
    "roleDefinitionId": "c1cf3708-588a-4647-be7f-f400bbe214cf"
  },
  "resourceTypes": [
    {
      "resourceType": "resources",
      "locations": [],
      "apiVersions": [
        "2017-11-01-preview",
        "2017-08-31-preview",
        "2017-06-30-preview",
        "2017-05-31-preview"
      ]
    },
    {
      "resourceType": "managementGroups",
      "locations": [],
      "apiVersions": [
        "2020-02-01",
        "2019-11-01",
        "2018-03-01-preview",
        "2018-03-01-beta",
        "2018-01-01-preview",
        "2017-11-01-preview",
        "2017-08-31-preview",
        "2017-06-30-preview",
        "2017-05-31-preview"
      ]
    },
    {
      "resourceType": "getEntities",
      "locations": [],
      "apiVersions": [
        "2020-02-01",
        "2019-11-01",
        "2018-03-01-preview",
        "2018-03-01-beta",
        "2018-01-01-preview"
      ]
    },
    {
      "resourceType": "checkNameAvailability",
      "locations": [],
      "apiVersions": [
        "2020-02-01",
        "2019-11-01",
        "2018-03-01-preview",
        "2018-03-01-beta",
        "2018-01-01-preview"
      ]
    },
    {
      "resourceType": "operationResults",
      "locations": [],
      "apiVersions": [
        "2020-02-01",
        "2019-11-01",
        "2018-03-01-preview",
        "2018-03-01-beta",
        "2018-01-01-preview"
      ]
    },
    {
      "resourceType": "operations",
      "locations": [],
      "apiVersions": [
        "2020-02-01",
        "2019-11-01",
        "2018-03-01-preview",
        "2018-03-01-beta",
        "2018-01-01-preview",
        "2017-11-01-preview",
        "2017-08-31-preview",
        "2017-06-30-preview",
        "2017-05-31-preview"
      ]
    },
    {
      "resourceType": "tenantBackfillStatus",
      "locations": [],
      "apiVersions": [
        "2020-02-01",
        "2019-11-01",
        "2018-03-01-preview",
        "2018-03-01-beta"
      ]
    },
    {
      "resourceType": "startTenantBackfill",
      "locations": [],
      "apiVersions": [
        "2020-02-01",
        "2019-11-01",
        "2018-03-01-preview",
        "2018-03-01-beta"
      ]
    }
  ],
  "registrationState": "Registered"
}

DEBUG: [Common.Authentication]: Authenticating using Account: 'xmma@{redacted3}.com', environment: 'AzureCloud', tenant: 'c95a25de-f20a-4216-bc84-99694442c1b5'
DEBUG: [Common.Authentication]: Authenticating using configuration values: Domain: 'c95a25de-f20a-4216-bc84-99694442c1b5', Endpoint: 'https://login.microsoftonline.com/', ClientId: '1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirect: 'urn:ietf:wg:oauth:2.0:oob', ResourceClientUri: 'https://management.core.windows.net/', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using context with Authority 'https://login.microsoftonline.com/c95a25de-f20a-4216-bc84-99694442c1b5/', CorrelationId: '00000000-0000-0000-0000-000000000000', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using AdalConfiguration with Domain: 'c95a25de-f20a-4216-bc84-99694442c1b5', AdEndpoint: 'https://login.microsoftonline.com/', ClientId: '1950a258-227b-4e31-a9cf-717495945fc2', ClientRedirectUri: urn:ietf:wg:oauth:2.0:oob
DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.5447304Z: 28f6f74a-c085-4b1a-9e8d-d2fd1338d75d - LoggerBase.cs: ADAL PCL.Desktop with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...

DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.5447304Z: 28f6f74a-c085-4b1a-9e8d-d2fd1338d75d - LoggerBase.cs: ADAL PCL.Desktop with assembly version '3.19.2.6005', file version '3.19.50302.0130' and informational version '2a8bec6c4c76d0c1ef819b55bdc3cda2d2605056' is running...

DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.5447304Z: 28f6f74a-c085-4b1a-9e8d-d2fd1338d75d - LoggerBase.cs: === Token Acquisition started: 
        CacheType: null
        Authentication Target: User
        , Authority Host: login.microsoftonline.com

DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.5447304Z: 28f6f74a-c085-4b1a-9e8d-d2fd1338d75d - LoggerBase.cs: === Token Acquisition started:
        Authority: https://login.microsoftonline.com/c95a25de-f20a-4216-bc84-99694442c1b5/
        Resource: https://management.core.windows.net/
        ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
        CacheType: null
        Authentication Target: User

DEBUG: [ADAL]: Verbose: 2020-03-05T14:50:35.5447304Z: 28f6f74a-c085-4b1a-9e8d-d2fd1338d75d - LoggerBase.cs: Loading from cache.

DEBUG: [ADAL]: Verbose: 2020-03-05T14:50:35.5447304Z: 28f6f74a-c085-4b1a-9e8d-d2fd1338d75d - LoggerBase.cs: Loading from cache.

DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.5457275Z: 00000000-0000-0000-0000-000000000000 - LoggerBase.cs: Deserialized 14 items to token cache.

DEBUG: [ADAL]: Verbose: 2020-03-05T14:50:35.5457275Z: 28f6f74a-c085-4b1a-9e8d-d2fd1338d75d - LoggerBase.cs: Looking up cache for a token...

DEBUG: [ADAL]: Verbose: 2020-03-05T14:50:35.5457275Z: 28f6f74a-c085-4b1a-9e8d-d2fd1338d75d - LoggerBase.cs: Looking up cache for a token...

DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.5467248Z: 28f6f74a-c085-4b1a-9e8d-d2fd1338d75d - LoggerBase.cs: An item matching the requested resource was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.5467248Z: 28f6f74a-c085-4b1a-9e8d-d2fd1338d75d - LoggerBase.cs: An item matching the requested resource was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.5467248Z: 28f6f74a-c085-4b1a-9e8d-d2fd1338d75d - LoggerBase.cs: 54,28373792 minutes left until token in cache expires

DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.5467248Z: 28f6f74a-c085-4b1a-9e8d-d2fd1338d75d - LoggerBase.cs: 54,28373792 minutes left until token in cache expires

DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.5467248Z: 28f6f74a-c085-4b1a-9e8d-d2fd1338d75d - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.5467248Z: 28f6f74a-c085-4b1a-9e8d-d2fd1338d75d - LoggerBase.cs: A matching item (access token or refresh token or both) was found in the cache

DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.5467248Z: 28f6f74a-c085-4b1a-9e8d-d2fd1338d75d - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 2020-03-05 15:44:52 +00:00

DEBUG: [ADAL]: Information: 2020-03-05T14:50:35.5467248Z: 28f6f74a-c085-4b1a-9e8d-d2fd1338d75d - LoggerBase.cs: === Token Acquisition finished successfully. An access token was returned: Expiration Time: 2020-03-05 15:44:52 +00:00Access Token Hash: CostrenB93jY/gFIpIZoVdVSXM/6RS1y3u6qbjKmeXk=
         User id: efff4d58-2dfb-4c1d-97bb-9ed79c56dd34

DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '03/05/2020 15:44:52 +00:00', MultipleResource? 'True', Tenant: 'c95a25de-f20a-4216-bc84-99694442c1b5', UserId: 'xmma@{redacted3}.com'
DEBUG: [Common.Authentication]: User info for token DisplayId: 'xmma@{redacted3}.com', Name: Magnus Mårtensson, IdProvider: 'https://sts.windows.net/203bd293-7b05-4e4a-bb30-74b187e2dd1d/', Uid: 'efff4d58-2dfb-4c1d-97bb-9ed79c56dd34'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '03/05/2020 15:44:52 +00:00' Comparing to '03/05/2020 14:50:35 +00:00' With threshold '00:05:00', calculated time until token expiry: '00:54:17.0232779'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/providers/Microsoft.Management/managementGroups/8f1e1564-6469-4e97-9d3b-06db1003b1d2?api-version=2018-03-01-preview&$expand=children&$recurse=true

Headers:
x-ms-client-request-id        : e0de1552-31c2-413b-8f51-5896fbf46ca2
Cache-Control                 : no-cache
accept-language               : en-US

Body:

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

Status Code:
BadRequest

Headers:
Pragma                        : no-cache
x-ms-request-id               : westeurope:642f9171-ca3b-44b4-b597-49a0784d459e
x-ba-restapi                  : 1.0.3.1551
client-request-id             : 642f9171-ca3b-44b4-b597-49a0784d459e
request-id                    : 642f9171-ca3b-44b4-b597-49a0784d459e
x-ms-ratelimit-remaining-tenant-reads: 11999
x-ms-correlation-request-id   : 642f9171-ca3b-44b4-b597-49a0784d459e
x-ms-routing-request-id       : WESTEUROPE:20200305T145035Z:642f9171-ca3b-44b4-b597-49a0784d459e
Strict-Transport-Security     : max-age=31536000; includeSubDomains
X-Content-Type-Options        : nosniff
Cache-Control                 : no-cache
Date                          : Thu, 05 Mar 2020 14:50:35 GMT

Body:
{
  "error": {
    "code": "BadRequest",
    "message": "Request query contains more than one $expand.",
    "details": null
  }
}

Get-AzManagementGroup : Request query contains more than one $expand.
At line:1 char:1
+ Get-AzManagementGroup -GroupName '8f1e1564-6469-4e97-9d3b-06db1003b1d ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Get-AzManagementGroup], CloudException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.Resources.ManagementGroups.GetAzureRmManagementGroup

DEBUG: AzureQoSEvent: CommandName - Get-AzManagementGroup; IsSuccess - False; Duration - 00:00:00.6822279;; Exception - Microsoft.Rest.Azure.CloudException: Request query contains more than one $expand.
   at Microsoft.Azure.Commands.Resources.ManagementGroups.Common.Utility.HandleErrorResponseException(ErrorResponseException ex)
   at Microsoft.Azure.Commands.Resources.ManagementGroups.GetAzureRmManagementGroup.ExecuteCmdlet()
   at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord();
DEBUG: Finish sending metric.
DEBUG: 15:50:36 - GetAzureRmManagementGroup end processing.

Error output

DEBUG: 15:53:40 - ResolveError begin processing with ParameterSet 'AnyErrorParameterSet'.
DEBUG: 15:53:40 - using account id 'xmma@{redacted3}.com'...
WARNING: Breaking changes in the cmdlet 'Resolve-AzError' :
WARNING:  - The `Resolve-Error` alias will be removed in a future release.  Please change any scripts that use this alias to use `Resolve-AzError` instead.

WARNING: 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: 6

RequestId      : 
Message        : Request query contains more than one $expand.
ServerMessage  : 
ServerResponse :
RequestMessage :
InvocationInfo : {Get-AzManagementGroup}
Line           : Get-AzManagementGroup -GroupName '8f1e1564-6469-4e97-9d3b-06db1003b1d2' -Expand -Recurse # No longer works because of the line above
Position       : At line:1 char:1
                 + Get-AzManagementGroup -GroupName '8f1e1564-6469-4e97-9d3b-06db1003b1d ...
                 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
StackTrace     :    at Microsoft.Azure.Commands.Resources.ManagementGroups.Common.Utility.HandleErrorResponseException(ErrorResponseException ex)
                    at Microsoft.Azure.Commands.Resources.ManagementGroups.GetAzureRmManagementGroup.ExecuteCmdlet()
                    at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
HistoryId      : 6

DEBUG: AzureQoSEvent: CommandName - Resolve-AzError; IsSuccess - True; Duration - 00:00:00.2496502;
DEBUG: Finish sending metric.
DEBUG: 15:53:41 - ResolveError end processing.
ghost commented 4 years ago

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

dingmeng-xue commented 4 years ago

Resource team, this issue can be reproduced. The URL and payload of correct request and failed request are the same. Please help to check server logic.

SaurabhSharma-MSFT commented 2 years ago

@rthorn17 Do you have updates on this issue.