System Center VMM请注意不同语言版本的差异

来源:互联网 发布:免费发短信软件哪个好 编辑:程序博客网 时间:2024/06/14 08:17

  在私有云的项目中,经常需要判断System Center一些组件的连接是否OK。

  我这里有开发,和测试两个环境,开发是英文版的System Center VMM,测试用的是中文版的System CenterVMM。

    我在配置库的链接字段的时候,我把“Authority”字段填写的是“管理员”,可是,开发环境始终在报错。

报错提示:

The specified user role is not valid or no longer exists.The SelfServiceUser value is the only valid value for -UserRole in this situation.

代码片段是:

_vmmServerConn = new ServerConnection(                                            vmmserver.Address,                                            vmmserver.Port,                                            Microsoft.VirtualManager.Remoting.Profile.Administrator,                                            vmmserver.Authority,    //注意System Center的版本语言,中文版就是管理员,                                            new SecureCredential(                                                vmmserver.UserName,                                                vmmserver.Password.ToCharArray()),                                            ServerConnection.InitializationStrategy.EagerInitialization,                                            true,                                            false                                        );所以,大家在配置链接vmm的数据库的字段时,
英文版:
Authority=“administrator”中文版:
Authority=“管理员”
0 0
原创粉丝点击