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]'
(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]'
相关文章推荐
- Azure Active Directory Application Permission VS Delegate Permission
- SRV记录用来标识某台服务器使用了某个服务,常见于微软系统的目录管理——深入的话需要去折腾Azure Active Directory
- read file by bash shell just as getline() in c++
- How to authenticate against the Active Directory by using Forms authentication and Visual C# .NET
- Get the SID of an Active Directory User
- Get sdcard directory by adb
- 500 OOPS: cannot change directory 500 OOPS: priv_sock_get_cmd Connection closed by remote host.
- 删除Azure Active Directory
- Get a Complete Computer List From Active Directory Using .NET 2.0
- [Windows Azure] What is Windows Azure Active Directory?
- Active Directory还原工具之三Software Active Directory Recycle Bin PowerPack
- Windows Azure Active Directory处理2000 亿个身份验证-连接全球的人、 数据和设备
- 通过Power Shell 在中国区Azure部署Azure SQL Data Warehouse
- A Userful Class:CActiveDirectoryUsers to Get some information about ActiveDirectory
- Windows Azure Active Directory处理2000 亿个身份验证-连接全球的人、 数据和设备
- (critical) chassis-frontend.c:122: Failed to get log directory, please set by --log-path
- [.NET Active Directory开发]根据NativeGuid获取DirectoryEntry实例
- Windows Azure Active Directory处理2000 亿个身份验证-连接全球的人、 数据和设备
- Windows Azure Active Directory正式发布:已提供了超过 2650 亿个身份验证和服务了290万个组织!
- Windows Azure Active Directory (4) China Azure AD Self Password Reset