Commitment Plan
    Cognitive Services account commitment plan. Azure REST API version: 2023-05-01. Prior API version in Azure Native 1.x: 2021-10-01. Other available API versions: 2023-10-01-preview.
Example Usage
PutCommitmentPlan
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
    var commitmentPlan = new AzureNative.CognitiveServices.CommitmentPlan("commitmentPlan", new()
    {
        AccountName = "accountName",
        CommitmentPlanName = "commitmentPlanName",
        Properties = new AzureNative.CognitiveServices.Inputs.CommitmentPlanPropertiesArgs
        {
            AutoRenew = true,
            Current = new AzureNative.CognitiveServices.Inputs.CommitmentPeriodArgs
            {
                Tier = "T1",
            },
            HostingModel = "Web",
            PlanType = "Speech2Text",
        },
        ResourceGroupName = "resourceGroupName",
    });
});Content copied to clipboard
package main
import (
	"github.com/pulumi/pulumi-azure-native-sdk/cognitiveservices/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cognitiveservices.NewCommitmentPlan(ctx, "commitmentPlan", &cognitiveservices.CommitmentPlanArgs{
			AccountName:        pulumi.String("accountName"),
			CommitmentPlanName: pulumi.String("commitmentPlanName"),
			Properties: cognitiveservices.CommitmentPlanPropertiesResponse{
				AutoRenew: pulumi.Bool(true),
				Current: &cognitiveservices.CommitmentPeriodArgs{
					Tier: pulumi.String("T1"),
				},
				HostingModel: pulumi.String("Web"),
				PlanType:     pulumi.String("Speech2Text"),
			},
			ResourceGroupName: pulumi.String("resourceGroupName"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.cognitiveservices.CommitmentPlan;
import com.pulumi.azurenative.cognitiveservices.CommitmentPlanArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var commitmentPlan = new CommitmentPlan("commitmentPlan", CommitmentPlanArgs.builder()
            .accountName("accountName")
            .commitmentPlanName("commitmentPlanName")
            .properties(Map.ofEntries(
                Map.entry("autoRenew", true),
                Map.entry("current", Map.of("tier", "T1")),
                Map.entry("hostingModel", "Web"),
                Map.entry("planType", "Speech2Text")
            ))
            .resourceGroupName("resourceGroupName")
            .build());
    }
}Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:cognitiveservices:CommitmentPlan commitmentPlanName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/commitmentPlans/{commitmentPlanName}Content copied to clipboard