'Set-AzureRmDataFactoryV2'无法识别为cmdlet的名称 [英] 'Set-AzureRmDataFactoryV2' is not recognized as the name of a cmdlet

查看:168
本文介绍了'Set-AzureRmDataFactoryV2'无法识别为cmdlet的名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Ubuntu 16.04上安装了Powershell 6.0.0.尝试使用Powershell创建Azure数据工厂时出现以下错误

I have installed Powershell 6.0.0 on Ubuntu 16.04. I am getting following error when trying to create Azure Data Factory using Powershell

Set-AzureRmDataFactoryV2 : The term 'Set-AzureRmDataFactoryV2' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:16
+ $DataFactory = Set-AzureRmDataFactoryV2 -ResourceGroupName $ResGrp.Re ...
+                ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (Set-AzureRmDataFactoryV2:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

然后我尝试安装该模块并收到以下错误

Then I tried to install the module and getting the following error

Install-Module AzureRM -AllowClobber  
                                                                                                                                                                                                                                          Untrusted repository                                                                                                                           You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by running the  Set-PSRepository cmdlet. Are you sure you want to install the modules from 'PSGallery'?                                                        
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): Y
PackageManagement\Install-Package : The member 'TypesToProcess' in the module manifest is not valid: Cannot find path '/tmp/787167149/Azure.Storage/.\Microsoft.WindowsAzure.Commands.Storage.Types.ps1xml' because it does not exist.. Verify that a valid value is specified for this field in the '/tmp/787167149/Azure.Storage/Azure.Storage.psd1' file.                                                                                 At /opt/microsoft/powershell/6.0.0/Modules/PowerShellGet/1.6.0/PSModule.psm1:2057 char:21                                                      + ...          $null = PackageManagement\Install-Package @PSBoundParameters                                                                    +                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                    + CategoryInfo          : ResourceUnavailable: (/tmp/787167149/...re.Storage.psd1:String) [Install-Package], Exception                         + FullyQualifiedErrorId : Modules_InvalidManifest,Microsoft.PowerShell.Commands.TestModuleManifestCommand,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage         

推荐答案

当前,Linux不支持Set-AzureRmDataFactoryV2 cmdlet. AzureRM.NetCore支持以下服务.

Currently, Set-AzureRmDataFactoryV2 cmdlet is not supported on Linux. AzureRM.NetCore supports following services.

  • 虚拟机
  • 应用服务(网站)
  • SQL数据库
  • 存储
  • 网络

更多信息,请参考此官方文件.

如果可能,我建议您可以使用Azure CLI.

If possible, I suggest you could use Azure CLI.

这篇关于'Set-AzureRmDataFactoryV2'无法识别为cmdlet的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