我尝试使用以下方法创建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
我通过将文件夹
C:\ Program Files(x86)\ Microsoft SDKs\Azure\PowerShell\ServiceManagement\Azure\Services\Resources 复制
到
C:\ Program Files(x86)\ Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager解决了这个问题\ AzureRM.Profile
归档时间: |
|
查看次数: |
1790 次 |
最近记录: |