terraform azure Windows vm winrm超时问题中的远程执行

时间:2020-02-12 21:37:38

标签: windows azure terraform terraform-provider-azure

我试图在Azure上创建Windows vm,然后将其自动连接到ansible,我尝试了几种连接方法,但是在尝试执行一些命令时仍然超时 请在此处检查我的代码并等待您的支持

provisioner "remote-exec" {
inline = [
  "PowerShell.exe C:\\terraform\\winrm.ps1",
]

connection {
  type     = "winrm"
  port     = 5985
  https    = false
  timeout  = "2m"
  user     = "${var.username}"
  password = "${var.password}"
  host     = "windomainlocal1.westus.cloudapp.azure.com"
  insecure = true
}

}

0 个答案:

没有答案