【问题标题】:Error :{"code":"InvalidUri","message":"The requested URI does not represent any resource on the server - Azure Batch Rest API错误:{"code":"InvalidUri","message":"请求的 URI 不代表服务器上的任何资源 - Azure Batch Rest API
【发布时间】:2021-07-18 06:20:12
【问题描述】:

我正在尝试调用 Azure Batch Rest API 从 ADF 创建池。

以下是我正在尝试的帖子网址 -

https://management.azure.com/subscriptions/a01c19ca-c50f-4be0-904d-xxxxxxxxxxxx/resourceGroups/ sumo-dev-rg/providers/Microsoft.Batch/batchAccounts/sumobatch/pools/testpool?api-version=2021-01-01

上面的testpool 不存在,但应该在RestAPi 成功运行后创建。

但是,我收到以下错误代码 -

错误详情

Error code 2108
Troubleshooting guide
Failure type
User configuration issue

详情

{"error":{"code":"InvalidUri","message":"The requested URI does not represent any resource on the server.\nRequestId:b512af12-c1b7-474a-9773-dcf034b07e0e\nTime:2021-07-18T05:57:31.4199546Z","target":"BatchAccount","details":[{"code":"UriPath","message":"/subscriptions/a01c19ca-c50f-4be0-904d-************/resourceGroups/
sumo-dev-rg/providers/Microsoft.Batch/batchAccounts/sumobatch/pools/testpool"}]}}
Source Pipeline poolstart

任何线索都将受到高度赞赏?

【问题讨论】:

  • 我相信您的资源组名称前有一个空格,这可能会导致问题。你能检查一下吗?
  • 我交叉验证了。没有空间。这里是输入请求 -Input { "url": "management.azure.com/subscriptions/…", "method": "POST", "headers": {}, "body": {}, "authentication": { "type": " MSI", "资源": "management.core.windows.net" } }
  • 谢谢大家。现在解决了。从我的角度来看,这是一个错误。我没有在 url 之前放置 PUT 请求。

标签: azure api


【解决方案1】:

谢谢Poon。将您的评论作为答案发布以帮助其他社区成员。

URL 之前添加PUT 修复了问题

【讨论】:

    猜你喜欢
    • 2021-01-08
    • 2018-06-13
    • 2021-10-24
    • 1970-01-01
    • 2020-06-08
    • 1970-01-01
    • 1970-01-01
    • 2012-04-13
    • 2017-12-15
    相关资源
    最近更新 更多