1. Packages
  2. Azure Classic
  3. API Docs
  4. cognitive
  5. Deployment

We recommend using Azure Native.

Azure v6.13.0 published on Monday, Dec 9, 2024 by Pulumi

azure.cognitive.Deployment

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.13.0 published on Monday, Dec 9, 2024 by Pulumi

    Manages a Cognitive Services Account Deployment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West Europe",
    });
    const exampleAccount = new azure.cognitive.Account("example", {
        name: "example-ca",
        location: example.location,
        resourceGroupName: example.name,
        kind: "OpenAI",
        skuName: "S0",
    });
    const exampleDeployment = new azure.cognitive.Deployment("example", {
        name: "example-cd",
        cognitiveAccountId: exampleAccount.id,
        model: {
            format: "OpenAI",
            name: "text-curie-001",
            version: "1",
        },
        sku: {
            name: "Standard",
        },
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_account = azure.cognitive.Account("example",
        name="example-ca",
        location=example.location,
        resource_group_name=example.name,
        kind="OpenAI",
        sku_name="S0")
    example_deployment = azure.cognitive.Deployment("example",
        name="example-cd",
        cognitive_account_id=example_account.id,
        model={
            "format": "OpenAI",
            "name": "text-curie-001",
            "version": "1",
        },
        sku={
            "name": "Standard",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cognitive"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleAccount, err := cognitive.NewAccount(ctx, "example", &cognitive.AccountArgs{
    			Name:              pulumi.String("example-ca"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    			Kind:              pulumi.String("OpenAI"),
    			SkuName:           pulumi.String("S0"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cognitive.NewDeployment(ctx, "example", &cognitive.DeploymentArgs{
    			Name:               pulumi.String("example-cd"),
    			CognitiveAccountId: exampleAccount.ID(),
    			Model: &cognitive.DeploymentModelArgs{
    				Format:  pulumi.String("OpenAI"),
    				Name:    pulumi.String("text-curie-001"),
    				Version: pulumi.String("1"),
    			},
    			Sku: &cognitive.DeploymentSkuArgs{
    				Name: pulumi.String("Standard"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var exampleAccount = new Azure.Cognitive.Account("example", new()
        {
            Name = "example-ca",
            Location = example.Location,
            ResourceGroupName = example.Name,
            Kind = "OpenAI",
            SkuName = "S0",
        });
    
        var exampleDeployment = new Azure.Cognitive.Deployment("example", new()
        {
            Name = "example-cd",
            CognitiveAccountId = exampleAccount.Id,
            Model = new Azure.Cognitive.Inputs.DeploymentModelArgs
            {
                Format = "OpenAI",
                Name = "text-curie-001",
                Version = "1",
            },
            Sku = new Azure.Cognitive.Inputs.DeploymentSkuArgs
            {
                Name = "Standard",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.cognitive.Account;
    import com.pulumi.azure.cognitive.AccountArgs;
    import com.pulumi.azure.cognitive.Deployment;
    import com.pulumi.azure.cognitive.DeploymentArgs;
    import com.pulumi.azure.cognitive.inputs.DeploymentModelArgs;
    import com.pulumi.azure.cognitive.inputs.DeploymentSkuArgs;
    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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("example-resources")
                .location("West Europe")
                .build());
    
            var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
                .name("example-ca")
                .location(example.location())
                .resourceGroupName(example.name())
                .kind("OpenAI")
                .skuName("S0")
                .build());
    
            var exampleDeployment = new Deployment("exampleDeployment", DeploymentArgs.builder()
                .name("example-cd")
                .cognitiveAccountId(exampleAccount.id())
                .model(DeploymentModelArgs.builder()
                    .format("OpenAI")
                    .name("text-curie-001")
                    .version("1")
                    .build())
                .sku(DeploymentSkuArgs.builder()
                    .name("Standard")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleAccount:
        type: azure:cognitive:Account
        name: example
        properties:
          name: example-ca
          location: ${example.location}
          resourceGroupName: ${example.name}
          kind: OpenAI
          skuName: S0
      exampleDeployment:
        type: azure:cognitive:Deployment
        name: example
        properties:
          name: example-cd
          cognitiveAccountId: ${exampleAccount.id}
          model:
            format: OpenAI
            name: text-curie-001
            version: '1'
          sku:
            name: Standard
    

    Create Deployment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Deployment(name: string, args: DeploymentArgs, opts?: CustomResourceOptions);
    @overload
    def Deployment(resource_name: str,
                   args: DeploymentArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def Deployment(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   cognitive_account_id: Optional[str] = None,
                   model: Optional[DeploymentModelArgs] = None,
                   sku: Optional[DeploymentSkuArgs] = None,
                   dynamic_throttling_enabled: Optional[bool] = None,
                   name: Optional[str] = None,
                   rai_policy_name: Optional[str] = None,
                   version_upgrade_option: Optional[str] = None)
    func NewDeployment(ctx *Context, name string, args DeploymentArgs, opts ...ResourceOption) (*Deployment, error)
    public Deployment(string name, DeploymentArgs args, CustomResourceOptions? opts = null)
    public Deployment(String name, DeploymentArgs args)
    public Deployment(String name, DeploymentArgs args, CustomResourceOptions options)
    
    type: azure:cognitive:Deployment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DeploymentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DeploymentArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DeploymentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DeploymentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DeploymentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var deploymentResource = new Azure.Cognitive.Deployment("deploymentResource", new()
    {
        CognitiveAccountId = "string",
        Model = new Azure.Cognitive.Inputs.DeploymentModelArgs
        {
            Format = "string",
            Name = "string",
            Version = "string",
        },
        Sku = new Azure.Cognitive.Inputs.DeploymentSkuArgs
        {
            Name = "string",
            Capacity = 0,
            Family = "string",
            Size = "string",
            Tier = "string",
        },
        DynamicThrottlingEnabled = false,
        Name = "string",
        RaiPolicyName = "string",
        VersionUpgradeOption = "string",
    });
    
    example, err := cognitive.NewDeployment(ctx, "deploymentResource", &cognitive.DeploymentArgs{
    	CognitiveAccountId: pulumi.String("string"),
    	Model: &cognitive.DeploymentModelArgs{
    		Format:  pulumi.String("string"),
    		Name:    pulumi.String("string"),
    		Version: pulumi.String("string"),
    	},
    	Sku: &cognitive.DeploymentSkuArgs{
    		Name:     pulumi.String("string"),
    		Capacity: pulumi.Int(0),
    		Family:   pulumi.String("string"),
    		Size:     pulumi.String("string"),
    		Tier:     pulumi.String("string"),
    	},
    	DynamicThrottlingEnabled: pulumi.Bool(false),
    	Name:                     pulumi.String("string"),
    	RaiPolicyName:            pulumi.String("string"),
    	VersionUpgradeOption:     pulumi.String("string"),
    })
    
    var deploymentResource = new Deployment("deploymentResource", DeploymentArgs.builder()
        .cognitiveAccountId("string")
        .model(DeploymentModelArgs.builder()
            .format("string")
            .name("string")
            .version("string")
            .build())
        .sku(DeploymentSkuArgs.builder()
            .name("string")
            .capacity(0)
            .family("string")
            .size("string")
            .tier("string")
            .build())
        .dynamicThrottlingEnabled(false)
        .name("string")
        .raiPolicyName("string")
        .versionUpgradeOption("string")
        .build());
    
    deployment_resource = azure.cognitive.Deployment("deploymentResource",
        cognitive_account_id="string",
        model={
            "format": "string",
            "name": "string",
            "version": "string",
        },
        sku={
            "name": "string",
            "capacity": 0,
            "family": "string",
            "size": "string",
            "tier": "string",
        },
        dynamic_throttling_enabled=False,
        name="string",
        rai_policy_name="string",
        version_upgrade_option="string")
    
    const deploymentResource = new azure.cognitive.Deployment("deploymentResource", {
        cognitiveAccountId: "string",
        model: {
            format: "string",
            name: "string",
            version: "string",
        },
        sku: {
            name: "string",
            capacity: 0,
            family: "string",
            size: "string",
            tier: "string",
        },
        dynamicThrottlingEnabled: false,
        name: "string",
        raiPolicyName: "string",
        versionUpgradeOption: "string",
    });
    
    type: azure:cognitive:Deployment
    properties:
        cognitiveAccountId: string
        dynamicThrottlingEnabled: false
        model:
            format: string
            name: string
            version: string
        name: string
        raiPolicyName: string
        sku:
            capacity: 0
            family: string
            name: string
            size: string
            tier: string
        versionUpgradeOption: string
    

    Deployment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Deployment resource accepts the following input properties:

    CognitiveAccountId string
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    Model DeploymentModel
    A model block as defined below. Changing this forces a new resource to be created.
    Sku DeploymentSku
    A sku block as defined below.
    DynamicThrottlingEnabled bool
    Whether dynamic throttling is enabled.
    Name string
    The name of the Cognitive Services Account Deployment. Changing this forces a new resource to be created.
    RaiPolicyName string
    The name of RAI policy.
    VersionUpgradeOption string
    Deployment model version upgrade option. Possible values are OnceNewDefaultVersionAvailable, OnceCurrentVersionExpired, and NoAutoUpgrade. Defaults to OnceNewDefaultVersionAvailable.
    CognitiveAccountId string
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    Model DeploymentModelArgs
    A model block as defined below. Changing this forces a new resource to be created.
    Sku DeploymentSkuArgs
    A sku block as defined below.
    DynamicThrottlingEnabled bool
    Whether dynamic throttling is enabled.
    Name string
    The name of the Cognitive Services Account Deployment. Changing this forces a new resource to be created.
    RaiPolicyName string
    The name of RAI policy.
    VersionUpgradeOption string
    Deployment model version upgrade option. Possible values are OnceNewDefaultVersionAvailable, OnceCurrentVersionExpired, and NoAutoUpgrade. Defaults to OnceNewDefaultVersionAvailable.
    cognitiveAccountId String
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    model DeploymentModel
    A model block as defined below. Changing this forces a new resource to be created.
    sku DeploymentSku
    A sku block as defined below.
    dynamicThrottlingEnabled Boolean
    Whether dynamic throttling is enabled.
    name String
    The name of the Cognitive Services Account Deployment. Changing this forces a new resource to be created.
    raiPolicyName String
    The name of RAI policy.
    versionUpgradeOption String
    Deployment model version upgrade option. Possible values are OnceNewDefaultVersionAvailable, OnceCurrentVersionExpired, and NoAutoUpgrade. Defaults to OnceNewDefaultVersionAvailable.
    cognitiveAccountId string
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    model DeploymentModel
    A model block as defined below. Changing this forces a new resource to be created.
    sku DeploymentSku
    A sku block as defined below.
    dynamicThrottlingEnabled boolean
    Whether dynamic throttling is enabled.
    name string
    The name of the Cognitive Services Account Deployment. Changing this forces a new resource to be created.
    raiPolicyName string
    The name of RAI policy.
    versionUpgradeOption string
    Deployment model version upgrade option. Possible values are OnceNewDefaultVersionAvailable, OnceCurrentVersionExpired, and NoAutoUpgrade. Defaults to OnceNewDefaultVersionAvailable.
    cognitive_account_id str
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    model DeploymentModelArgs
    A model block as defined below. Changing this forces a new resource to be created.
    sku DeploymentSkuArgs
    A sku block as defined below.
    dynamic_throttling_enabled bool
    Whether dynamic throttling is enabled.
    name str
    The name of the Cognitive Services Account Deployment. Changing this forces a new resource to be created.
    rai_policy_name str
    The name of RAI policy.
    version_upgrade_option str
    Deployment model version upgrade option. Possible values are OnceNewDefaultVersionAvailable, OnceCurrentVersionExpired, and NoAutoUpgrade. Defaults to OnceNewDefaultVersionAvailable.
    cognitiveAccountId String
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    model Property Map
    A model block as defined below. Changing this forces a new resource to be created.
    sku Property Map
    A sku block as defined below.
    dynamicThrottlingEnabled Boolean
    Whether dynamic throttling is enabled.
    name String
    The name of the Cognitive Services Account Deployment. Changing this forces a new resource to be created.
    raiPolicyName String
    The name of RAI policy.
    versionUpgradeOption String
    Deployment model version upgrade option. Possible values are OnceNewDefaultVersionAvailable, OnceCurrentVersionExpired, and NoAutoUpgrade. Defaults to OnceNewDefaultVersionAvailable.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Deployment resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Deployment Resource

    Get an existing Deployment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: DeploymentState, opts?: CustomResourceOptions): Deployment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cognitive_account_id: Optional[str] = None,
            dynamic_throttling_enabled: Optional[bool] = None,
            model: Optional[DeploymentModelArgs] = None,
            name: Optional[str] = None,
            rai_policy_name: Optional[str] = None,
            sku: Optional[DeploymentSkuArgs] = None,
            version_upgrade_option: Optional[str] = None) -> Deployment
    func GetDeployment(ctx *Context, name string, id IDInput, state *DeploymentState, opts ...ResourceOption) (*Deployment, error)
    public static Deployment Get(string name, Input<string> id, DeploymentState? state, CustomResourceOptions? opts = null)
    public static Deployment get(String name, Output<String> id, DeploymentState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CognitiveAccountId string
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    DynamicThrottlingEnabled bool
    Whether dynamic throttling is enabled.
    Model DeploymentModel
    A model block as defined below. Changing this forces a new resource to be created.
    Name string
    The name of the Cognitive Services Account Deployment. Changing this forces a new resource to be created.
    RaiPolicyName string
    The name of RAI policy.
    Sku DeploymentSku
    A sku block as defined below.
    VersionUpgradeOption string
    Deployment model version upgrade option. Possible values are OnceNewDefaultVersionAvailable, OnceCurrentVersionExpired, and NoAutoUpgrade. Defaults to OnceNewDefaultVersionAvailable.
    CognitiveAccountId string
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    DynamicThrottlingEnabled bool
    Whether dynamic throttling is enabled.
    Model DeploymentModelArgs
    A model block as defined below. Changing this forces a new resource to be created.
    Name string
    The name of the Cognitive Services Account Deployment. Changing this forces a new resource to be created.
    RaiPolicyName string
    The name of RAI policy.
    Sku DeploymentSkuArgs
    A sku block as defined below.
    VersionUpgradeOption string
    Deployment model version upgrade option. Possible values are OnceNewDefaultVersionAvailable, OnceCurrentVersionExpired, and NoAutoUpgrade. Defaults to OnceNewDefaultVersionAvailable.
    cognitiveAccountId String
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    dynamicThrottlingEnabled Boolean
    Whether dynamic throttling is enabled.
    model DeploymentModel
    A model block as defined below. Changing this forces a new resource to be created.
    name String
    The name of the Cognitive Services Account Deployment. Changing this forces a new resource to be created.
    raiPolicyName String
    The name of RAI policy.
    sku DeploymentSku
    A sku block as defined below.
    versionUpgradeOption String
    Deployment model version upgrade option. Possible values are OnceNewDefaultVersionAvailable, OnceCurrentVersionExpired, and NoAutoUpgrade. Defaults to OnceNewDefaultVersionAvailable.
    cognitiveAccountId string
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    dynamicThrottlingEnabled boolean
    Whether dynamic throttling is enabled.
    model DeploymentModel
    A model block as defined below. Changing this forces a new resource to be created.
    name string
    The name of the Cognitive Services Account Deployment. Changing this forces a new resource to be created.
    raiPolicyName string
    The name of RAI policy.
    sku DeploymentSku
    A sku block as defined below.
    versionUpgradeOption string
    Deployment model version upgrade option. Possible values are OnceNewDefaultVersionAvailable, OnceCurrentVersionExpired, and NoAutoUpgrade. Defaults to OnceNewDefaultVersionAvailable.
    cognitive_account_id str
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    dynamic_throttling_enabled bool
    Whether dynamic throttling is enabled.
    model DeploymentModelArgs
    A model block as defined below. Changing this forces a new resource to be created.
    name str
    The name of the Cognitive Services Account Deployment. Changing this forces a new resource to be created.
    rai_policy_name str
    The name of RAI policy.
    sku DeploymentSkuArgs
    A sku block as defined below.
    version_upgrade_option str
    Deployment model version upgrade option. Possible values are OnceNewDefaultVersionAvailable, OnceCurrentVersionExpired, and NoAutoUpgrade. Defaults to OnceNewDefaultVersionAvailable.
    cognitiveAccountId String
    The ID of the Cognitive Services Account. Changing this forces a new resource to be created.
    dynamicThrottlingEnabled Boolean
    Whether dynamic throttling is enabled.
    model Property Map
    A model block as defined below. Changing this forces a new resource to be created.
    name String
    The name of the Cognitive Services Account Deployment. Changing this forces a new resource to be created.
    raiPolicyName String
    The name of RAI policy.
    sku Property Map
    A sku block as defined below.
    versionUpgradeOption String
    Deployment model version upgrade option. Possible values are OnceNewDefaultVersionAvailable, OnceCurrentVersionExpired, and NoAutoUpgrade. Defaults to OnceNewDefaultVersionAvailable.

    Supporting Types

    DeploymentModel, DeploymentModelArgs

    Format string
    The format of the Cognitive Services Account Deployment model. Changing this forces a new resource to be created. Possible value is OpenAI.
    Name string
    The name of the Cognitive Services Account Deployment model. Changing this forces a new resource to be created.
    Version string
    The version of Cognitive Services Account Deployment model. If version is not specified, the default version of the model at the time will be assigned.
    Format string
    The format of the Cognitive Services Account Deployment model. Changing this forces a new resource to be created. Possible value is OpenAI.
    Name string
    The name of the Cognitive Services Account Deployment model. Changing this forces a new resource to be created.
    Version string
    The version of Cognitive Services Account Deployment model. If version is not specified, the default version of the model at the time will be assigned.
    format String
    The format of the Cognitive Services Account Deployment model. Changing this forces a new resource to be created. Possible value is OpenAI.
    name String
    The name of the Cognitive Services Account Deployment model. Changing this forces a new resource to be created.
    version String
    The version of Cognitive Services Account Deployment model. If version is not specified, the default version of the model at the time will be assigned.
    format string
    The format of the Cognitive Services Account Deployment model. Changing this forces a new resource to be created. Possible value is OpenAI.
    name string
    The name of the Cognitive Services Account Deployment model. Changing this forces a new resource to be created.
    version string
    The version of Cognitive Services Account Deployment model. If version is not specified, the default version of the model at the time will be assigned.
    format str
    The format of the Cognitive Services Account Deployment model. Changing this forces a new resource to be created. Possible value is OpenAI.
    name str
    The name of the Cognitive Services Account Deployment model. Changing this forces a new resource to be created.
    version str
    The version of Cognitive Services Account Deployment model. If version is not specified, the default version of the model at the time will be assigned.
    format String
    The format of the Cognitive Services Account Deployment model. Changing this forces a new resource to be created. Possible value is OpenAI.
    name String
    The name of the Cognitive Services Account Deployment model. Changing this forces a new resource to be created.
    version String
    The version of Cognitive Services Account Deployment model. If version is not specified, the default version of the model at the time will be assigned.

    DeploymentSku, DeploymentSkuArgs

    Name string
    The name of the SKU. Possible values include Standard, DataZoneStandard, GlobalBatch, GlobalStandard and ProvisionedManaged.
    Capacity int
    Tokens-per-Minute (TPM). The unit of measure for this field is in the thousands of Tokens-per-Minute. Defaults to 1 which means that the limitation is 1000 tokens per minute. If the resources SKU supports scale in/out then the capacity field should be included in the resources' configuration. If the scale in/out is not supported by the resources SKU then this field can be safely omitted. For more information about TPM please see the product documentation.
    Family string
    If the service has different generations of hardware, for the same SKU, then that can be captured here. Changing this forces a new resource to be created.
    Size string
    The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. Changing this forces a new resource to be created.
    Tier string
    Possible values are Free, Basic, Standard, Premium, Enterprise. Changing this forces a new resource to be created.
    Name string
    The name of the SKU. Possible values include Standard, DataZoneStandard, GlobalBatch, GlobalStandard and ProvisionedManaged.
    Capacity int
    Tokens-per-Minute (TPM). The unit of measure for this field is in the thousands of Tokens-per-Minute. Defaults to 1 which means that the limitation is 1000 tokens per minute. If the resources SKU supports scale in/out then the capacity field should be included in the resources' configuration. If the scale in/out is not supported by the resources SKU then this field can be safely omitted. For more information about TPM please see the product documentation.
    Family string
    If the service has different generations of hardware, for the same SKU, then that can be captured here. Changing this forces a new resource to be created.
    Size string
    The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. Changing this forces a new resource to be created.
    Tier string
    Possible values are Free, Basic, Standard, Premium, Enterprise. Changing this forces a new resource to be created.
    name String
    The name of the SKU. Possible values include Standard, DataZoneStandard, GlobalBatch, GlobalStandard and ProvisionedManaged.
    capacity Integer
    Tokens-per-Minute (TPM). The unit of measure for this field is in the thousands of Tokens-per-Minute. Defaults to 1 which means that the limitation is 1000 tokens per minute. If the resources SKU supports scale in/out then the capacity field should be included in the resources' configuration. If the scale in/out is not supported by the resources SKU then this field can be safely omitted. For more information about TPM please see the product documentation.
    family String
    If the service has different generations of hardware, for the same SKU, then that can be captured here. Changing this forces a new resource to be created.
    size String
    The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. Changing this forces a new resource to be created.
    tier String
    Possible values are Free, Basic, Standard, Premium, Enterprise. Changing this forces a new resource to be created.
    name string
    The name of the SKU. Possible values include Standard, DataZoneStandard, GlobalBatch, GlobalStandard and ProvisionedManaged.
    capacity number
    Tokens-per-Minute (TPM). The unit of measure for this field is in the thousands of Tokens-per-Minute. Defaults to 1 which means that the limitation is 1000 tokens per minute. If the resources SKU supports scale in/out then the capacity field should be included in the resources' configuration. If the scale in/out is not supported by the resources SKU then this field can be safely omitted. For more information about TPM please see the product documentation.
    family string
    If the service has different generations of hardware, for the same SKU, then that can be captured here. Changing this forces a new resource to be created.
    size string
    The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. Changing this forces a new resource to be created.
    tier string
    Possible values are Free, Basic, Standard, Premium, Enterprise. Changing this forces a new resource to be created.
    name str
    The name of the SKU. Possible values include Standard, DataZoneStandard, GlobalBatch, GlobalStandard and ProvisionedManaged.
    capacity int
    Tokens-per-Minute (TPM). The unit of measure for this field is in the thousands of Tokens-per-Minute. Defaults to 1 which means that the limitation is 1000 tokens per minute. If the resources SKU supports scale in/out then the capacity field should be included in the resources' configuration. If the scale in/out is not supported by the resources SKU then this field can be safely omitted. For more information about TPM please see the product documentation.
    family str
    If the service has different generations of hardware, for the same SKU, then that can be captured here. Changing this forces a new resource to be created.
    size str
    The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. Changing this forces a new resource to be created.
    tier str
    Possible values are Free, Basic, Standard, Premium, Enterprise. Changing this forces a new resource to be created.
    name String
    The name of the SKU. Possible values include Standard, DataZoneStandard, GlobalBatch, GlobalStandard and ProvisionedManaged.
    capacity Number
    Tokens-per-Minute (TPM). The unit of measure for this field is in the thousands of Tokens-per-Minute. Defaults to 1 which means that the limitation is 1000 tokens per minute. If the resources SKU supports scale in/out then the capacity field should be included in the resources' configuration. If the scale in/out is not supported by the resources SKU then this field can be safely omitted. For more information about TPM please see the product documentation.
    family String
    If the service has different generations of hardware, for the same SKU, then that can be captured here. Changing this forces a new resource to be created.
    size String
    The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. Changing this forces a new resource to be created.
    tier String
    Possible values are Free, Basic, Standard, Premium, Enterprise. Changing this forces a new resource to be created.

    Import

    Cognitive Services Account Deployment can be imported using the resource id, e.g.

    $ pulumi import azure:cognitive/deployment:Deployment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.CognitiveServices/accounts/account1/deployments/deployment1
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.13.0 published on Monday, Dec 9, 2024 by Pulumi