"无法找到创建服务的路径的一部分

Dim*_*ana 2 powershell azure

我尝试使用以下方法创建Azure云服务:

创建云服务

New-AzureServiceProject -ServiceName 'service-lift-and-shift' -Verbose
Run Code Online (Sandbox Code Playgroud)

我使用Azure SDK 2.9,它给出以下错误:

ServiceName: service-lift-and-shift
New-AzureServiceProject : Could not find a part of the path 'C:\Program Files (x86)\Microsoft 
SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager\AzureRM.Profile\Resources\Scaffolding\General\scaffold.xml'.
At line:1 char:1
+ New-AzureServiceProject
+ ~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [New-AzureServiceProject], DirectoryNotFoundException
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.CloudService.Development.Scaffolding.NewAzureServiceProjectCommand

Red*_*man 6

我通过将文件夹
C:\ Program Files(x86)\ Microsoft SDKs\Azure\PowerShell\ServiceManagement\Azure\Services\Resources 复制

C:\ Program Files(x86)\ Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager解决了这个问题\ AzureRM.Profile