Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Anyone give me the code to deploy multiple VM's in azure using Terraform?

What I have tried:

I tried in various ways but no luck.
Posted
Updated 12-Sep-17 1:40am

1 solution

What code? PowerShell? REST API? What?

You need to consult the documentation for Terraform to perform this, because I believe it would be them controlling the resources — as they are Resource Managers. They have documentation available and more over they provide good documented code samples too there, you can get something out from there.

Azure Resource Manager: azurerm_virtual_machine - Terraform by HashiCorp[^]
Provider: Azure Resource Manager - Terraform by HashiCorp[^]

For instance, this is the Virtual Machine Scale Set operation documentation, see the code sample and fill in with your own details such as auth credentials; Azure Resource Manager: azurerm_virtual_machine_scale_set - Terraform by HashiCorp[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900