So like you said, it was an MSFT issue.

rgagent, windowsAzureTelemetryService, WindowsAzureGuestAgent need to be 
disabled in the temp VM and the following keys need to be removed from the 
registry.

"Set-Service RdAgent -StartupType Disabled",

"Set-Service WindowsAzureTelemetryService -StartupType Disabled",

"Set-Service WindowsAzureGuestAgent -StartupType Disabled",

"remove-itemproperty -Path 
'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Setup\\SysPrepExternal\\Generalize'
 
-Name '*'"


reboot and after that sysprep works fine.



On Thursday, September 6, 2018 at 2:35:06 PM UTC+1, Alvaro Miranda Aguilera 
wrote:
>
> Hello 
>
> that only that particular flavour fails, rise an eyebrow
>
> as you are MS on MS, can't get azure to comment?
>
>
> On Fri, Aug 24, 2018 at 11:34 AM <[email protected] <javascript:>> 
> wrote:
>
>> Hi all,
>>
>> Using the very basic sysprep command, as given in Packer documentation. I 
>> can create images from all Windows Server SKUs, but 2016 Datacenter.
>>
>> It gets stuck in the below:
>>
>> azure-arm: Provisioning with powershell script: 
>> C:\Users\<username>\AppData\Local\Temp\packer-powershell-provisioner<number>
>>     azure-arm: IMAGE_STATE_COMPLETE
>>     azure-arm: IMAGE_STATE_UNDEPLOYABLE
>>     azure-arm: IMAGE_STATE_UNDEPLOYABLE
>>     azure-arm: IMAGE_STATE_UNDEPLOYABLE
>>     azure-arm: IMAGE_STATE_UNDEPLOYABLE
>>     azure-arm: IMAGE_STATE_UNDEPLOYABLE
>>     azure-arm: IMAGE_STATE_UNDEPLOYABLE
>>
>>
>> And it never completes.
>>
>>
>> Anyone ever had a similar issue?
>>
>>
>> Thanks,
>>
>> Panos
>>
>> -- 
>> 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/mitchellh/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] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/packer-tool/db7f585c-af8f-49a3-a78d-ec4aaa252667%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/packer-tool/db7f585c-af8f-49a3-a78d-ec4aaa252667%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> Alvaro
>
>

-- 
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/mitchellh/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/d7dfe85e-f7c5-4cce-9aab-b985ab3ea636%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to