You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Azure APIM Import任务兼容操作系统咨询:Windows代理报错

关于AzureAPIMImport@1任务兼容操作系统的咨询

我正在运行Azure DevOps流水线,使用Azure API Management DevOps Marketplace中的“Azure API Management API Utility”任务部署API时,出现如下错误:

2025-12-12T01:51:56.0826581Z ##[error]A supported task execution handler was not found. The task does not carry an implementation that is compatible with your current operating system 'Windows(X64)'. Contact the task author for more details.

可复现错误的YAML脚本:

variables:
  ApiDefURL: 'https://link_da_sua_aplicacao/swagger/1.0/swagger.json'
    
steps:
- task: pauldevops.azure-apim-import.azure-apim-importtask.AzureAPIMImport@1
  displayName: 'API  Import'
  inputs:
    ConnectedServiceNameARM: 'your_service_name'
    resourceGroupName: 'your_rsg'
    serviceName: yourservicename
    specificationUrl: '$(ApiDefURL)'
    apiPath: path
    enableSelfHostedGateway: false

使用的自托管代理信息:

  • 操作系统(VM):Windows(Windows Server 2022 Datacenter Azure Edition)
  • VM架构:x64
  • Agent版本:2.7.41491.1183

现咨询该特定版本(AzureAPIMImport@1)任务兼容的操作系统有哪些?


AzureAPIMImport@1仅兼容Linux操作系统,不支持Windows环境运行。

当前错误的核心原因是你使用了Windows自托管代理,但该任务v1版本未提供Windows平台的执行实现。

若需在Windows代理上完成同类操作,可参考以下方案:

  • 改用Azure DevOps官方提供的API Management相关任务,这类任务通常支持多平台运行
  • 切换至Linux自托管代理,或使用Azure DevOps托管的Linux代理执行该任务

内容的提问来源于stack exchange,提问作者João Calado

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.11 20:12:03