-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Open
Labels
Azure PS TeamTrackingWe will track status and follow internallyWe will track status and follow internallybugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reported
Description
Description
When running Get-AzRoleManagementPolicy, I still get my shell cluttered with breaking upcoming changes, even though I configured DisplayBreakingChangeWarning beforehand.
Issue script & Debug output
$DebugPreference='Continue'
Update-AzConfig -DisplayBreakingChangeWarning $false
DEBUG: Initializing ConditionalAssemblyContext. PSEdition is [Core]. PSVersion is [7.5.2].
DEBUG: Initializing ConditionalAssemblyProvider. AssemblyRootPath is [C:\Program Files\PowerShell\Modules\Az.Accounts\5.2.0\StartupScripts\..\lib].
DEBUG: Registering Az shared AssemblyLoadContext.
DEBUG: AssemblyLoadContext registered.
DEBUG: Initializing PSStyle.
DEBUG: Got version 0 of Az
DEBUG: Got version 0 of Az.Accounts
DEBUG: 14:04:22 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 14:04:22 - UpdateConfigCommand begin processing with ParameterSet '__AllParameterSets'.
DEBUG: 14:04:22 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [Az.Accounts], Cmdlet = [Update-AzConfig]. Returning default value [True].
DEBUG: 14:04:22 - [ConfigManager] Updated [DisplayBreakingChangeWarning] to [False]. Scope = [CurrentUser], AppliesTo = [Az]
DEBUG: 14:04:22 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 14:04:22 - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 14:04:22 - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 14:04:22 - No authentication telemetry is found for the current cmdlet with Id 24d0f2c4-5482-40bc-a300-8fe536c2ef52.
DEBUG: AzureQoSEvent: Module: Az.Accounts:5.2.0; CommandName: Update-AzConfig; PSVersion: 7.5.2; IsSuccess: True; Duration: 00:00:00.1497987; SanitizeDuration: 00:00:00.0012260
DEBUG: 14:04:22 - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 14:04:22 - UpdateConfigCommand end processing.
Key Value Applies To Scope Help Message
--- ----- ---------- ----- ------------
DisplayBreakingChangeWarning False Az CurrentUser Controls if warning messages for breaking changes are displayed or suppressed. When enabl…
Get-AzRoleManagementPolicy -Scope '1'
DEBUG: 14:05:11 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
WARNING: Upcoming breaking changes in the cmdlet 'Get-AzRoleManagementPolicy' :
- The output type 'Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Models.Api20201001Preview.IRoleManagementPolicy' is changing
- The following properties in the output type are being deprecated : 'EffectiveRule[]' 'Rule[]'
- The following properties are being added to the output type : 'List[EffectiveRule]' 'List[Rule]'
- This change will take effect on '03.11.2025'- The change is expected to take effect from Az version : '15.0.0'
- The change is expected to take effect from version : '9.0.0'
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.
DEBUG: [CmdletBeginProcessing]: Starting command
DEBUG: CmdletBeginProcessing:
DEBUG: CmdletProcessRecordStart:
DEBUG: CmdletGetPipeline:
DEBUG: CmdletBeforeAPICall:
DEBUG: URLCreated: /1/providers/Microsoft.Authorization/roleManagementPolicies?api-version=2020-10-01-preview
DEBUG: RequestCreated: /1/providers/Microsoft.Authorization/roleManagementPolicies?api-version=2020-10-01-preview
DEBUG: HeaderParametersAdded:
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/1/providers/Microsoft.Authorization/roleManagementPolicies?api-version=2020-10-01-preview
Headers:
x-ms-unique-id : 1
x-ms-client-request-id : 23ebc859-f9fe-4afb-9279-101f3b62aac3
CommandName : Get-AzRoleManagementPolicy
FullCommandName : Get-AzRoleManagementPolicy_List
ParameterSetName : __AllParameterSets
User-Agent : AzurePowershell/v14.3.0,PSVersion/v7.5.2,Az.Authorization/8.0.1
Body:
DEBUG: BeforeCall:
DEBUG: Finally:
DEBUG: [CmdletProcessRecordAsyncEnd]: Finish HTTP process
DEBUG: CmdletProcessRecordAsyncEnd:
DEBUG: [CmdletException]: Received Exception with message 'InvalidOperationException - The context is invalid. Please login using Connect-AzAccount. : at Microsoft.Azure.Commands.Common.ContextAdapter.AuthorizeRequest(IAzureContext context, HttpRequestMessage request, CancellationToken cancellationToken, String endpointResourceIdKey, String endpointSuffixKey, Func`6 tokenAudienceConverter, IDictionary`2 extensibleParamters)
at Microsoft.Azure.Commands.Common.ContextAdapter.AuthenticationHelper(IAzureContext context, String endpointResourceIdKey, String endpointSuffixKey, HttpRequestMessage request, CancellationToken cancelToken, Action cancelAction, Func`4 signal, Func`5 next, Func`6 tokenAudienceConverter)
at Microsoft.Azure.Commands.Common.ContextAdapter.<>c__DisplayClass14_0.<<SendHandler>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Authorization.RoleManagementPoliciesListForScope_Call(HttpRequestMessage request, Func`3 onOk, Func`3 onDefault, IEventListener eventListener, ISendAsync sender)
at Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Authorization.RoleManagementPoliciesListForScope_Call(HttpRequestMessage request, Func`3 onOk, Func`3 onDefault, IEventListener eventListener, ISendAsync sender)
at Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Authorization.RoleManagementPoliciesListForScope(String scope, Func`3 onOk, Func`3 onDefault, IEventListener eventListener, ISendAsync sender)
at Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Cmdlets.GetAzRoleManagementPolicy_List.ProcessRecordAsync()
at Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Cmdlets.GetAzRoleManagementPolicy_List.ProcessRecordAsync()'
DEBUG: CmdletException: InvalidOperationException - The context is invalid. Please login using Connect-AzAccount. : at Microsoft.Azure.Commands.Common.ContextAdapter.AuthorizeRequest(IAzureContext context, HttpRequestMessage request, CancellationToken cancellationToken, String endpointResourceIdKey, String endpointSuffixKey, Func`6 tokenAudienceConverter, IDictionary`2 extensibleParamters)
at Microsoft.Azure.Commands.Common.ContextAdapter.AuthenticationHelper(IAzureContext context, String endpointResourceIdKey, String endpointSuffixKey, HttpRequestMessage request, CancellationToken cancelToken, Action cancelAction, Func`4 signal, Func`5 next, Func`6 tokenAudienceConverter)
at Microsoft.Azure.Commands.Common.ContextAdapter.<>c__DisplayClass14_0.<<SendHandler>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Authorization.RoleManagementPoliciesListForScope_Call(HttpRequestMessage request, Func`3 onOk, Func`3 onDefault, IEventListener eventListener, ISendAsync sender)
at Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Authorization.RoleManagementPoliciesListForScope_Call(HttpRequestMessage request, Func`3 onOk, Func`3 onDefault, IEventListener eventListener, ISendAsync sender)
at Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Authorization.RoleManagementPoliciesListForScope(String scope, Func`3 onOk, Func`3 onDefault, IEventListener eventListener, ISendAsync sender)
at Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Cmdlets.GetAzRoleManagementPolicy_List.ProcessRecordAsync()
at Microsoft.Azure.PowerShell.Cmdlets.Resources.Authorization.Cmdlets.GetAzRoleManagementPolicy_List.ProcessRecordAsync()
Get-AzRoleManagementPolicy_List: The context is invalid. Please login using Connect-AzAccount.
DEBUG: CmdletProcessRecordEnd:
DEBUG: 14:05:11 - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: AzureQoSEvent: Module: Az.Resources:8.1.0; CommandName: Get-AzRoleManagementPolicy; PSVersion: 7.5.2; IsSuccess: True; Duration: 00:00:00.2112409; SanitizeDuration: 00:00:00
Environment data
PSVersion 7.5.2
PSEdition Core
GitCommitId 7.5.2
OS Microsoft Windows 10.0.20348
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Module versions
Get-Module Az*
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 5.2.0 Az.Accounts {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…}
Script 8.1.0 Az.Resources {Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzDenyAssignment, Get-AzDeployment…}
Error output
Metadata
Metadata
Assignees
Labels
Azure PS TeamTrackingWe will track status and follow internallyWe will track status and follow internallybugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reported