Skip to content

An error occurs in Az.AlertsManagement's Get-AzAlert due to an unnecessary PageCount=0 being specified. #27633

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sakkuntyo opened this issue Apr 24, 2025 · 1 comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported

Comments

@sakkuntyo
Copy link
Contributor

Description

When execute the following command, a request is made to a URL containing the property PageCount=0, which results in an error.

commands:
Get-AzAlert -TimeRange '1h' -Debug

request url:
https://management.azure.com/subscriptions/bd32dc07-5ce8-4b81-aa16-2c0079b1b708/providers/Microsoft.AlertsManagement/alerts?includeContext=true&includeEgressConfig=false&pageCount=0&timeRange=1h&pages=1&api-version=2019-05-05-preview

error:
{
"code": "BadRequest",
"message": "Page count filter has to be between 1 and 250 Activity ID: 3542fa24-b831-4dba-b27e-1194602b8f25."
}

If the PageCount property is not being used in PowerShell, it needs to be modified so that the PageCount property is not included in the URL.

Issue script & Debug output

PS C:\WINDOWS\system32> Get-AzAlert -TimeRange '1h' -Debug
デバッグ: Got version 0 of Az

確認
この操作を続行しますか?
[Y] はい(Y)  [A] すべて続行(A)  [H] コマンドの中止(H)  [S] 中断(S)  [?] ヘルプ (既定値は "Y"): A
デバッグ: Got version 0 of Az.Accounts
デバッグ: 11:44:24 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
デバッグ: 11:44:24 - GetAzureAlertCommand begin processing with ParameterSet 'AlertsListByFilter'.
デバッグ: 11:44:24 - using account id 'dasasaki@microsoft.com'...
デバッグ: 11:44:24 - [ConfigManager] Got [False] from [DisplayBreakingChangeWarning], Module = [Az.AlertsManagement], Cmdlet = [Get-AzAlert].
デバッグ: [Common.Authentication]: Authenticating using Account: 'dasasaki@microsoft.com', environment: 'AzureCloud', tenant: '16b3c013-d300-468d-ac64-7eda0820b6d3'
デバッグ: 11:44:24 - [ConfigManager] Got nothing from [DisableInstanceDiscovery], Module = [], Cmdlet = []. Returning default value [False].
デバッグ: 11:44:24 - [ConfigManager] Got nothing from [EnableLoginByWam], Module = [], Cmdlet = []. Returning default value [True].
デバッグ: 11:44:24 - [SilentAuthenticator] Calling SharedTokenCacheCredential.GetTokenAsync - TenantId:'16b3c013-d300-468d-ac64-7eda0820b6d3', Scopes:'https://management.core.windows.net//.default', AuthorityHost:'https://login.microsoftonline.com/', UserId:'dasasaki@microsoft.com'
デバッグ: SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [Internal cache] Clearing user token cache accessor.
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [Internal cache] Total number of cache partitions found while getting refresh tokens: 2
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z - f224af3a-351f-4244-ae4e-3ce589c41bfb] IsLegacyAdalCacheEnabled: yes
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z - f224af3a-351f-4244-ae4e-3ce589c41bfb] [Region discovery] Not using a regional authority.
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z - f224af3a-351f-4244-ae4e-3ce589c41bfb] [Region discovery] Not using a regional authority.
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z - f224af3a-351f-4244-ae4e-3ce589c41bfb] [Region discovery] Not using a regional authority.
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z - f224af3a-351f-4244-ae4e-3ce589c41bfb] IsLegacyAdalCacheEnabled: yes
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z - f224af3a-351f-4244-ae4e-3ce589c41bfb] IsLegacyAdalCacheEnabled: yes
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [Runtime] WAM supported OS.
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [RuntimeBroker] ListWindowsWorkAndSchoolAccounts option was not enabled.
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z - 5183a0f4-500e-423a-9d3d-fc5cb3b2874b] [Region discovery] Not using a regional authority.
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] Found 2 cache accounts and 0 broker accounts
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] Returning 2 accounts
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z - 5ba38412-b294-4a53-8485-79ab301c5bf3] MSAL MSAL.CoreCLR with assembly version '4.65.0.0'. CorrelationId(5ba38412-b294-4a53-8485-79ab301c5bf3)
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z - 5ba38412-b294-4a53-8485-79ab301c5bf3] === AcquireTokenSilent Parameters ===
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z - 5ba38412-b294-4a53-8485-79ab301c5bf3] LoginHint provided: False
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z - 5ba38412-b294-4a53-8485-79ab301c5bf3] Account provided: True
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z - 5ba38412-b294-4a53-8485-79ab301c5bf3] ForceRefresh: False
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z - 5ba38412-b294-4a53-8485-79ab301c5bf3]
=== Request Data ===
Authority Provided? - True
Scopes - https://management.core.windows.net//.default
Extra Query Params Keys (space separated) -
ApiId - AcquireTokenSilent
IsConfidentialClient - False
SendX5C - False
LoginHint ? False
IsBrokerConfigured - True
HomeAccountId - False
CorrelationId - 5ba38412-b294-4a53-8485-79ab301c5bf3
UserAssertion set: False
LongRunningOboCacheKey set: False
Region configured:
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z - 5ba38412-b294-4a53-8485-79ab301c5bf3] === Token Acquisition (SilentRequest) started:
  Scopes: https://management.core.windows.net//.default
 Authority Host: login.microsoftonline.com
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z - 5ba38412-b294-4a53-8485-79ab301c5bf3] Broker is configured and enabled, attempting to use broker instead.
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [Runtime] WAM supported OS.
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z - 5ba38412-b294-4a53-8485-79ab301c5bf3] Can invoke broker. Will attempt to acquire token with broker.
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0001] WARNING SetAuthorityUri:78 Initializing authority from URI 'https://login.microsoftonline.com/16b3c013-d300-468d-ac64-7eda0820b6d3/' without authority type, defaulting to MsSts
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0002] INFO    LogTelemetryData:422 Printing Telemetry for Correlation ID: 5ba38412-b294-4a53-8485-79ab301c5bf3
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0002] INFO    LogTelemetryData:430 Key: start_time, Value: 2025-04-24T02:44:24.000Z
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0002] INFO    LogTelemetryData:430 Key: api_name, Value: ReadAccountById
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0002] INFO    LogTelemetryData:430 Key: was_request_throttled, Value: false
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0002] INFO    LogTelemetryData:430 Key: authority_type, Value: Unknown
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0002] INFO    LogTelemetryData:430 Key: msal_version, Value: 1.1.0+local
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0002] INFO    LogTelemetryData:430 Key: correlation_id, Value: 5ba38412-b294-4a53-8485-79ab301c5bf3
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0002] INFO    LogTelemetryData:430 Key: broker_app_used, Value: false
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0002] INFO    LogTelemetryData:430 Key: stop_time, Value: 2025-04-24T02:44:24.000Z
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0002] INFO    LogTelemetryData:430 Key: msalruntime_version, Value: 0.16.2
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0002] INFO    LogTelemetryData:430 Key: is_successful, Value: true
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0002] INFO    LogTelemetryData:430 Key: request_duration, Value: 0
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0002] INFO    SetCorrelationId:258 Set correlation ID: 5ba38412-b294-4a53-8485-79ab301c5bf3
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0002] INFO    EnqueueBackgroundRequest:1000 The original authority is 'https://login.microsoftonline.com/16b3c013-d300-468d-ac64-7eda0820b6d3'
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0002] INFO    ModifyAndValidateAuthParameters:219 Additional query parameter added successfully. Key: '(pii)' Value: '(pii)'
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0002] INFO    ModifyAndValidateAuthParameters:243 Authority Realm: 16b3c013-d300-468d-ac64-7eda0820b6d3
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0002] WARNING TryEnqueueMsaDeviceCredentialAcquisitionAndContinue:1052 MsaDeviceOperationProvider is not available. Not attempting to register the device.
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0003] INFO    StorageTokenResponse:84 StorageTokenResponse account constructor invoked. This is only expected in Runtime flows
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0003] INFO    LogTelemetryData:422 Printing Telemetry for Correlation ID: 5ba38412-b294-4a53-8485-79ab301c5bf3
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0003] INFO    LogTelemetryData:430 Key: start_time, Value: 2025-04-24T02:44:24.000Z
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0003] INFO    LogTelemetryData:430 Key: api_name, Value: AcquireTokenSilently
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0003] INFO    LogTelemetryData:430 Key: was_request_throttled, Value: false
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0003] INFO    LogTelemetryData:430 Key: authority_type, Value: AAD
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0003] INFO    LogTelemetryData:430 Key: access_token_expiry_time, Value: 2025-04-24T03:08:05.000Z
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0003] INFO    LogTelemetryData:430 Key: read_token, Value: ID|AT
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0003] INFO    LogTelemetryData:430 Key: msal_version, Value: 1.1.0+local
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0003] INFO    LogTelemetryData:430 Key: client_id, Value: 1950a258-227b-4e31-a9cf-717495945fc2
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0003] INFO    LogTelemetryData:430 Key: correlation_id, Value: 5ba38412-b294-4a53-8485-79ab301c5bf3
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0003] INFO    LogTelemetryData:430 Key: broker_app_used, Value: false
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0003] INFO    LogTelemetryData:430 Key: stop_time, Value: 2025-04-24T02:44:24.000Z
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0003] INFO    LogTelemetryData:430 Key: msalruntime_version, Value: 0.16.2
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0003] INFO    LogTelemetryData:430 Key: original_authority, Value: https://login.microsoftonline.com/16b3c013-d300-468d-ac64-7eda0820b6d3
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0003] INFO    LogTelemetryData:430 Key: request_eligible_for_broker, Value: true
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0003] INFO    LogTelemetryData:430 Key: additional_query_parameters_count, Value: 1
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0003] INFO    LogTelemetryData:430 Key: storage_read, Value: DAC|DAT|DID
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0003] INFO    LogTelemetryData:430 Key: auth_flow, Value: AT
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0003] INFO    LogTelemetryData:430 Key: is_successful, Value: true
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0003] INFO    LogTelemetryData:430 Key: authorization_type, Value: WindowsIntegratedAuth
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0003] INFO    LogTelemetryData:430 Key: request_duration, Value: 2
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0003] INFO    LogTelemetryData:435 Printing Execution Flow:
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [MSAL:0003] INFO    LogTelemetryData:443
{"t":"4s7uc","tid":2,"ts":0,"l":2},{"t":"4sufd","tid":2,"ts":0,"s":2,"l":2},{"t":"4swgg","tid":2,"ts":0,"s":1,"l":2},{"t":"4swgf","tid":2,"ts":0,"s":1,"l":2},{"t":"4swgi","tid":3,"ts":0,"s":1,"l":2},{"t":"8b2yn","tid":3,"ts":0,"l":2},{"t":"8dqkx","tid":3,"ts":0,"l":2},{"t":"8dqik","tid":3,"ts":0,"l":2},{"t":"4q2di","tid":3,"ts":0,"l":2},{"t":"4qnng","tid":
3,"ts":0,"l":2,"a":2,"ie":0},{"t":"4qnnf","tid":3,"ts":1,"l":2,"a":2,"ie":1},{"t":"8dqit","tid":3,"ts":1,"l":2},{"t":"8b2ht","tid":3,"ts":1,"l":2},{"t":"4qnno","tid":3,"ts":1,"l":2,"a":2,"ie":0},{"t":"4qnnn","tid":3,"ts":2,"l":2,"a":2,"ie":1},{"t":"6xuag","tid":3,"ts":3,"l":2}
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z] [RuntimeBroker] WAM response status success
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z - 5ba38412-b294-4a53-8485-79ab301c5bf3] Checking MsalTokenResponse returned from broker.
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z - 5ba38412-b294-4a53-8485-79ab301c5bf3] Success. Response contains an access token.
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z - 5ba38412-b294-4a53-8485-79ab301c5bf3] Checking client info returned from the server..
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z - 5ba38412-b294-4a53-8485-79ab301c5bf3] Saving token response to cache..
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z - 5ba38412-b294-4a53-8485-79ab301c5bf3] [Instance Discovery] Instance discovery is enabled and will be performed
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z - 5ba38412-b294-4a53-8485-79ab301c5bf3] [Region discovery] Not using a regional authority.
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:24Z - 5ba38412-b294-4a53-8485-79ab301c5bf3] Fetching instance discovery from the network from host login.microsoftonline.com.
デバッグ: Request [cef57d92-a3be-4b21-8447-d6c1f42b68f0] GET https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=REDACTED
x-client-SKU:REDACTED
x-client-Ver:REDACTED
x-client-OS:REDACTED
client-request-id:REDACTED
return-client-request-id:REDACTED
x-ms-client-request-id:cef57d92-a3be-4b21-8447-d6c1f42b68f0
x-ms-return-client-request-id:true
User-Agent:azsdk-net-Identity.Broker/1.1.0 (.NET Framework 4.8.9300.0; Microsoft Windows 10.0.26100 )
client assembly: Azure.Identity.Broker
デバッグ: Response [cef57d92-a3be-4b21-8447-d6c1f42b68f0] 200 OK (00.7s)
Strict-Transport-Security:REDACTED
X-Content-Type-Options:REDACTED
Access-Control-Allow-Origin:REDACTED
Access-Control-Allow-Methods:REDACTED
client-request-id:REDACTED
x-ms-request-id:44de5354-f861-4a75-9b5e-e09a0c505c00
x-ms-ests-server:REDACTED
x-ms-srs:REDACTED
Content-Security-Policy-Report-Only:REDACTED
X-XSS-Protection:REDACTED
Cache-Control:max-age=86400, private
P3P:REDACTED
Set-Cookie:REDACTED
Date:Thu, 24 Apr 2025 02:44:25 GMT
Content-Length:980
Content-Type:application/json; charset=utf-8
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:25Z - 5ba38412-b294-4a53-8485-79ab301c5bf3] [Region discovery] Not using a regional authority.
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:25Z] [Internal cache] Clearing user token cache accessor.
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:25Z - 5ba38412-b294-4a53-8485-79ab301c5bf3] [SaveTokenResponseAsync] Saving Id Token and Account in cache ...
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:25Z] [Internal cache] Total number of cache partitions found while getting refresh tokens: 2
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:25Z] [Internal cache] Total number of cache partitions found while getting access tokens: 2
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:25Z] [Internal cache] Total number of cache partitions found while getting refresh tokens: 2
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:25Z - 5ba38412-b294-4a53-8485-79ab301c5bf3]
 === Token Acquisition finished successfully:
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:25Z - 5ba38412-b294-4a53-8485-79ab301c5bf3]  AT expiration time: 2025/04/24 3:08:05 +00:00, scopes: https://management.core.windows.net//.default https://management.core.windows.net//user_impersonation. source: Broker
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:25Z - 5ba38412-b294-4a53-8485-79ab301c5bf3] Fetched access token from host login.microsoftonline.com.
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:25Z - 5ba38412-b294-4a53-8485-79ab301c5bf3]
[LogMetricsFromAuthResult] Cache Refresh Reason: NotApplicable
[LogMetricsFromAuthResult] DurationInCacheInMs: 8
[LogMetricsFromAuthResult] DurationTotalInMs: 7
[LogMetricsFromAuthResult] DurationInHttpInMs: 764
デバッグ: False MSAL 4.65.0.0 MSAL.CoreCLR .NET Framework 4.8.9300.0 Microsoft Windows 10.0.26100  [2025-04-24 02:44:25Z - 5ba38412-b294-4a53-8485-79ab301c5bf3] TokenEndpoint: ****
デバッグ: SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:  ExpiresOn: 2025-04-24T03:08:05.5326878+00:00
デバッグ: [Common.Authentication]: Received token with LoginType 'User', Tenant: '16b3c013-d300-468d-ac64-7eda0820b6d3', UserId: 'dasasaki@microsoft.com'
デバッグ: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/bd32dc07-5ce8-4b81-aa16-2c0079b1b708/providers/Microsoft.AlertsManagement/alerts?includeContext=false&includeEgressConfig=false&pageCount=0&timeRange=1h&api-version=2019-05-05-preview

