你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzCognitiveServicesCommitmentPlan
创建认知服务承诺计划
语法
New-AzCognitiveServicesCommitmentPlan
-ResourceGroupName <String>
-Name <String>
-Type <String>
-SkuName <String>
-Location <String>
[-Tag <Hashtable[]>]
-Properties <CommitmentPlanProperties>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
创建认知服务承诺计划
示例
示例 1
$properties = New-AzCognitiveServicesObject -Type CommitmentPlanProperties
$properties.HostingModel = "Web"
$properties.AutoRenew = $false
$properties.PlanType = "STT"
$properties.Current.Tier = "T1"
$properties.Next = $null
New-AzCognitiveServicesCommitmentPlan -ResourceGroupName ResourceGroupName -Name CommitmentPlanName -Type SpeechServices -SkuName S0 -Location CentralUS -Properties $properties;
为 SpeechServices STT T1 创建认知服务承诺计划
参数
-Confirm
在运行 cmdlet 之前,提示你进行确认。
类型: | SwitchParameter |
别名: | cf |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Location
认知服务承诺计划位置。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Name
认知服务帐户名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Properties
认知服务承诺计划属性。
类型: | CommitmentPlanProperties |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-ResourceGroupName
资源组名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-SkuName
认知服务帐户/承诺计划 SKU 名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Tag
认知服务承诺计划标记。
类型: | Hashtable[] |
别名: | Tags |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Type
认知服务帐户/承诺计划类型。
类型: | String |
别名: | Kind |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-WhatIf
显示 cmdlet 运行时会发生什么情况。 cmdlet 未运行。
类型: | SwitchParameter |
别名: | wi |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |