terraform-azurerm-compute icon indicating copy to clipboard operation
terraform-azurerm-compute copied to clipboard

Custom_data no longer works

Open generalconsensus opened this issue 4 years ago • 2 comments

  • Terraform Version: 0.14.7
  • OS Version: Mac OSX 11.2.3

Bug description: Creating a terraform compute machine using this module with the custom_data variable results in the virtual machine not containing any user data Steps to reproduce:

  1. Create a basic Ubuntu 18.04 vm
  2. Add simple user data and base64encode it
  3. Apply and validate the userdata in Azure and on the machine

generalconsensus avatar Apr 28 '21 19:04 generalconsensus

Thanks for opening this issue!

azureterraformbot[bot] avatar Apr 28 '21 19:04 azureterraformbot[bot]

Hi, thanks for opening this issue. According to the resource definition, Terraform will base64 encode the custom data, I think you don't need to base64 encode the custom data. If the problem still exist, please provide your script, and you reproducing steps, the results and your expected results.

yupwei68 avatar May 24 '21 06:05 yupwei68

I'm closing this issue since no response from the user.

lonegunmanb avatar Nov 22 '22 09:11 lonegunmanb