Headers:
x-ms-client-request-id        : 8dd489b6-9800-4c6b-a33f-151a241ecfc7
accept-language               : en-US

Body:


デバッグ: ============================ HTTP RESPONSE ============================

Status Code:
BadRequest

Headers:
Pragma                        : no-cache
Cache-Control                 : no-cache
Set-Cookie                    : ARRAffinity=c85355a1f40fe7888684a8d1c035ffe707d7491493d5c6ae88b2cd05eb6ba413;Path=/;HttpOnly;Secure;Domain=alerts.global.prod.alertsrp.azure.com,ARRAffinitySameSite=c85355a1f40fe7888684a8d1c035ffe707d7491493d5c6ae88b2cd05eb6ba413;Path=/;HttpOnly;SameSite=None;Secure;Domain=alerts.global.prod.alertsrp.azure.com
x-ms-request-id               : 3679d238-8b57-431d-a32a-a2153b6023b5
api-supported-versions        : 2018-05-05-preview, 2018-05-05, 2019-03-01-preview, 2019-03-01, 2019-05-05-preview, 2023-07-12-preview, 2024-01-01-preview
X-Rate-Limit-Limit            : 1m
X-Rate-Limit-Remaining        : 29
X-Rate-Limit-Reset            : 2025-04-24T02:45:26.2525433Z
X-Powered-By                  : ASP.NET
x-ms-operation-identifier     : tenantId=16b3c013-d300-468d-ac64-7eda0820b6d3,objectId=39d9e344-4985-4cdf-8492-43d5a49fbbaa/southeastasia/5b1cde26-0884-4273-a70f-97f8f60f8575
x-ms-ratelimit-remaining-subscription-resource-requests: 999
x-ms-correlation-request-id   : 3679d238-8b57-431d-a32a-a2153b6023b5
x-ms-routing-request-id       : SOUTHEASTASIA:20250424T024426Z:3679d238-8b57-431d-a32a-a2153b6023b5
Strict-Transport-Security     : max-age=31536000; includeSubDomains
X-Content-Type-Options        : nosniff
X-Cache                       : CONFIG_NOCACHE
X-MSEdge-Ref                  : Ref A: 7BB793726AAA4119BBEE6833C87359C1 Ref B: MAA201060515027 Ref C: 2025-04-24T02:44:25Z
Date                          : Thu, 24 Apr 2025 02:44:25 GMT

