Skip to content

[Bug]: Build Fails in 8.1 with 401 Unauthorized Error for Key Vault Access #2065

@Gummi007

Description

@Gummi007

AL-Go version

8.1

Describe the issue

After updating to AL-Go version 8.1, the build fails with the following error:

##[error]Unexpected error when running action. Error Message: Exception calling "GetResult" with "0" argument(s): "Response status code does not indicate success: 401 (Unauthorized).", StackTrace: at DownloadFileLow, C:\ProgramData\BcContainerHelper\6.1.10\BcContainerHelper\HelperFunctions.ps1: line 1046 <- at Set-BcContainerKeyVaultAadAppAndCertificate, ...

The same build works in v8.0 here is atleast one thing I observed, when reading the settings there is a difference between versions

8.0:
"keyVaultCertificateUrlSecretName": ""
8.1:
"keyVaultCertificateUrlSecretName": "keyVaultCertificateUrl"

Expected behavior

The AL-Go build should complete successfully in version 8.1, as it did in 8.0.

Steps to reproduce

  1. Update AL-Go to version 8.1
  2. Create a PR that starts the Pull Request Build action

Additional context (logs, screenshots, etc.)

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions