Bewerken

Delen via


New-AzCognitiveServicesCommitmentPlan

Create a Cognitive Services Commitment Plan

Syntax

New-AzCognitiveServicesCommitmentPlan
   -ResourceGroupName <String>
   -Name <String>
   -Type <String>
   -SkuName <String>
   -Location <String>
   [-Tag <Hashtable[]>]
   -Properties <CommitmentPlanProperties>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Create a Cognitive Services Commitment Plan

Examples

Example 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;

Create a Cognitive Services Commitment Plan for SpeechServices STT T1

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Location

Cognitive Services CommitmentPlan Location.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

Cognitive Services Account Name.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Properties

Cognitive Services CommitmentPlan Properties.

Type:CommitmentPlanProperties
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ResourceGroupName

Resource Group Name.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-SkuName

Cognitive Services Account/CommitmentPlan Sku Name.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Tag

Cognitive Services CommitmentPlan Tags.

Type:Hashtable[]
Aliases:Tags
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Type

Cognitive Services Account/CommitmentPlan Type.

Type:String
Aliases:Kind
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

String

CommitmentPlanProperties

Outputs

PSCognitiveServicesAccount