A fully managed end-to-end service for digitally signing code, documents, and applications. (formerly Trusted Signing)
For this failure pattern, the supported checks are the Artifact Signing configuration and prerequisites. The available diagnostics in the provided documentation are:
- Keep the failed file and its hash.
- Subscribe to signing transaction events, because that information can help troubleshoot signing-related issues.
- Run SignTool with
/debugto capture certificate and filtering details. - For
0x80004005, if Service Principal + certificate authentication is being used, verify the required environment variables.
For account, profile, and subscription state, check these items specifically:
- Subscription status must be Registered.
- The signing identity must have the Artifact Signing Certificate Profile Signer role.
- In
metadata.json, verify:-
CodeSigningAccountNameis the Artifact Signing account name -
CertificateProfileNameis the correct certificate profile name -
Endpointmatches the region where the account and certificate profile were created
-
- For North Europe, the endpoint must be:
https://neu.codesigning.azure.net - Confirm the corresponding identity validation status is Completed.
- Confirm the Certificate Profile status is Active.
- Check the dlib path and dlib version.
- Check the .NET version, dlib version, and Windows SDK version.
- Install the latest supported C++ Redistributables.
- Verify the signing request works from a different VM or computer, because a 403 can indicate a network issue.
For SignTool setup, use the matching architecture and recommended SDK:
& "<Path to SDK bin folder>\x64\signtool.exe" sign /v /debug /fd SHA256 /tr "http://timestamp.acs.microsoft.com" /td SHA256 /dlib "<Path to Artifact Signing dlib bin folder>\x64\Azure.CodeSigning.Dlib.dll" /dmdf "<Path to metadata file>\metadata.json" <File to sign>
Important checks for this scenario:
- A region/endpoint mismatch in
metadata.jsoncommonly causes 403 Forbidden and internalSignerSign()failure. -
CodeSigningAccountNamemust be the Artifact Signing account name, not an email address or user ID. - If SignTool silently fails, ensure the relevant .NET runtime version is installed.
- If the issue is caused by cached authentication state, sign out and sign in again for 401-type auth issues; for local cache-related
MsalUiRequiredException, the issue resolves after cache refresh.
The provided documentation does not describe a user-visible way to inspect a deeper backend reason for operations that end in status: Failed with signature: null, and it does not document any reset action for billing reactivation or certificate regeneration after subscription reactivation. The supported self-service path is to validate the configuration and prerequisites above and retain the file/hash plus transaction-event data for troubleshooting.
References: