您的位置:首页 > 运维架构 > Shell

Get Azure Active Directory GUID By Power shell

2017-02-21 15:58 351 查看
power shell command:

(Invoke-WebRequest https://{OAuth Url}/{your tenant name}/.well-known/openid-configuration|ConvertFrom-Json).token_endpoint.Split('/')[3]​

For example:

My tenant name is 'test.partner.onmschina.cn'

OAuth Url is 'login.chinacloudapi.cn'

So the command is

'(Invoke-WebRequest https://login.chinacloudapi.cn/test.partner.onmschina.cn/.well-known/openid-configuration|ConvertFrom-Json).token_endpoint.Split('/')[3]​'
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