Azure批处理链接服务中未在ADF管道中找到



我正在尝试使用ARM模板部署ADF管道。以下是Azure批处理链接服务的代码部分:

{
      "type": "linkedservice",
      "name": "AzureBatchLS",
      "dependsOn": [
        "[variables('dataFactoryName')]"
      ],
      "apiVersion": "2015-10-01",
      "properties": {
        "type": "AzureBatch",
        "typeProperties": {
          "accountName": "<acct name>.eastus2",
          "accessKey": <access key>,
          "poolName": "<pool name>",
          "linkedServiceName": "Dev-LinkedService"
        }
      }
    }

但是,每次部署期间,我都会收到以下错误消息:

New-AzureRmResourceGroupDeployment : 9:22:08 PM - Resource Microsoft.DataFactory/datafactories/linkedservice '<adf name>/AzureBatch' failed with message '{
"error": {
    "code": "BadRequest",
    "message": "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">rn<html xmlns="http://www.w3.org/1999/xhtml">rn<head>rn<meta http-equiv="Content-Type" 
content="text/html; charset=iso-8859-1"/>rn<title>404 - File or directory not found.</title>rn<style type="text/css">rn<!--rnbody{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, 
sans-serif;background:#EEEEEE;}rnfieldset{padding:0 15px 10px 15px;} rnh1{font-size:2.4em;margin:0;color:#FFF;}rnh2{font-size:1.7em;margin:0;color:#CC0000;} rnh3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} 
rn#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;rnbackground-color:#555555;}rn#content{margin:0 0 0 
2%;position:relative;}rn.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}rn-->rn</style>rn</head>rn<body>rn<div id="header"><h1>Server Error</h1></div>rn<div 
id="content">rn <div class="content-container"><fieldset>rn  <h2>404 - File or directory not found.</h2>rn  <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily 
unavailable.</h3>rn </fieldset></div>rn</div>rn</body>rn</html>rn"
  }
}'
At C:UserstsolankiDesktopOBFoundationCloudPoCSolutionHCLS-OBF-ARM-TemplatesDataTransfer_v0.1Deploy-AzureResourceGroup.ps1:110 char:5
+     New-AzureRmResourceGroupDeployment -Name ((Get-ChildItem $TemplateFile).Base ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [New-AzureRmResourceGroupDeployment], Exception
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDeploymentCmdlet

我已经检查了多次检查,以确保命名正确并且资源在线以及该订阅中。有人以前看过这个错误吗?我似乎无法在网上找到任何解决方案。

尝试将type设置为"linkedservices"

最新更新