Skip to content

[Bug]: Cannot sign app file: [Managed Identity] Authentication unavailable. #1783

Open
@mcebailly

Description

@mcebailly

AL-Go version

7.2

Describe the issue

During CI/CD, we are receiving a signing error. This doesn't error the build process, but the sign does not complete. Here is the error, attached are the logs

False MSAL 4.71.1.0 MSAL.NetCore .NET 8.0.16 Microsoft Windows 10.0.20348 [2025-06-12 19:28:45Z - c99d0b11-7e99-4926-922e-b4083f3b52b9] Error message: [Managed Identity] Authentication unavailable. Either the requested identity has not been assigned to this resource, or other errors could be present. Ensure the identity is correctly assigned and check the inner exception for more details. For more information, visit https://aka.ms/msal-managed-identity.
Status: BadRequest
Content:
{"error":"invalid_request","error_description":"Identity not found"}

    Headers:
    Server: IMDS/150.8[70](https://github.com/EideBaillyCloud/MultiLineCheckExtender/actions/runs/15618852149/job/43998543359#step:11:73).65.1544
    x-ms-request-id: 7c23dc03-4f7a-4852-a9c6-34f4bd454b0a
    Date: Thu, 12 Jun 2025 19:28:44 GMT
    
    [Managed Identity] Error Code: invalid_request Error Description: Identity not found  Http status code: BadRequest

fail: Azure.Identity[10]
False MSAL 4.71.1.0 MSAL.NetCore .NET 8.0.16 Microsoft Windows 10.0.20348 [2025-06-12 19:28:46Z - c99d0b11-7e99-4926-922e-b4083f3b52b9] Exception type: Microsoft.Identity.Client.MsalServiceException
, ErrorCode: managed_identity_request_failed
HTTP StatusCode 0
CorrelationId c99d0b11-7e99-4926-922e-b4083f3b52b9
To see full exception details, enable PII Logging. See https://aka.ms/msal-net-logging
at Microsoft.Identity.Client.ManagedIdentity.ImdsManagedIdentitySource.HandleResponseAsync(AcquireTokenForManagedIdentityParameters parameters, HttpResponse response, CancellationToken cancellationToken)
at Microsoft.Identity.Client.ManagedIdentity.AbstractManagedIdentity.AuthenticateAsync(AcquireTokenForManagedIdentityParameters parameters, CancellationToken cancellationToken)
at Microsoft.Identity.Client.Internal.Requests.ManagedIdentityAuthRequest.SendTokenRequestForManagedIdentityAsync(ILoggerAdapter logger, CancellationToken cancellationToken)
at Microsoft.Identity.Client.Internal.Requests.ManagedIdentityAuthRequest.GetAccessTokenAsync(CancellationToken cancellationToken, ILoggerAdapter logger)
at Microsoft.Identity.Client.Internal.Requests.ManagedIdentityAuthRequest.ExecuteAsync(CancellationToken cancellationToken)
at Microsoft.Identity.Client.Internal.Requests.RequestBase.<>c__DisplayClass11_1.<b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.Identity.Client.Utils.StopwatchService.MeasureCodeBlockAsync(Func`1 codeBlock)
at Microsoft.Identity.Client.Internal.Requests.RequestBase.RunAsync(CancellationToken cancellationToken)

logs_40041914098.zip

Expected behavior

Build signs the files

Steps to reproduce

Create a build, put in signing credentials, run CICD

Additional context (logs, screenshots, etc.)

No response

Metadata

Metadata

Assignees

Labels

Need more infoPlease add more info about how to repro the problembugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions