通过PowerShell中添加一个共同管理员 [英] Adding a Co-administrator via the powershell

查看:190
本文介绍了通过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命令基本上是在包装器 的Azure服务管理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天全站免登陆