[英]HTTP Status Code: Not found error for AzureRM.Datafactoryv2 cmdlets in powershell
When i run Get-AzureRmDataFactoryV2ActivityRun
in PowerShell i get an error as shown below 当我在PowerShell中运行
Get-AzureRmDataFactoryV2ActivityRun
,出现如下所示的错误
Get-AzureRmDataFactoryV2ActivityRun : HTTP Status Code: NotFound Error Code: NotFound Error Message: Operation returned an invalid status code 'NotFound' Request Id: ID Timestamp (Utc):05/31/2018 04:32:39 At line:2 char:1 + Get-AzureRmDataFactoryV2ActivityRun -DataFactoryName "maxscadfdev" -R ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Get-AzureRmDataFactoryV2ActivityRun], ErrorResponseException + FullyQualifiedErrorId : Microsoft.Azure.Commands.DataFactoryV2.GetAzureDataFactoryActivityRunCommand
Get-AzureRmDataFactoryV2ActivityRun:HTTP状态代码:未找到错误代码:未找到错误消息:操作返回了无效的状态代码'未找到'请求ID:ID时间戳(UTC):05/31/2018 04:32:39在线:2字符: 1 + Get-AzureRmDataFactoryV2ActivityRun -DataFactoryName“ maxscadfdev” -R ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + CategoryInfo:CloseError:(:) [Get-AzureRmDataFactoryV2ActivityRun],ErrorResponseException + FullyQualifiedErrorId:Microsoft.Azure.Commands.DataFactoryV2.GetAzureDataFactoryActivityRunCommand
Very likely you have pushed incorrect Resource Group Name. 您很可能已推送了错误的资源组名称。 Check the following steps:
检查以下步骤:
1) update AzureRmDataFactoryV2 module first. 1)首先更新AzureRmDataFactoryV2模块。
2) restart PowerShell session (if needed) 2)重新启动PowerShell会话(如果需要)
3) check the correctness of passing Resource Group Name 3)检查传递资源组名称的正确性
I have wrote post with more details: 我写了更详细的帖子:
https://sqlplayer.net/2018/09/notfound-status-code-when-working-with-adfv2-via-azurerm-datafactoryv2-powershell-module/ https://sqlplayer.net/2018/09/notfound-status-code-when-working-with-adfv2-via-azurerm-datafactoryv2-powershell-module/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.