你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Get-AzureRmCognitiveServicesAccountType

获取可用的认知服务帐户类型。

警告

截至 2024 年 2 月 29 日,AzureRM PowerShell 模块已正式弃用。 为了确保持续获得支持和更新,建议用户从 AzureRM 迁移到 Az PowerShell 模块。

尽管 AzureRM 模块仍可能正常运行,但它不再维护或受支持,但会根据用户的自由裁量权和风险继续使用任何继续使用模块。 有关过渡到 Az 模块的指导,请参阅我们的迁移资源

语法

Get-AzureRmCognitiveServicesAccountType
   -TypeName <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzureRmCognitiveServicesAccountType
   [-Location <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

说明

Get-AzureRmCognitiveServicesAccountType cmdlet 获取此订阅下可用的认知服务帐户类型。

示例

示例 1

PS C:\> Get-AzureRmCognitiveServicesAccountType

获取可用类型列表。

示例 2

PS C:\> Get-AzureRmCognitiveServicesAccountType -Location westus

获取 westus 中可用类型的列表。

示例 3

PS C:\> Get-AzureRmCognitiveServicesAccountType -TypeName Face

Face

Face检查是否为有效的类型名称,如果名称为有效名称,则返回该名称。

参数

-DefaultProfile

用于与 Azure 通信的凭据、帐户、租户和订阅。

类型:IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
默认值:None
必需:False
Accept pipeline input:False
Accept wildcard characters:False

-Location

认知服务帐户位置。

类型:String
Position:Named
默认值:None
必需:False
Accept pipeline input:True
Accept wildcard characters:False

-TypeName

认知服务帐户类型名称。

类型:String
Aliases:CognitiveServicesAccountTypeName, AccountTypeName, KindName
Position:Named
默认值:None
必需:True
Accept pipeline input:True
Accept wildcard characters:False

输入

String

输出

String[]

String