We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83c7d3b commit beb2de6Copy full SHA for beb2de6
lib/packer/config/templates/provision_windows2019.json.erb
@@ -129,14 +129,6 @@
129
]
130
},
131
<% end %>
132
- {
133
- "type": "powershell",
134
- "inline": [
135
- "$ErrorActionPreference = \"Stop\";",
136
- "trap { $host.SetShouldExit(1) }",
137
- "Protect-CFCell -IaaS <%= iaas %>"
138
- ]
139
- },
140
{
141
"type": "file",
142
"source": "../sshd/OpenSSH-Win64.zip",
@@ -266,7 +258,7 @@
266
258
"inline": [
267
259
"$ErrorActionPreference = \"Stop\";",
268
260
"trap { $host.SetShouldExit(1) }",
269
- "Invoke-Sysprep -IaaS <%= iaas %>"
261
+ "Protect-CFCell -IaaS <%= iaas %>; Invoke-Sysprep -IaaS <%= iaas %>"
270
262
271
263
}
272
264
0 commit comments