• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: terraform: metadata_startup_script like mechanism for azure

Resolved: terraform: metadata_startup_script like mechanism for azure

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I’m following a blog to Deploy a Debian Linux VM Instance in GCP using Terraform, in which it uses metadata_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,
to bootstrap the provided Linux VM?

Answer:

The attribute metadata_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!

azure initialization linux
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: net::ERR_HTTP2_PROTOCOL_ERROR by http get request angular 15.2

02/04/2023

Resolved: How do I stop the command from happening if the requirements for it to work aren’t sert Discord.js

02/04/2023

Resolved: How to scroll bottom of div at launch?

02/04/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.