Question:
I’m following a blog to Deploy a Debian Linux VM Instance in GCP using Terraform, in which it usesmetadata_startup_script
Bootstrapping Script to Install/config packages.I’m following in Azure instead of GCP, and got:
An argument named "metadata_startup_script" is not expected here.
Is
metadata_startup_script
GCP provider speicific? What’s the corresponding mechanism in the terraform Azure provider ? For e.g. to do the following,Answer:
The attributemetadata_startup_script
doesn’t exist on Azure VMs, its similar is user_data
[1].References: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/linux_virtual_machine#user_data
If you have better answer, please add a comment about this, thank you!