Hi.
I am unable to create windows images on Azure.
I get the following 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 ...
But this is the official way to capture the image.
{
"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 } }"
]
}
]
}
If I remove the line with WindowsAzureTelemetryService it fails with other
errors.
Any ideas?
--
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/42d17b9f-942d-4407-bd56-57b49509be02%40googlegroups.com.