Azure管道&x27;WinRMCustomScriptExtension';非公共VM中的基础连接已关闭
在Azure管道中,当通过部署模板创建VM时,我们可以选择“使用WinRM代理进行配置”,如下所示 这在幕后充当自定义扩展。但是Azure中的内部vnet可能会阻止下载此自定义扩展。这就是我们得到的错误Azure管道&x27;WinRMCustomScriptExtension';非公共VM中的基础连接已关闭,azure,powershell,virtual-machine,winrm,Azure,Powershell,Virtual Machine,Winrm,在Azure管道中,当通过部署模板创建VM时,我们可以选择“使用WinRM代理进行配置”,如下所示 这在幕后充当自定义扩展。但是Azure中的内部vnet可能会阻止下载此自定义扩展。这就是我们得到的错误 <datetime> Adding extension 'WinRMCustomScriptExtension' on virtual machine <vmname> <datetime> Failed to add the extension to the
<datetime> Adding extension 'WinRMCustomScriptExtension' on virtual machine <vmname>
<datetime> Failed to add the extension to the vm: <vmname>. Error: "VM has reported a failure when processing extension 'WinRMCustomScriptExtension'. Error message: \"Failed to download all specified files. Exiting. Error Message: The underlying connection was closed: An unexpected error occurred on a send.\"\r\n\r\nMore information on troubleshooting is available at https://aka.ms/VMExtensionCSEWindowsTroubleshoot "
在虚拟机上添加扩展“WinRMCustomScriptExtension”
未能将扩展添加到vm:。错误:“VM在处理扩展名“WinRMCustomScriptExtension”时报告失败。错误消息:\”未能下载所有指定的文件。退出。错误消息:基础连接已关闭:发送时发生意外错误。\“\r\n\r\n有关疑难解答的详细信息,请访问https://aka.ms/VMExtensionCSEWindowsTroubleshoot "
由于文件无法下载,我想到了两种解决方案: