You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a Windows 2016 Server Image by using an Azure Base Image Windows 2016 Datacenter with IIS installation in packer build
Add a Deprovision code block at the end for Windows based on Documentation
Creating A Vm from the Image try to restart the IIS with
iisreset /restart
does not work error 'Invalid signature' error form IIS Admin Service
Reproduction Steps
Image Build from Azure base Image for Windows 2016 Datacenter
Installing IIS with some features ('Web-WebServer','Web-Scripting-Tools','Web-Mgmt-Console','Web-DAV-Publishing','Web-Http-Redirect','Web-Asp-Net45','Web-AppInit')
executing Deprovision command at the end of the Packer build
Use for Packer build another hardware setting to use for building (Azure VM SKU) then for the VM deployed afterward
Error occurs afterward by creating an Azure VM from the image, then the Machine key for the IIS is updated/broken
Error on direct service startup:
Windows could not start the IIS Admin Service on Local Computer. service-specific error code -2146893818
Eventlog error:
Event 7024
The IIS Admin Service service terminated with the following service-specific error: Invalid Signature
Plugin and Packer version
From packer version
1.8.5
Operating system and Environment details
Windows Server 2022, Azure, Different hardware for VM from image and Image build
Suggested Change
change the documentation for Deprovision a Windows VM (the example) accordingly to remove the option /mode:vm in the documentation, according to Microsoft Documentation it requires the Image to be deployed with the same Hardware Profile.
The text was updated successfully, but these errors were encountered:
Overview of the Issue
Creating a Windows 2016 Server Image by using an Azure Base Image Windows 2016 Datacenter with IIS installation in packer build
Add a Deprovision code block at the end for Windows based on Documentation
Creating A Vm from the Image try to restart the IIS with
does not work error 'Invalid signature' error form IIS Admin Service
Reproduction Steps
Image Build from Azure base Image for Windows 2016 Datacenter
Installing IIS with some features ('Web-WebServer','Web-Scripting-Tools','Web-Mgmt-Console','Web-DAV-Publishing','Web-Http-Redirect','Web-Asp-Net45','Web-AppInit')
executing Deprovision command at the end of the Packer build
(This is based on the example inside the Azure ARM Packer Plugin Documentation)
Packer build succeeds successful.
Use for Packer build another hardware setting to use for building (Azure VM SKU) then for the VM deployed afterward
Error occurs afterward by creating an Azure VM from the image, then the Machine key for the IIS is updated/broken
Error on direct service startup:
Eventlog error:
Plugin and Packer version
From
packer version
1.8.5
Operating system and Environment details
Windows Server 2022, Azure, Different hardware for VM from image and Image build
Suggested Change
change the documentation for Deprovision a Windows VM (the example) accordingly to remove the option
/mode:vm
in the documentation, according to Microsoft Documentation it requires the Image to be deployed with the same Hardware Profile.The text was updated successfully, but these errors were encountered: