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