Closed jrbosch closed 10 months ago
@jaredfholgate Can you take a look if anything is related to last release?
@jrbosch Please could you run the task with diagnostics turned on and look for debug output lines like this:
##[debug]813272eb-ad8d-496f-93f6-5ebea98107b8 auth scheme = ServicePrincipal
##[debug]Setting up backend for authorization scheme: serviceprincipal.
If you could reply here with those two lines that would really help. Thanks
Quick update. We think we have identified the issue and have made a fix will which be rolled out ASAP.
It looks like there was a change to the casing of the authorization scheme
attribute some time ago, so older service connections may be serviceprincipal
(lower case), but newer service connections are ServicePrincipal
(pascal case). The code was not handling the old casing, so the fix will handle any casing and some other edge cases.
@jrbosch Just to confirm, the fix is now deployed in version 0.1.23. Please could you confirm it works in your environment.
It would still be very useful for me to see those two debug log output lines if you could share them with me. Thanks.
@jaredfholgate Awesome! Please see the two lines from my debug log and yes, it is working now
##[debug]02acb8d0-ddab-46d0-a776-e51675d66758 auth scheme = serviceprincipal
##[debug]Setting up backend for authorization scheme: serviceprincipal.
Many thanks !!
@jaredfholgate Jared Holgate FTE Awesome! Please see the two lines from my debug log and yes, it is working now
##[debug]02acb8d0-ddab-46d0-a776-e51675d66758 auth scheme = serviceprincipal ##[debug]Setting up backend for authorization scheme: serviceprincipal.
Many thanks !!
@jrbosch Thanks for confirming and thanks for the logs. They confirm the issue was as expected and is now resolved.
Last automatic update of the extension in Azure DevOps is not providing the
-backend-config=client_id=***
-backend-config=client_secret=***
options for theinit
command. Failing with the error:Error: Error building ARM Config: obtain subscription(xxx) from Azure CLI: parsing json result from the Azure CLI: waiting for the Azure CLI: exit status 1: ERROR: Please run 'az login' to setup account.
Task configuration:
Sensitive values are replaced by xxx
Before (version 0.1.21) it was working fine! Pipeline execution log:
Now (version 0.1.22) is not working. Pipeline execution log:
Both execution log headers provide the task version and you can see the second log doesn't have the options
-backend-config=client_id=***
-backend-config=client_secret=***
in the command line.I was searching but there is no way to rollback those Azure DevOps updates, even so I could fix it using TerraformTaskV3 instead of TerraformTaskV4.