Forum Discussion
Automation for Installation of Software's Post VM Deployment
- Oct 04, 2021
Yes the first 2 can be
1. https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_machine_extensionand you can use below publisher and type for custom script :
publisher = "Microsoft.Compute"
type = "CustomScriptExtension"
2. https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/automation_dsc_configuration
3. You can also use Ansible with Terraform but that is something I don't have experience on .
There are several ways to do it, first two are native Azure solutions
1. https://docs.microsoft.com/en-us/azure/virtual-machines/windows/run-scripts-in-vm
2. https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/dsc-overview
3. A thirdparty tool like Ansible, chef or puppet
Hi,
Thanks for the suggestion. Can these be used with terraform ?
- Ankit KotnalaOct 04, 2021Brass Contributor
Yes the first 2 can be
1. https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_machine_extensionand you can use below publisher and type for custom script :
publisher = "Microsoft.Compute"
type = "CustomScriptExtension"
2. https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/automation_dsc_configuration
3. You can also use Ansible with Terraform but that is something I don't have experience on .