Azure / Azure/azure-powershell
Az.Maintenance: Get-AzApplyUpdate returns NotFound due to malformed ARM URI; ProviderName and ResourceParentType is swapped
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 3d 14h
- Merged PRs (30d)
- 54
Description
### Description
Az.Maintenance version 1.4.1 - `Get-AzApplyUpdate`
The request this cmdlet sends is malformed in 1.4.1. It looks like it is swapping ProviderName and ResourceParentType when forming the ARM URI. It works fine after downgrading back to 1.1.0.
Command: `Get-AzApplyUpdate -ResourceGroupName rg_name -ResourceParentType hostGroups -ResourceParentName Cluster-2 -ResourceType hosts -ResourceName esx01-r50 -ProviderName Microsoft.Compute -ApplyUpdateName 8001a62a-9385-4fd7-ab25-577f59b85296 -Debug`
Excerpt of the output (full output in Debug output field) showing the ARM URI:
```
Absolute Uri:
https://management.azure.com/subscriptions/***/resourcegroups/rg_name/provide
rs/hostGroups/Cluster-2/Microsoft.Compute/hosts/esx01-r50/providers/Microsoft.Maintenance/applyUpdates/8001a62a-9385-4fd7-ab25-577f5
9b85296?api-version=2023-09-01-preview
Body:
{
"error": {
"code": "InvalidResourceNamespace",
"message": "The resource namespace 'hostGroups' is invalid."
}
}
```
### Issue script & Debug output
```PowerShell
Get-AzApplyUpdate -ResourceGroupName rg_name -ResourceParentType hostGroups -ResourceParentName Cluster-2 -ResourceType hosts -ResourceName esx01-r50 -ProviderName Microsoft.Compute -ApplyUpdateName 8001a62a-9385-4fd7-ab25-577f59b85296 -Debug
DEBUG: 4:12:25 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value
[True].
Confirm
Continue with this operation?
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): A
DEBUG: 4:12:31 AM - GetAzureRmApplyUpdate begin processing with ParameterSet 'DefaultParameter'.
DEBUG: 4:12:31 AM - using account id '***@ame.gbl'...
DEBUG: 4:12:31 AM - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning default
value [True].
DEBUG: [Common.Authentication]: Authenticating using Account: '***@ame.gbl', environment: 'AzureCloud', tenant:
'33e01921-4d64-4f8c-a055-5bdaffd5e33d'
DEBUG: 4:12:31 AM - [ConfigManager] Got nothing from [DisableInstanceDiscovery], Module = [], Cmdlet = []. Returning default value
[False].
DEBUG: 4:12:31 AM - [ConfigManager] Got nothing from [EnableLoginByWam], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 4:12:31 AM - [SilentAuthenticator] Calling SharedTokenCacheCredential.GetTokenAsync -
TenantId:'33e01921-4d64-4f8c-a055-5bdaffd5e33d', Scopes:'https://management.core.windows.net//.default',
AuthorityHost:'https://login.microsoftonline.com/', UserId:'***@ame.gbl'
DEBUG: SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
8072bfd5-1bf2-4071-acd8-2b23aed9ddfc] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
8072bfd5-1bf2-4071-acd8-2b23aed9ddfc] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
8072bfd5-1bf2-4071-acd8-2b23aed9ddfc] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
8072bfd5-1bf2-4071-acd8-2b23aed9ddfc] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
8072bfd5-1bf2-4071-acd8-2b23aed9ddfc] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
8072bfd5-1bf2-4071-acd8-2b23aed9ddfc] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [Runtime] WAM
supported OS.
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z]
[RuntimeBroker] ListWindowsWorkAndSchoolAccounts option was not enabled.
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
5f91c69a-409b-4b3b-b66e-b937e8dcbb73] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] Found 2 cache
accounts and 0 broker accounts
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] Returning 2
accounts
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
a5af530a-ccbf-4f73-bf50-db0a64a3e9e4] MSAL MSAL.CoreCLR with assembly version '4.61.3.0'.
CorrelationId(a5af530a-ccbf-4f73-bf50-db0a64a3e9e4)
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
a5af530a-ccbf-4f73-bf50-db0a64a3e9e4] === AcquireTokenSilent Parameters ===
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
a5af530a-ccbf-4f73-bf50-db0a64a3e9e4] LoginHint provided: False
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
a5af530a-ccbf-4f73-bf50-db0a64a3e9e4] Account provided: True
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
a5af530a-ccbf-4f73-bf50-db0a64a3e9e4] ForceRefresh: False
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
a5af530a-ccbf-4f73-bf50-db0a64a3e9e4]
=== 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 - a5af530a-ccbf-4f73-bf50-db0a64a3e9e4
UserAssertion set: False
LongRunningOboCacheKey set: False
Region configured:
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
a5af530a-ccbf-4f73-bf50-db0a64a3e9e4] === Token Acquisition (SilentRequest) started:
Scopes: https://management.core.windows.net//.default
Authority Host: login.microsoftonline.com
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
a5af530a-ccbf-4f73-bf50-db0a64a3e9e4] Broker is configured and enabled, attempting to use broker instead.
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [Runtime] WAM
supported OS.
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
a5af530a-ccbf-4f73-bf50-db0a64a3e9e4] Can invoke broker. Will attempt to acquire token with broker.
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0001]
WARNING SetAuthorityUri:78 Initializing authority from URI 'https://login.microsoftonline.com/33e01921-4d64-4f8c-a055-5bdaffd5e33d/'
without authority type, defaulting to MsSts
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0005]
INFO LogTelemetryData:422 Printing Telemetry for Correlation ID: a5af530a-ccbf-4f73-bf50-db0a64a3e9e4
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0005]
INFO LogTelemetryData:430 Key: start_time, Value: 2024-07-25T22:42:31.000Z
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0005]
INFO LogTelemetryData:430 Key: api_name, Value: ReadAccountById
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0005]
INFO LogTelemetryData:430 Key: was_request_throttled, Value: false
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0005]
INFO LogTelemetryData:430 Key: authority_type, Value: Unknown
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0005]
INFO LogTelemetryData:430 Key: msal_version, Value: 1.1.0+local
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0005]
INFO LogTelemetryData:430 Key: correlation_id, Value: a5af530a-ccbf-4f73-bf50-db0a64a3e9e4
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0005]
INFO LogTelemetryData:430 Key: broker_app_used, Value: false
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0005]
INFO LogTelemetryData:430 Key: stop_time, Value: 2024-07-25T22:42:31.000Z
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0005]
INFO LogTelemetryData:430 Key: msalruntime_version, Value: 0.16.2
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0005]
INFO LogTelemetryData:430 Key: is_successful, Value: true
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0005]
INFO LogTelemetryData:430 Key: request_duration, Value: 0
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0005]
INFO SetCorrelationId:258 Set correlation ID: a5af530a-ccbf-4f73-bf50-db0a64a3e9e4
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0005]
INFO EnqueueBackgroundRequest:1000 The original authority is
'https://login.microsoftonline.com/33e01921-4d64-4f8c-a055-5bdaffd5e33d'
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0005]
INFO ModifyAndValidateAuthParameters:219 Additional query parameter added successfully. Key: '(pii)' Value: '(pii)'
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0005]
INFO ModifyAndValidateAuthParameters:243 Authority Realm: 33e01921-4d64-4f8c-a055-5bdaffd5e33d
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0005]
WARNING TryEnqueueMsaDeviceCredentialAcquisitionAndContinue:1052 MsaDeviceOperationProvider is not available. Not attempting to
register the device.
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0003]
INFO StorageTokenResponse:84 StorageTokenResponse account constructor invoked. This is only expected in Runtime flows
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0003]
INFO LogTelemetryData:422 Printing Telemetry for Correlation ID: a5af530a-ccbf-4f73-bf50-db0a64a3e9e4
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0003]
INFO LogTelemetryData:430 Key: start_time, Value: 2024-07-25T22:42:31.000Z
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0003]
INFO LogTelemetryData:430 Key: api_name, Value: AcquireTokenSilently
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0003]
INFO LogTelemetryData:430 Key: was_request_throttled, Value: false
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0003]
INFO LogTelemetryData:430 Key: authority_type, Value: AAD
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0003]
INFO LogTelemetryData:430 Key: access_token_expiry_time, Value: 2024-07-25T23:37:56.000Z
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0003]
INFO LogTelemetryData:430 Key: read_token, Value: ID|AT
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0003]
INFO LogTelemetryData:430 Key: msal_version, Value: 1.1.0+local
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0003]
INFO LogTelemetryData:430 Key: client_id, Value: 1950a258-227b-4e31-a9cf-717495945fc2
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0003]
INFO LogTelemetryData:430 Key: correlation_id, Value: a5af530a-ccbf-4f73-bf50-db0a64a3e9e4
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0003]
INFO LogTelemetryData:430 Key: broker_app_used, Value: false
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0003]
INFO LogTelemetryData:430 Key: stop_time, Value: 2024-07-25T22:42:31.000Z
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0003]
INFO LogTelemetryData:430 Key: msalruntime_version, Value: 0.16.2
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0003]
INFO LogTelemetryData:430 Key: original_authority, Value: https://login.microsoftonline.com/33e01921-4d64-4f8c-a055-5bdaffd5e33d
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0003]
INFO LogTelemetryData:430 Key: request_eligible_for_broker, Value: true
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0003]
INFO LogTelemetryData:430 Key: additional_query_parameters_count, Value: 1
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0003]
INFO LogTelemetryData:430 Key: storage_read, Value: DAC|DAT|DID
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0003]
INFO LogTelemetryData:430 Key: auth_flow, Value: AT
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0003]
INFO LogTelemetryData:430 Key: is_successful, Value: true
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0003]
INFO LogTelemetryData:430 Key: authorization_type, Value: WindowsIntegratedAuth
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0003]
INFO LogTelemetryData:430 Key: request_duration, Value: 6
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0003]
INFO LogTelemetryData:435 Printing Execution Flow:
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z] [MSAL:0003]
INFO LogTelemetryData:443
{"t":"4s7uc","tid":5,"ts":0,"l":2},{"t":"4sufd","tid":5,"ts":0,"s":2,"l":2},{"t":"4swgg","tid":5,"ts":0,"s":3,"l":2},{"t":"4swgf","t
id":5,"ts":0,"s":1,"l":2},{"t":"4swgi","tid":3,"ts":0,"s":3,"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":"4qn
nf","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,"t
s":1,"l":2,"a":2,"ie":0},{"t":"4qnnn","tid":3,"ts":6,"l":2,"a":2,"ie":1},{"t":"6xuag","tid":3,"ts":6,"l":2}
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z]
[RuntimeBroker] WAM response status success
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
a5af530a-ccbf-4f73-bf50-db0a64a3e9e4] Checking MsalTokenResponse returned from broker.
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
a5af530a-ccbf-4f73-bf50-db0a64a3e9e4] Success. Response contains an access token.
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
a5af530a-ccbf-4f73-bf50-db0a64a3e9e4] Checking client info returned from the server..
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
a5af530a-ccbf-4f73-bf50-db0a64a3e9e4] Saving token response to cache..
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
a5af530a-ccbf-4f73-bf50-db0a64a3e9e4] [Instance Discovery] Instance discovery is enabled and will be performed
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
a5af530a-ccbf-4f73-bf50-db0a64a3e9e4] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
a5af530a-ccbf-4f73-bf50-db0a64a3e9e4] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
a5af530a-ccbf-4f73-bf50-db0a64a3e9e4] [SaveTokenResponseAsync] Saving Id Token and Account in cache ...
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
a5af530a-ccbf-4f73-bf50-db0a64a3e9e4]
=== Token Acquisition finished successfully:
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
a5af530a-ccbf-4f73-bf50-db0a64a3e9e4] AT expiration time: 7/25/2024 11:37:55 PM +00:00, scopes:
https://management.core.windows.net//.default https://management.core.windows.net//user_impersonation. source: Broker
DEBUG: False MSAL 4.61.3.0 MSAL.CoreCLR .NET Framework 4.8.9256.0 Microsoft Windows 10.0.22621 [2024-07-25 22:42:31Z -
a5af530a-ccbf-4f73-bf50-db0a64a3e9e4] Fetched access token from host login.microsoftonline.com.
DEBUG: SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:
ExpiresOn: 2024-07-25T23:37:55.8973615+00:00
DEBUG: [Common.Authentication]: Received token with LoginType 'User', Tenant: '33e01921-4d64-4f8c-a055-5bdaffd5e33d', UserId:
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/***/resourcegroups/rg_name/provide
rs/hostGroups/Cluster-2/Microsoft.Compute/hosts/esx01-r50/providers/Microsoft.Maintenance/applyUpdates/8001a62a-9385-4fd7-ab25-577f5
9b85296?api-version=2023-09-01-preview
Headers:
x-ms-client-request-id : 9b459122-e0a0-49f2-9868-55c953fabd39
accept-language : en-US
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
NotFound
Headers:
Pragma : no-cache
x-ms-failure-cause : gateway
x-ms-request-id : d79d89b3-b310-44b6-a688-3a194cfdf639
x-ms-correlation-request-id : d79d89b3-b310-44b6-a688-3a194cfdf639
x-ms-routing-request-id : SOUTHEASTASIA:20240725T224253Z:d79d89b3-b310-44b6-a688-3a194cfdf639
Strict-Transport-Security : max-age=31536000; includeSubDomains
X-Content-Type-Options : nosniff
X-Cache : CONFIG_NOCACHE
X-MSEdge-Ref : Ref A: 366046B30BD542348391D56695367C9F Ref B: MAA201060513027 Ref C: 2024-07-25T22:42:53Z
Cache-Control : no-cache
Date : Thu, 25 Jul 2024 22:42:52 GMT
Body:
{
"error": {
"code": "InvalidResourceNamespace",
"message": "The resource namespace 'hostGroups' is invalid."
}
}
DEBUG: 4:12:53 AM - [ConfigManager] Got nothing from [EnableErrorRecordsPersistence], Module = [], Cmdlet = []. Returning default
value [False].
```
### Environment data
```PowerShell
PS> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.22621.3880
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.22621.3880
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
```
### Module versions
```PowerShell
PS> Get-Module Az.Maintenance -ListAvailable
Directory: C:\Users\***\Work Folders\Documents\WindowsPowerShell\Modules
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 1.4.1 Az.Maintenance {Get-AzApplyUpdate, Get-AzConfigurationAssignment, Get-AzM...
Directory: C:\Program Files\WindowsPowerShell\Modules
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 1.1.0 Az.Maintenance {Get-AzApplyUpdate, Get-AzConfigurationAssignment, Get-AzM...
```
### Error output
_No response_
Contributor guide
Research direction
Start at the Get-AzApplyUpdate cmdlet and reproduce the command from the issue with -Debug. Compare the generated ARM URI with the parameter values, especially ProviderName and ResourceParentType. Done means the URI uses the correct ordering and the request no longer returns InvalidResourceNamespace or NotFound.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, powershell
- Domain
- cli, cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100