Provisioning an Azure Linux VM might fail for some Windows MID Servers with error: Failed to execute API - Caused by error in Ad hoc script 'azure-compute-1.0-CreateNode' at line 1DescriptionWhen provisioning an Azure Linux VM via Windows MID Servers, you might encounter the following error in CAPI trail logs:Failed to execute API - Caused by error in Ad hoc script 'azure-compute-1.0-CreateNode' at line 1==> 1: createNode();2: function createNode(){3: var acp = new AzureComputeVirtualMachine(this.parameters, this.headers);4: var vm = acp.createVirtualMachine();com.jcraft.jsch.KeyPair.load(KeyPair.java:747)com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:46)com.jcraft.jsch.JSch.addIdentity(JSch.java:442)com.snc.cmp.connector.cloud.ssh.provider.SecureShellHelper.initializeSession(SecureShellHelper.java:892)com.snc.cmp.connector.cloud.ssh.provider.SecureShellHelper.executeCommand(SecureShellHelper.java:363)sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)java.lang.reflect.Method.invoke(Method.java:498)org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138)org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:300)org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2612)org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)org.mozilla.javascript.gen.script_include_AzureComputeVirtualMachine_7041._c_anonymous_5(script_include:AzureComputeVirtualMachine:339)org.mozilla.javascript.gen.script_include_AzureComputeVirtualMachine_7041.call(script_include:AzureComputeVirtualMachine)org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:2678)org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2617)org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)org.mozilla.javascript.gen.ad_hoc_azure_compute_1_0_CreateNode_7117._c_createNode_1(ad_hoc:azure-compute-1.0-CreateNode:4)org.mozilla.javascript.gen.ad_hoc_azure_compute_1_0_CreateNode_7117.call(ad_hoc:azure-compute-1.0-CreateNode)org.mozilla.javascript.ScriptRuntime.doCall2(ScriptRuntime.java:2678)org.mozilla.javascript.ScriptRuntime.doCall(ScriptRuntime.java:2617)org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:74)org.mozilla.javascript.gen.ad_hoc_azure_compute_1_0_CreateNode_7117._c_script_0(ad_hoc:azure-compute-1.0-CreateNode:1)org.mozilla.javascript.gen.ad_hoc_azure_compute_1_0_CreateNode_7117.call(ad_hoc:azure-compute-1.0-CreateNode)org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:563)org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3459)org.mozilla.javascript.gen.ad_hoc_azure_compute_1_0_CreateNode_7117.call(ad_hoc:azure-compute-1.0-CreateNode)org.mozilla.javascript.gen.ad_hoc_azure_compute_1_0_CreateNode_7117.exec(ad_hoc:azure-compute-1.0-CreateNode)com.service_now.mid.script.MIDScript.executeCompiledScript(MIDScript.java:224)com.service_now.mid.script.MIDScript.evaluate(MIDScript.java:129)com.snc.cmp.connector.cloud.script.js.JavaScriptProducer.process(JavaScriptProducer.java:52)org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)org.apache.camel.processor.SendProcessor.process(SendProcessor.java:145)org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:197)org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:197)org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62)org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:197)org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109)org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:68)org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:412)org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:380)org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:270)org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:380)org.apache.camel.impl.ProducerCache.send(ProducerCache.java:238)org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:128)org.apache.camel.impl.DefaultProducerTemplate.sendBodyAndHeaders(DefaultProducerTemplate.java:253)org.apache.camel.impl.DefaultProducerTemplate.requestBodyAndHeaders(DefaultProducerTemplate.java:313)org.apache.camel.impl.DefaultProducerTemplate$10.call(DefaultProducerTemplate.java:588)java.util.concurrent.FutureTask.run(FutureTask.java:266)java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)java.lang.Thread.run(Thread.java:748)Steps to Reproduce Create an Azure Linux VM cloud template2. Configure a Windows MID Server to handle the provisioning.3. Launch the stack and it will fail.4. Observe the error message mentioned in above description in CAPI trail logs.WorkaroundThis problem is currently under review. You can contact ServiceNow Technical Support or subscribe to this Known Error article by clicking the Subscribe button at the top right of this form to be notified when more information will become available. If can not wait till then, you can apply the attached update set: sys_remote_update_set_f3501abedb77541053ef683b0b9619e2.xml which will modify the AzureComputeVirtualMachine MID Server Script Include.Related Problem: PRB1440172