vsts-arm-outputs icon indicating copy to clipboard operation
vsts-arm-outputs copied to clipboard

Unhandled exception during ARM Outputs Task Error: secret must be a non empty string

Open sukdev157 opened this issue 1 year ago • 4 comments

Starting: ARM Outputs

Task : ARM Outputs Description : This task reads the output values of an ARM deployment and sets them as Azure Pipelines variables. Version : 6.0.0 Author : Kees Schollaart Help : More Information

Logging in using ApplicationTokenCredentials, authScheme is 'WorkloadIdentityFederation' Unhandled exception during ARM Outputs Task Error: secret must be a non empty string. at new ApplicationTokenCredentials (webpack://arm-outputs/./node_modules/ms-rest-azure/lib/credentials/applicationTokenCredentials.js?:83:13) at AzureDevOpsArmOutputsTaskHost.getCredentials (webpack://arm-outputs/./dist/index.js?:100:31) at AzureDevOpsArmOutputsTaskHost.eval (webpack://arm-outputs/./dist/index.js?:33:40) at next (native) at eval (webpack://arm-outputs/./dist/index.js?:8:71) at __awaiter (webpack://arm-outputs/./dist/index.js?:4:12) at AzureDevOpsArmOutputsTaskHost.run (webpack://arm-outputs/./dist/index.js?:20:26) at eval (webpack://arm-outputs/./dist/index.js?:118:31) at Object../dist/index.js (C:\Azure\SHP_work_tasks\ARM Outputs_584bcff2-3353-4f11-872b-6ba01267a972\6.0.0\index.js:131:1) at webpack_require (C:\Azure\SHP_work_tasks\ARM Outputs_584bcff2-3353-4f11-872b-6ba01267a972\6.0.0\index.js:30:30) ##[error]Error: secret must be a non empty string. Finishing: ARM Outputs

sukdev157 avatar Dec 28 '23 07:12 sukdev157

Same as #383

andrewholler avatar Jan 04 '24 23:01 andrewholler

I get the feeling this project is not being maintained anymore as it was last updated what 3 years ago. A pity...

pcoetzer-hyrdeiot avatar Jan 08 '24 13:01 pcoetzer-hyrdeiot

Hi,

we are experiencing the same error.

image

@keesschollaart81 Is there any chance that this will be fixed?

I tried with both versions 5.X and 6.X

StefanoUrsino avatar Jan 15 '24 08:01 StefanoUrsino

You can fix it by removing the task from your pipeline and use the approach as illustrated in this article: https://ochzhen.com/blog/parse-arm-template-outputs-in-azure-pipelines

BennyM avatar May 21 '24 18:05 BennyM