【发布时间】:2022-01-11 08:05:36
【问题描述】:
例如,我想从 Azure 开发组织 BigZoo 中移除 Tiger(Tiger 有 3 个 Azure 组织,BigZoo、SmallZoo、middleZoo——我只想从 BigZoo 中移除 Tiger)
在 Azure Cloudshell Powershell 中使用此 Azure CLI 即可运行
az devops user remove --user tiger
[--org BigZoo]
[--yes]
但在 Azure 函数中不起作用-->Azure 函数使用 PowerShell 环境--> CloudPowerShell 可以读取 AzureCLi 但 AzureFunction 中的 Powershell 无法读取与 Az 相关的任何内容
所以,如果我只想在没有 Azure CLI 帮助的情况下使用 powershell,则有一些模块,但所有导入的模块都是从所有组织中删除用户--> 不从特定组织中删除用户
有什么建议吗?从特定 AzureDevops 组织中删除用户。使用 API 似乎太复杂了。有什么好主意吗? 谢谢
【问题讨论】:
标签: powershell api azure-devops azure-functions azure-cli