Hi,
I have been using the custom script extension with Terraforms to deploy run a script on a 2016 Datacenter VM. I have been having an issue where the custom script extension runs till timeout and I can't seem to figure out why. Here is my code:
resource "azurestack_virtual_machine_extension" "temp" {
name = "temp"
location = var.location
resource_group_name = var.resource_group_name
virtual_machine_name = local.virtual_machine_name
publisher = "Microsoft.Compute"
type = "CustomScriptExtension"
type_handler_version = "1.9"
depends_on = [azurestack_virtual_machine.domain-controller]
settings = <<SETTINGS
{
"commandToExecute": "exit 0"
}
SETTINGS
}
Even with setting commandToExecute to "exit 0" the deployment still runs for 90 minutes before timing out. Is there something I am doing wrong here?