升级服务结构应用程序(PowerShell) [英] Upgrade service fabric application (PowerShell)

查看:51
本文介绍了升级服务结构应用程序(PowerShell)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Start-ServiceFabricApplicationUpgrade 来开始应用程序升级命令,但出现错误提示:

I'm trying to start application upgrade using Start-ServiceFabricApplicationUpgrade command, but getting an error complaining:

不得在升级过程中修改默认服务描述.修改后的默认服务:...

Default service descriptions must not be modified as part of upgrade. Modified default service: ...

所有服务配置均未更改.从Visual Studio部署时,升级也可以正常进行.

None of the service configurations was changed. Also upgrade works fine when deployed from Visual Studio.

更新:
事实证明,应用程序清单的DefaultServices部分中使用的参数必须由-ApplicationParameter<Hashtable>命令参数提供(尽管在升级过程中无法更改它们).

Update:
It turns out that parameters used in DefaultServices section of application manifest must be provided by -ApplicationParameter<Hashtable> command parameter (despite the fact they can't be changed during the upgrade).

推荐答案

从Visual Studio部署时,它使用一个参数文件,该文件为应用程序清单中定义的应用程序参数提供值.您可以检查是否提供与应用程序清单的默认服务部分中使用的应用程序参数相同的值吗?

When you deploy from Visual Studio it uses a parameter file that provides values for the application parameters defined in the application manifest. Can you check if you are providing the same value of the application parameters used in the default services section of your application manifest?

这篇关于升级服务结构应用程序(PowerShell)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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