microsoft / commercial-marketplace-offer-deploy

Deployment Manager for the Azure Marketplace
Other
21 stars 13 forks source link

bug: Build VMI Workflow Error #663

Closed bobjac closed 2 months ago

bobjac commented 2 months ago

When running the GitHub action to build the VMI images, there is an error in the post processor where the Azure AD token is expiring. The error is

... User The error always seems to happen in the post processor no matter how long it takes for the build to run. The error is always:

==> azure-arm.modm: The resource group was not created by Packer, not deleting ... ==> azure-arm.modm: Running post-processor: (type shell-local) ==> azure-arm.modm (shell-local): Running local shell script: /tmp/packer-shell420453734 ==> azure-arm.modm (shell-local): ERROR: AADSTS700024: Client assertion is not within its valid time range. Current time: 2024-05-15T00:15:56.6877097Z, assertion valid from 2024-05-15T00:00:48.0000000Z, expiry time of assertion 2024-05-15T00:05:48.0000000Z. Review the documentation at https://docs.microsoft.com/azure/active-directory/develop/active-directory-certificate-credentials . Trace ID: ea0bfbb9-1cc9-4e27-bcfb-edd0b2ba3400 Correlation ID: 46862b6e-c2cc-48b1-aa48-c227b4326e77 Timestamp: 2024-05-15 00:15:56Z ==> azure-arm.modm (shell-local): Interactive authentication is needed. Please run: ==> azure-arm.modm (shell-local): az login Build 'azure-arm.modm' errored after 14 minutes 55 seconds: 1 error(s) occurred:

==> Wait completed after 14 minutes 55 seconds

==> Some builds didn't complete successfully and had errors: --> azure-arm.modm: 1 error(s) occurred:

==> Builds finished but no artifacts were created. Error: Process completed with exit code 1.