【发布时间】: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 请求。