通过PowerShell添加共同管理员 [英] Adding a Co-administrator via PowerShell

查看:122
本文介绍了通过PowerShell添加共同管理员的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何通过门户添加共同管理员,但是需要一种通过PowerShell添加它的方法.

I know how to add a co-administrator via the portal, but need a way to add it via PowerShell.

我需要此方法,因为我无法访问登录ID,但是拥有发布设置文件,因此可以管理我的虚拟机.

I need this method as I have lost access to the login id, but have the publish setting file so can administrator my virtual machines.

推荐答案

很遗憾,您不能这样做. Azure PowerShell Cmdlet本质上是 Azure Service Management API 的包装API没有公开以编程方式添加共同管理员的任何方法.

Unfortunately you can't. Azure PowerShell Cmdlets are essentially wrapper over Azure Service Management API and currently the API does not expose any method to add co-admins programmatically.

这篇关于通过PowerShell添加共同管理员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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