我正在尝试更新一个云服务以使用.NET 4.6。我将osFamily="4“更改为.cscfg文件中的osFamily="5”,如下所示:https://learn.microsoft.com/en-us/azure/cloud-services/cloud-services-guestos-update-matrix
看看我的文件系统,我已经安装了这个SDK版本:
看看Web,我已经安装了这些:
我通常使用Powershell cmdlet从构建和部署服务器使用/Set-AzureDeployment进行部署。我偶尔会使用powershell从桌面部署来进行测试。
如果我将osFamily="4“保持不变,并使用Powershell进行部署,那么一切都会像预期的那样工作。
如果我使用VS2015和发布Azure应用程序工具来完成部署,如果我选择osFamily="4“或osFamily="5”,它就会像预期的那样成功。
检查使用了哪个模块:
C:\> (Get-Command Set-AzureDeployment).Module.Path
C:\Program Files\WindowsPowerShell\Modules\Azure\3.8.0\Azure.psm1运行部署集-AzureDeployment(给定已部署的现有包)将给出以下错误-
Set-AzureDeployment : BadRequest : The OS family 5 you are trying to deploy is not supported by the SDK package. The SDK package supported OS families:3,4,1,2,98. Please try to deploy to a different operating system. To do this specify a different osFamily and/or osVersion in your .cscfg file.我看不出是哪个SDK“包”命令条在抱怨about...any的想法吗?
https://stackoverflow.com/questions/43338651
复制相似问题