Replies: 1 comment 2 replies
-
I created a bash script (below) to run the "az login", which then outputs the URL and code to authenticate. Once that is complete, my TF build works.#!/bin/sh |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a Terraform/OpenTofu project for Azure that works just fine if run from the command line. The project uses Azure's CLI and specifically
az login
to consistently build the resources in Azure as defined in themain.tf
code. I recently added this project to Semaphore and it all looks right (to me) and it successfully initializes the workspace when starting the task. However, as soon as it starts running thetofu plan
it fails and says to runaz login
. I assume this is because Semaphore can't read the Azure CLI env variables? But, no matter if that assumption is right or wrong, I'd like to understand how I can make Semaphore execute my task. My goal is to use Semaphore to make this easier for other people on my team to stand up infrastructure without needing to know a lot about Terraform, using the command line, or even having CLI access to the server.Any suggestions, ideas or insights into how to go about it would be greatly appreciated.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions