你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzADAppPermission
列出应用程序请求的 API 权限。
语法
Get-AzADAppPermission
-ObjectId <Guid>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzADAppPermission
-ApplicationId <Guid>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
说明
列出应用程序请求的 API 权限。
示例
示例 1:获取 API 权限
Get-AzADAppPermission -ObjectId 18797549-86a9-4906-b2a9-54f08cd3c427
ApiId Id Type
----- -- ----
00000003-0000-0000-c000-000000000000 df021288-bdef-4463-88db-98f22de89214 Scope
00000003-0000-0000-c000-000000000000 5b567255-7703-4780-807c-7be8301ae99b Scope
提取 Azure AD 对象 18797549-86a9-4906-b2a9-54f08cd3c427 的所有 API 权限
参数
-ApplicationId
应用程序 ID。
类型: | Guid |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | PSObject |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ObjectId
应用程序的对象 ID。
类型: | Guid |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |