-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Open
Labels
bugThis 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-reportedneeds-triageThis is a new issue that needs to be triaged to the appropriate team.This is a new issue that needs to be triaged to the appropriate team.
Description
Description
Summary
When calling Set-AzManagedApplicationDefinition to update an existing Managed Application Definition, the Az.Resources implementation issues a subscription-scoped GET that omits the resource group segment. ARM responds with 404 (ResourceNotFound, resource group ''), causing the cmdlet to fail even though the resource exists under the expected resource group.
Reproduction steps (minimal)
-
Ensure a Managed Application Definition exists, e.g.:
- name: <managedAppName>
- resource group: <managedAppDefinitionRgName>
-
Run:
Set-AzManagedApplicationDefinition -Name '<managedAppName>' -ResourceGroupName '<managedAppDefinitionRgName>' -PackageFileUri '<SAS-URI>' -Debug- Observe the debug output: the cmdlet issues a GET to a subscription-scoped endpoint that lacks the resource group segment.
Example debug excerpt (observed)
- HTTP REQUEST (GET):
GET https://management.azure.com/subscriptions/<subscriptionId>/providers/Microsoft.Solutions/applicationdefinitions/<managedAppName>?api-version=2017-09-01
Note: the expected URL should include the resource group path:
https://management.azure.com/subscriptions/<subscriptionId>/resourceGroups/<managedAppDefinitionRgName>/providers/Microsoft.Solutions/applicationDefinitions/<managedAppName>?api-version=2017-09-01
- HTTP RESPONSE (404):
Status: 404 NotFound
Body:
{
"error": {
"code": "ResourceNotFound",
"message": "The Resource 'Microsoft.Solutions/applicationDefinitions/<managedAppName>' under resource group '<null>' was not found."
}
}
What I observed locally
Get-AzManagedApplicationDefinition -Name <managedAppName> -ResourceGroupName <managedAppDefinitionRgName>returns the existing object; itsId/ManagedApplicationDefinitionIdcontains the correct resource-group-qualified path.- However,
Set-AzManagedApplicationDefinition -ResourceGroupName <managedAppDefinitionRgName>produces the failing GET above (resourceGroup missing), so the cmdlet fails with ResourceNotFound.
Environment / module information
- PowerShell session loaded modules (example):
- Az.Accounts 5.3.0
- Az.Resources 8.1.0
- Az.Storage 9.1.0
- The
Set-AzManagedApplicationDefinitioncommand in my session is provided byAz.Resources(version 8.1.0). - Command used (with -Debug):
Set-AzManagedApplicationDefinition -Name <managedAppName> -ResourceGroupName <managedAppDefinitionRgName> -PackageFileUri '<SAS-URI>' -Debug
Issue script & Debug output
PS> $DebugPreference='Continue'
PS> Set-AzManagedApplicationDefinition -Name 'redash-mapp' -ResourceGroupName 'redash-mapp-rg' -PackageFileUri 'https://<packageFileUri>'
DEBUG: 13:08:56 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 13:08:56 - SetAzureManagedApplicationDefinitionCmdlet begin processing with ParameterSet 'SetByNameAndResourceGroup'.
DEBUG: 13:08:56 - using account id '<[email protected]>'...
DEBUG: 13:08:56 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [Az.Resources], Cmdlet = [Set-AzManagedApplicationDefinition]. Returning default value [True].
DEBUG: [Common.Authentication]: Authenticating using Account: '<[email protected]>', environment: 'AzureCloud', tenant: '<00000000-0000-0000-0000-000000000000>'
DEBUG: 13:08:56 - [ConfigManager] Got nothing from [DisableInstanceDiscovery], Module = [], Cmdlet = []. Returning default value [False].
DEBUG: 13:08:56 - [ConfigManager] Got [False] from [EnableLoginByWam], Module = [], Cmdlet = [].
DEBUG: 13:08:56 - [SilentAuthenticator] Calling SharedTokenCacheCredential.GetTokenAsync - TenantId:'<00000000-0000-0000-0000-000000000000>', Scopes:'https://management.core.windows.net//.default', AuthorityHost:'https://login.microsoftonline.com/', UserId:'<[email protected]>'
DEBUG: SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z] [Internal cache] Clearing user token cache accessor.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z] [Internal cache] Total number of cache partitions found while getting refresh tokens: 3
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z] Found 3 cache accounts and 0 broker accounts
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z] Returning 3 accounts
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] MSAL MSAL.CoreCLR with assembly version '4.65.0.0'. CorrelationId(<00000000-0000-0000-0000-000000000000>)
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] === AcquireTokenSilent Parameters ===
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] LoginHint provided: False
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] Account provided: True
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] ForceRefresh: False
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>]
=== Request Data ===
Authority Provided? - True
Scopes - https://management.core.windows.net//.default
Extra Query Params Keys (space separated) -
ApiId - AcquireTokenSilent
IsConfidentialClient - False
SendX5C - False
LoginHint ? False
IsBrokerConfigured - False
HomeAccountId - False
CorrelationId - <00000000-0000-0000-0000-000000000000>
UserAssertion set: False
LongRunningOboCacheKey set: False
Region configured:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] === Token Acquisition (SilentRequest) started:
Scopes: https://management.core.windows.net//.default
Authority Host: login.microsoftonline.com
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z] [Internal cache] Clearing user token cache accessor.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [Internal cache] Total number of cache partitions found while getting access tokens: 3
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [FindAccessTokenAsync] Discovered 5 access tokens in cache using partition key: <00000000-0000-0000-0000-000000000000>.<00000000-0000-0000-0000-000000000000>
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] Access token has expired or about to expire. [Current time (10/24/2025 04:08:56) - Expiration Time (10/24/2025 03:52:52 +00:00) - Extended Expiration Time (10/24/2025 03:52:52 +00:00)]
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z] [Internal cache] Total number of cache partitions found while getting refresh tokens: 3
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [FindRefreshTokenAsync] Discovered 1 refresh tokens in cache using key: <00000000-0000-0000-0000-000000000000>.<00000000-0000-0000-0000-000000000000>
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [FindRefreshTokenAsync] Refresh token found in the cache? - True
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [Instance Discovery] Instance discovery is enabled and will be performed
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [Region discovery] Not using a regional authority.
DEBUG: Request [<00000000-0000-0000-0000-000000000000>] POST https://login.microsoftonline.com/<00000000-0000-0000-0000-000000000000>/oauth2/v2.0/token
x-client-SKU:REDACTED
x-client-Ver:REDACTED
x-client-OS:REDACTED
x-anchormailbox:REDACTED
x-client-current-telemetry:REDACTED
x-ms-lib-capability:REDACTED
client-request-id:REDACTED
return-client-request-id:REDACTED
Content-Type:application/x-www-form-urlencoded
x-ms-client-request-id:<00000000-0000-0000-0000-000000000000>
x-ms-return-client-request-id:true
User-Agent:azsdk-net-Identity/1.13.0 (.NET 9.0.8; Microsoft Windows 10.0.26200)
client assembly: Azure.Identity
DEBUG: Response [<00000000-0000-0000-0000-000000000000>] 200 OK (00.3s)
Cache-Control:no-store, no-cache
Pragma:no-cache
Strict-Transport-Security:REDACTED
X-Content-Type-Options:REDACTED
P3P:REDACTED
client-request-id:REDACTED
x-ms-request-id:<00000000-0000-0000-0000-000000000000>
x-ms-ests-server:REDACTED
x-ms-clitelem:REDACTED
x-ms-srs:REDACTED
Content-Security-Policy-Report-Only:REDACTED
X-XSS-Protection:REDACTED
Set-Cookie:REDACTED
Date:Fri, 24 Oct 2025 04:08:56 GMT
Content-Type:application/json; charset=utf-8
Expires:-1
Content-Length:4902
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] Checking client info returned from the server..
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] Saving token response to cache..
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z] [Internal cache] Clearing user token cache accessor.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [SaveTokenResponseAsync] Saving AT in cache and removing overlapping ATs...
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] Looking for scopes for the authority in the cache which intersect with https://management.core.windows.net//.default
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z] [Internal cache] Total number of cache partitions found while getting access tokens: 3
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] Intersecting scope entries count - 1
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] Matching entries after filtering by user - 1
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [SaveTokenResponseAsync] Saving Id Token and Account in cache ...
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [SaveTokenResponseAsync] Saving RT in cache...
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] Not writing FRT in ADAL legacy cache.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z] [Internal cache] Total number of cache partitions found while getting refresh tokens: 3
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z] [Internal cache] Total number of cache partitions found while getting access tokens: 3
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z] [Internal cache] Total number of cache partitions found while getting refresh tokens: 3
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>]
=== Token Acquisition finished successfully:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] AT expiration time: 2025/10/24 5:34:14 +00:00, scopes: https://management.core.windows.net//.default https://management.core.windows.net//user_impersonation. source: IdentityProvider
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] Fetched access token from host login.microsoftonline.com.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>]
[LogMetricsFromAuthResult] Cache Refresh Reason: Expired
[LogMetricsFromAuthResult] DurationInCacheInMs: 18
[LogMetricsFromAuthResult] DurationTotalInMs: 317
[LogMetricsFromAuthResult] DurationInHttpInMs: 293
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] TokenEndpoint: ****
DEBUG: SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId: ExpiresOn: 2025-10-24T05:34:14.3346298+00:00
DEBUG: [Common.Authentication]: Received token with LoginType 'User', Tenant: '<00000000-0000-0000-0000-000000000000>', UserId: '<[email protected]>'
DEBUG: [Common.Authentication]: Authenticating using Account: '<[email protected]>', environment: 'AzureCloud', tenant: '<00000000-0000-0000-0000-000000000000>'
DEBUG: 13:08:56 - [ConfigManager] Got nothing from [DisableInstanceDiscovery], Module = [], Cmdlet = []. Returning default value [False].
DEBUG: 13:08:56 - [ConfigManager] Got [False] from [EnableLoginByWam], Module = [], Cmdlet = [].
DEBUG: 13:08:56 - [SilentAuthenticator] Calling SharedTokenCacheCredential.GetTokenAsync - TenantId:'<00000000-0000-0000-0000-000000000000>', Scopes:'https://management.core.windows.net//.default', AuthorityHost:'https://login.microsoftonline.com/', UserId:'<[email protected]>'
DEBUG: SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z] [Internal cache] Clearing user token cache accessor.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z] [Internal cache] Total number of cache partitions found while getting refresh tokens: 3
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z] Found 3 cache accounts and 0 broker accounts
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z] Returning 3 accounts
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] MSAL MSAL.CoreCLR with assembly version '4.65.0.0'. CorrelationId(<00000000-0000-0000-0000-000000000000>)
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] === AcquireTokenSilent Parameters ===
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] LoginHint provided: False
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] Account provided: True
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] ForceRefresh: False
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>]
=== Request Data ===
Authority Provided? - True
Scopes - https://management.core.windows.net//.default
Extra Query Params Keys (space separated) -
ApiId - AcquireTokenSilent
IsConfidentialClient - False
SendX5C - False
LoginHint ? False
IsBrokerConfigured - False
HomeAccountId - False
CorrelationId - <00000000-0000-0000-0000-000000000000>
UserAssertion set: False
LongRunningOboCacheKey set: False
Region configured:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] === Token Acquisition (SilentRequest) started:
Scopes: https://management.core.windows.net//.default
Authority Host: login.microsoftonline.com
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z] [Internal cache] Clearing user token cache accessor.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [Internal cache] Total number of cache partitions found while getting access tokens: 3
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [FindAccessTokenAsync] Discovered 5 access tokens in cache using partition key: <00000000-0000-0000-0000-000000000000>.<00000000-0000-0000-0000-000000000000>
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] Access token is not expired. Returning the found cache entry. [Current time (10/24/2025 04:08:56) - Expiration Time (10/24/2025 05:34:14 +00:00) - Extended Expiration Time (10/24/2025 05:34:14 +00:00)]
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] Returning access token found in cache. RefreshOn exists ? False
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>]
=== Token Acquisition finished successfully:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] AT expiration time: 2025/10/24 5:34:14 +00:00, scopes: https://management.core.windows.net//.default https://management.core.windows.net//user_impersonation. source: Cache
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>]
[LogMetricsFromAuthResult] Cache Refresh Reason: NotApplicable
[LogMetricsFromAuthResult] DurationInCacheInMs: 0
[LogMetricsFromAuthResult] DurationTotalInMs: 1
[LogMetricsFromAuthResult] DurationInHttpInMs: 0
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.8 Microsoft Windows 10.0.26200 [2025-10-24 04:08:56Z - <00000000-0000-0000-0000-000000000000>] TokenEndpoint: ****
DEBUG: SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId: ExpiresOn: 2025-10-24T05:34:14.0000000+00:00
DEBUG: [Common.Authentication]: Received token with LoginType 'User', Tenant: '<00000000-0000-0000-0000-000000000000>', UserId: '<[email protected]>'
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://management.azure.com/subscriptions/0c93be08-49c9-4a44-ac1e-3a20c4814071/providers/Microsoft.Solutions/applicationdefinitions/redash-mapp?api-version=2017-09-01
Headers:
User-Agent : AzurePowershell/v14.4.0,PSVersion/v7.5.3,Az.Resources/8.1.0
ParameterSetName : SetByNameAndResourceGroup
CommandName : Set-AzManagedApplicationDefinition
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
NotFound
Headers:
Cache-Control : no-cache
Pragma : no-cache
x-ms-failure-cause : gateway
x-ms-request-id : <00000000-0000-0000-0000-000000000000>
x-ms-correlation-request-id : <00000000-0000-0000-0000-000000000000>
x-ms-routing-request-id : JAPANEAST:20251024T040857Z:<00000000-0000-0000-0000-000000000000>
Strict-Transport-Security : max-age=31536000; includeSubDomains
X-Content-Type-Options : nosniff
X-Cache : CONFIG_NOCACHE
X-MSEdge-Ref : Ref A: EA3B6A143151404F91919CA677A95FB2 Ref B: TYO201100116039 Ref C: 2025-10-24T04:08:56Z
Date : Fri, 24 Oct 2025 04:08:56 GMT
Body:
{
"error": {
"code": "ResourceNotFound",
"message": "The Resource 'Microsoft.Solutions/applicationDefinitions/redash-mapp' under resource group '<null>' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix"
}
}
DEBUG: 13:08:57 - [ResourceManagerCmdletBase.ExecuteCmdlet] Caught unhandled exception: System.AggregateException: One or more errors occurred. (ResourceNotFound : The Resource 'Microsoft.Solutions/applicationDefinitions/redash-mapp' under resource group '<null>' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
CorrelationId: <00000000-0000-0000-0000-000000000000>)
---> Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.ErrorResponses.ErrorResponseMessageException: ResourceNotFound : The Resource 'Microsoft.Solutions/applicationDefinitions/redash-mapp' under resource group '<null>' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
CorrelationId: <00000000-0000-0000-0000-000000000000>
at Microsoft.Azure.Commands.ResourceManager.Cmdlets.RestClients.ResourceManagerRestClientBase.SendRequestAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Microsoft.Azure.Commands.ResourceManager.Cmdlets.RestClients.ResourceManagerRestClientBase.SendRequestAsync(HttpMethod httpMethod, Uri requestUri, CancellationToken cancellationToken)
at Microsoft.Azure.Commands.ResourceManager.Cmdlets.RestClients.ResourceManagerRestClientBase.SendRequestAsync[TResponseType](HttpMethod httpMethod, Uri requestUri, CancellationToken cancellationToken)
at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ManagedApplicationCmdletBase.GetExistingResource(String resourceId, String apiVersion)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.get_Result()
at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.SetAzureManagedApplicationDefinitionCmdlet.GetResource(String resourceId, String apiVersion)
at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.SetAzureManagedApplicationDefinitionCmdlet.OnProcessRecord()
at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.ExecuteCmdlet()
DEBUG: 13:08:57 - [ConfigManager] Got nothing from [EnableErrorRecordsPersistence], Module = [Az.Resources], Cmdlet = [Set-AzManagedApplicationDefinition]. Returning default value [False].
Set-AzManagedApplicationDefinition: ResourceNotFound : The Resource 'Microsoft.Solutions/applicationDefinitions/redash-mapp' under resource group '<null>' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
CorrelationId: <00000000-0000-0000-0000-000000000000>
DEBUG: 13:08:57 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [Az.Resources], Cmdlet = [Set-AzManagedApplicationDefinition]. Returning default value [True].
DEBUG: 13:08:57 - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 13:08:57 - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 13:08:57 - No authentication telemetry is found for the current cmdlet with Id <00000000-0000-0000-0000-000000000000>.
DEBUG: AzureQoSEvent: Module: Az.Resources:8.1.0; CommandName: Set-AzManagedApplicationDefinition; PSVersion: 7.5.3; IsSuccess: False; Duration: 00:00:01.0918462; SanitizeDuration: 00:00:00; Exception: ResourceNotFound : The Resource 'Microsoft.Solutions/applicationDefinitions/redash-mapp' under resource group '<null>' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
CorrelationId: <00000000-0000-0000-0000-000000000000>;
DEBUG: 13:08:57 - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 13:08:57 - SetAzureManagedApplicationDefinitionCmdlet end processing.Environment data
PS> $PSVersionTable
Name Value
---- -----
PSVersion 7.5.3
PSEdition Core
GitCommitId 7.5.3
OS Microsoft Windows 10.0.26200
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0Module versions
PS> Get-Module Az*
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 5.3.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…}
Script 9.1.0 Az.Storage {Add-AzRmStorageContainerLegalHold, Add-AzStorageAccountManagementPolicyAction, Add-AzStorageAccountNetworkRule, Close-AzStorageFileHandle…}Error output
DEBUG: 13:20:52 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
HistoryId: 29
Message : ResourceNotFound : The Resource 'Microsoft.Solutions/applicationDefinitions/<managedAppDifinitionName>' under resource group '<null>' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
CorrelationId: <00000000-0000-0000-0000-000000000000>
StackTrace : at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.HandleException(ExceptionDispatchInfo capturedException)
at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.ExecuteCmdlet()
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.ErrorResponses.ErrorResponseMessageException
InvocationInfo : {Set-AzManagedApplicationDefinition}
Line : Set-AzManagedApplicationDefinition -Name '<managedAppDifinitionName>' -ResourceGroupName '<managedAppDifinitionRgName>' -PackageFileUri 'https://<pacageFileUri>'
Position : At line:1 char:1
+ Set-AzManagedApplicationDefinition -Name '<managedAppDifinitionName>' -ResourceGroup …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 29Metadata
Metadata
Assignees
Labels
bugThis 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-reportedneeds-triageThis is a new issue that needs to be triaged to the appropriate team.This is a new issue that needs to be triaged to the appropriate team.