Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.