Skip to content

Instantly share code, notes, and snippets.

param(
[string]
$gatewayKey
)
# init log setting
$logLoc = "$env:SystemDrive\WindowsAzure\Logs\Plugins\Microsoft.Compute.CustomScriptExtension\"
if (! (Test-Path($logLoc)))
{
New-Item -path $logLoc -type directory -Force
2019-05-28T14:53:02.709+0200 [DEBUG] plugin.terraform-provider-vsphere_v1.11.0_x4.exe: 2019/05/28 14:53:02 [DEBUG] OSFamily: family for "rhel7_64Guest" is "linuxGuest"
2019-05-28T14:53:02.709+0200 [DEBUG] plugin.terraform-provider-vsphere_v1.11.0_x4.exe: 2019/05/28 14:53:02 [DEBUG] Sending customization spec to virtual machine "/PATH/Edge/sedg-vm-002"
2019-05-28T14:53:03.627+0200 [DEBUG] plugin.terraform-provider-vsphere_v1.11.0_x4.exe: 2019/05/28 14:53:03 [DEBUG] Powering on virtual machine "/PATH/Edge/sedg-vm-002"
2019-05-28T14:53:05.378+0200 [DEBUG] plugin.terraform-provider-vsphere_v1.11.0_x4.exe: 2019/05/28 14:53:05 [DEBUG] vsphere_virtual_machine (ID = 4201146f-33f9-d0c8-c5f0-ede648364df8): Waiting for VM customization to complete
2019-05-28T14:53:27.456+0200 [DEBUG] plugin.terraform-provider-vsphere_v1.11.0_x4.exe: 2019/05/28 14:53:27 [DEBUG] Fetching properties for VM "/PATH/Edge/sedg-vm-002"
2019-05-28T14:53:27.503+0200 [DEBUG] plugin.terraform-provider-vsphere_v1.11.0_x4.exe: 2019/05/28 14:53:27 [DE
panic: inconsistent map element types (cty.Map(cty.String) then cty.Map(cty.Number))
goroutine 1 [running]:
github.com/zclconf/go-cty/cty.MapVal(0xc0004f6ed8, 0xc0004f6e00, 0x2e50222, 0x1, 0xc0004f6fb0)
/opt/gopath/pkg/mod/github.com/zclconf/go-cty@v0.0.0-20190516203816-4fecf87372ec/cty/value_init.go:207 +0x53f
github.com/zclconf/go-cty/cty/convert.conversionObjectToMap.func2(0x201fae0, 0xc000534030, 0x1927ee0, 0xc00010a870, 0xc0001126d0, 0x1, 0x1, 0x3670d58, 0x0, 0x40c4ef, ...)
/opt/gopath/pkg/mod/github.com/zclconf/go-cty@v0.0.0-20190516203816-4fecf87372ec/cty/convert/conversion_collection.go:338 +0x6ca
github.com/zclconf/go-cty/cty/convert.getConversion.func1(0x201fae0, 0xc000534030, 0x1927ee0, 0xc00010a870, 0x0, 0x0, 0x0, 0xc0000052c0, 0xc0001126c0, 0x201faa0, ...)
/opt/gopath/pkg/mod/github.com/zclconf/go-cty@v0.0.0-20190516203816-4fecf87372ec/cty/convert/conversion.go:34 +0xf6
github.com/zclconf/go-cty/cty/convert.retConversion.func1(0x201fae0, 0xc000534030, 0x1927ee0, 0xc00010a