Hi.
I am unable to properly create Windows images on Azure, because the
deprovision step is stuck in an infinite loop.
The error:
1589606815,,ui,error,==> azure-arm: Get-Service : Cannot find any service
with service name 'WindowsAzureTelemetryService'.
1589606815,,ui,error,==> azure-arm: At
C:\Windows\Temp\script-5ebf7849-741e-b3ca-88f5-82f1f7d320aa.ps1:3 char:11
1589606815,,ui,error,==> azure-arm: + while ((Get-Service
WindowsAzureTelemetryService).Status -ne 'Runni ...
The deprovision step (as you can see in the documentation):
{
"provisioners": [
{
"type": "powershell",
"inline": [
" # NOTE: the following *3* lines are only needed if the you have
installed the Guest Agent.",
" while ((Get-Service RdAgent).Status -ne 'Running') { Start-Sleep
-s 5 }",
" while ((Get-Service WindowsAzureTelemetryService).Status -ne
'Running') { Start-Sleep -s 5 }",
" while ((Get-Service WindowsAzureGuestAgent).Status -ne
'Running') { Start-Sleep -s 5 }",
"& $env:SystemRoot\\System32\\Sysprep\\Sysprep.exe /oobe
/generalize /quiet /quit /mode:vm",
"while($true) { $imageState = Get-ItemProperty
HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Setup\\State | Select
ImageState; if($imageState.ImageState -ne
'IMAGE_STATE_GENERALIZE_RESEAL_TO_OOBE') { Write-Output
$imageState.ImageState; Start-Sleep -s 10 } else { break } }"
]
}
]
}
I started a Windows VM, logged in and the WindowsAzureTelemetryService is
not running, but we didn't change anything.
If we remove the line with the WindowsAzureTelemetryService it just fails
with other errors.
Anyone else seen this issue?
Any ideas how to solve it?
Regards,
Adam
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/packer-tool/77c17be7-a45c-4a99-b893-bb489bbd8392%40googlegroups.com.