New-AzCognitiveServicesCommitmentPlan
建立認知服務承諾用量方案
語法
New-AzCognitiveServicesCommitmentPlan
-ResourceGroupName <String>
-Name <String>
-Type <String>
-SkuName <String>
-Location <String>
[-Tag <Hashtable[]>]
-Properties <CommitmentPlanProperties>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
建立認知服務承諾用量方案
範例
範例 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 |