Ask Your Question
3

When using local-exec with Terraform, why does AzCopy generate an error?

asked 2023-07-20 10:05:20 +0000

huitzilopochtli gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-07-20 10:07:02 +0000

plato gravatar image

The local-exec provisioner in Terraform runs commands on the machine running the Terraform code, not on the Azure VM where AzCopy is typically installed. Therefore, if you run AzCopy commands through local-exec, you may run into errors related to the installation and configuration of AzCopy on the local machine, rather than on the Azure VM where it should be executed. It is recommended to use the remote-exec provisioner instead, which allows you to run commands on the Azure VM directly.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-20 10:05:20 +0000

Seen: 15 times

Last updated: Jul 20 '23