azure - 错误: {"code" :"InvalidUri" ,"message":"The requested URI does not represent any resource on the server - Azure Batch Rest API

标签 azure api

我正在尝试调用 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

任何潜在客户都会受到高度赞赏?

最佳答案

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

Adding the PUT before the URL fixed the issue

关于azure - 错误: {"code" :"InvalidUri" ,"message":"The requested URI does not represent any resource on the server - Azure Batch Rest API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68426566/

相关文章:

azure - 类型或命名空间名称 'Storage' 在命名空间 'Microsoft.WindowsAzure' 中不存在

azure - 在 C# 中检索 Azure VM 的 Azure 负载均衡器 NAT 端口

azure - Azure 函数的出站 IP 地址

powershell - 从 VSTS 版本访问 Azure 服务主体详细信息

visual-studio - Visual Studio "Publish Preview"功能在后台运行什么命令?

c# - 使用 Microsoft 登录时出现 HttpListenerException

c++ - Linux API 列出正在运行的进程?

json - 如何在 SwiftUI 中显示来自 API 的 JSON 数据?

api - 简单的 Acumatica 合约 soap api 调用出错

api - 第三方权限 用户名 Paypal API Magento