你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzContainerAppAuthConfig
获取容器应用的身份验证配置。
语法
Get-AzContainerAppAuthConfig
-ContainerAppName <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzContainerAppAuthConfig
-ContainerAppName <String>
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzContainerAppAuthConfig
-Name <String>
-ContainerAppInputObject <IAppIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzContainerAppAuthConfig
-InputObject <IAppIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
说明
获取容器应用的身份验证配置。
示例
示例 1:列出容器应用的身份验证配置。
Get-AzContainerAppAuthConfig -ContainerAppName azps-containerapp-2 -ResourceGroupName azps_test_group_app
Name PlatformEnabled ResourceGroupName
---- --------------- -----------------
current True azps_test_group_app
列出容器应用的身份验证配置。
示例 2:获取容器应用的 AuthConfig。
Get-AzContainerAppAuthConfig -ContainerAppName azps-containerapp-2 -ResourceGroupName azps_test_group_app -Name current
Name PlatformEnabled ResourceGroupName
---- --------------- -----------------
current True azps_test_group_app
获取容器应用的身份验证配置。
示例 3:获取容器应用的身份验证配置。
$containerapp = Get-AzContainerApp -Name azps-containerapp-2 -ResourceGroupName azps_test_group_app
Get-AzContainerAppAuthConfig -ContainerAppInputObject $containerapp -Name current
Name PlatformEnabled ResourceGroupName
---- --------------- -----------------
current True azps_test_group_app
获取容器应用的身份验证配置。
参数
-ContainerAppInputObject
标识参数
类型: | IAppIdentity |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-ContainerAppName
容器应用的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
DefaultProfile 参数不起作用。 如果对其他订阅执行 cmdlet,请使用 SubscriptionId 参数。
类型: | PSObject |
别名: | AzureRMContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-InputObject
标识参数
类型: | IAppIdentity |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Name
容器应用身份验证配置的名称。
类型: | String |
别名: | AuthConfigName |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
资源组的名称。 名称不区分大小写。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-SubscriptionId
目标订阅的 ID。
类型: | String[] |
Position: | Named |
默认值: | (Get-AzContext).Subscription.Id |
必需: | False |
接受管道输入: | False |
接受通配符: | False |