嗨伙计,
我们一直从Prism Central VM获得有关内存使用情况的警报。这似乎是一个已知的问题。因此,为了抑制内部票务系统中反复生成案例的警报,我正在努力在内存使用率达到90%时设置自动重新启动。
我已经编写了代码来执行此操作(在PowerShell中使用Nutanix CMDLET和REST API呼叫的混合)。在我自己的帐户下运行时,它可以正常工作。我的帐户具有“用户管理”角色。我还应该提到我们将角色映射到广告组。
但是,我希望将计划的作业移至服务帐户的上下文中。该服务帐户已通过单个作业“更新VM Power状态”分配了自定义角色
我将角色添加到我的服务帐户用户中,并将其应用于Prism VM(和测试VM)。
我想知道我是否需要授予更多权限
访问被拒绝
SET-NTNXVMPOWERSTATE:远程服务器返回错误:(403)禁止。