Body:
{
  "code": "BadRequest",
  "message": "Page count filter has to be between 1 and 250 Activity ID: 3679d238-8b57-431d-a32a-a2153b6023b5."
}

デバッグ: 11:44:26 - [ConfigManager] Got nothing from [EnableErrorRecordsPersistence], Module = [Az.AlertsManagement], Cmdlet = [Get-AzAlert]. Returning default value [False].

確認
1 つ以上のエラーが発生しました。
[Y] はい(Y)  [A] すべて続行(A)  [H] コマンドの中止(H)  [S] 中断(S)  [?] ヘルプ (既定値は "Y"): A
Get-AzAlert : 1 つ以上のエラーが発生しました。
発生場所 行:1 文字:1
+ Get-AzAlert -TimeRange '1h' -Debug
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Get-AzAlert]、AggregateException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.AlertsManagement.GetAzureAlertCommand

デバッグ: 11:44:29 - [ConfigManager] Got [False] from [DisplayBreakingChangeWarning], Module = [Az.AlertsManagement], Cmdlet = [Get-AzAlert].
デバッグ: 11:44:29 - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
デバッグ: 11:44:29 - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
デバッグ: AzureQoSEvent:  Module: Az.AlertsManagement:0.6.2; CommandName: Get-AzAlert; PSVersion: 5.1.26100.3624; IsSuccess: False; Duration: 00:00:09.0783027; SanitizeDuration: 00:00:00; Exception: 1 つ以上のエラーが発生しました。;
デバッグ: 11:44:29 - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
デバッグ: 11:44:30 - GetAzureAlertCommand end processing.

Environment data

PS C:\WINDOWS\system32> $PSVersionTable

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

Module versions

PS C:\WINDOWS\system32> Get-Module Az*

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     4.1.0      Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault...}
Script     0.6.3      Az.AlertsManagement                 {Get-AzAlert, Get-AzAlertObjectHistory, Get-AzAlertProcessingRule, Get-AzSmartGroup...}

Error output

Body:
{
  "code": "BadRequest",
  "message": "Page count filter has to be between 1 and 250 Activity ID: 3679d238-8b57-431d-a32a-a2153b6023b5."
}
@sakkuntyo sakkuntyo added bug This issue requires a change to an existing behavior in the product in order to be resolved. needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Apr 24, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Apr 24, 2025
@sakkuntyo
Copy link
Contributor Author

The bug fix has already been documented on GitHub. It seems that it will be resolved in the next release (0.6.4 and later).
https://github.com/Azure/azure-powershell/blob/main/src/AlertsManagement/AlertsManagement/ChangeLog.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported
Projects
None yet
Development

No branches or pull requests

1 participant